[JBoss jBPM] - jBPM BPEL - hello example error: no processdefinition.xml
by xhiloy
Hi All!
I'm using jbpm-bpel-1.1.GA on jbpm-starters-kit-3.1.4\jbpm-server.
I have built the jbpm-bpel and deployed it on jbmp-server.
Now I can access BPEL console: http://localhost:8080/jbpm-bpel/index.jsp.
My second step was to deploy simple BPEL application.
I've chosen the hello example.
>From Eclipse I run Ant (target order is: clean, main [default]) and I get this error:
Buildfile: C:\Studia\programy\jbpm-bpel-1.1.GA\examples\hello\build.xml
clean:
define.register.task:
register.partners:
package.process:
[mkdir] Created dir: C:\Studia\programy\jbpm-bpel-1.1.GA\examples\hello\target
[zip] Building zip: C:\Studia\programy\jbpm-bpel-1.1.GA\examples\hello\target\hello.zip
deploy.process:
[deployprocess] 13:43:16,468 DEBUG [header] >> "POST /jbpm-bpel/deployment HTTP/1.1[\r][\n]"
[deployprocess] 13:43:16,484 DEBUG [header] >> "User-Agent: Jakarta Commons-HttpClient/3.0[\r][\n]"
and so on... file is sent to server and the response is:
[deployprocess] 13:43:16,500 DEBUG [header] << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[deployprocess] 13:43:16,500 DEBUG [header] << "Server: Apache-Coyote/1.1[\r][\n]"
// some more headers and HTML tags go here
// the most important thing is the following line
<h1>HTTP Status 500 - </h1>type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.jbpm.jpdl.JpdlException: [[ERROR] no processdefinition.xml inside process archive][\n]"
[deployprocess] 13:43:16,515 DEBUG [content] << "[0x9]org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:43)[\n]"
Indeed, there is no processdefinition.xml in jbpm-bpel-1.1.GA.
How can I get it? Should I write/generate it myself?
thanks in advance for tips
best regards
Lukasz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121259#4121259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121259
18 years, 5 months
[JBossWS] - Re: WS-Security Newbie Question...
by lafaserem
This is the error that it's giving to me when I run
| wsrunclient wssec.HelloClient "Hello"
|
| [Fatal Error] :1:1: Content is not allowed in prolog.
| org.jboss.ws.WSException: java.io.IOException: org.xml.sax.SAXParseException: Co
| ntent is not allowed in prolog.
| at org.jboss.ws.metadata.config.JBossWSConfigFactory.getNamespaceURI(JBo
| ssWSConfigFactory.java:116)
| at org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBossWSConfig
| Factory.java:80)
| at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(JBossWSCo
| nfigFactory.java:134)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfig(Endpoi
| ntMetaData.java:704)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.setConfigNameInternal(End
| pointMetaData.java:695)
| at org.jboss.ws.metadata.umdm.EndpointMetaData.setConfigName(EndpointMet
| aData.java:679)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.proces
| sEndpointConfig(JAXWSClientMetaDataBuilder.java:323)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.rebuil
| dEndpointMetaData(JAXWSClientMetaDataBuilder.java:287)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortInternal(Servi
| ceDelegateImpl.java:262)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(ServiceDelega
| teImpl.java:233)
| at javax.xml.ws.Service.getPort(Service.java:185)
| at wssec.HelloClient.getPort(HelloClient.java:46)
| at wssec.HelloClient.main(HelloClient.java:31)
| Caused by: java.io.IOException: org.xml.sax.SAXParseException: Content is not al
| lowed in prolog.
| at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:156)
| at org.jboss.ws.metadata.config.JBossWSConfigFactory.getNamespaceURI(JBo
| ssWSConfigFactory.java:111)
| ... 12 more
|
The WSDL file is taken directly from the server. It seems to be an error with some XML file structure, but I don't know which one can be the one that is giving me the mistake...
Thanks ;)
P.d: I've changed the keyStore and trustStore Type to "jks"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121255#4121255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121255
18 years, 5 months
[JBoss jBPM] - Strange Asynchronous Behaviour of JBPM(3.2.2)
by soumya_in
Hi all,
I have deployed the jbpm-enterprise.ear into my existing jpm-jpdl-suite 3.2.2.The ear got successfully deployed.
However when I am trying to achieve asynchronous execution by declaring one node as asynch="true" which I tried with the following code:
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="synch-process">
| <start-state name="start-state1">
| <task name="task-1"></task>
| <transition to="node1"></transition>
| </start-state>
| <node name="node1" async="true">
| <action name="action-1" class="CustomerActionHandler1"></action>
| <transition to="node2"></transition>
| </node>
| <node name="node2">
| <action name="actio-2" class="CustomActionHandler2"></action>
| <transition to="end-state1"></transition>
| </node>
| <end-state name="end-state1"></end-state>
| </process-definition>
|
I turned on SOPs in the following classes :-JmsMessageServiceImpl.java,JobListenerBean.java,ExecuteJobCommand.java,CommandServiceBean.java,CommandListenerBean.java and redployed the ear.
The classes generated the SOPs properly stating the job message was dumped into the jbpm job queue and command was executed from the command service bean:
Following is the trace-
17:27:45,053 INFO [STDOUT] ****************Connection***************org.jboss.resource.adapter.jms.JmsSessionFactoryImpl@1bbf341
17:27:45,053 INFO [STDOUT] ****************Session***************org.jboss.resource.adapter.jms.JmsSession@1680bc6
17:27:45,053 INFO [STDOUT] ****************Destination***************QUEUE.JbpmJobQueue
17:27:45,069 INFO [STDOUT] **********************JOB Session*******************org.jbpm.db.JobSession@25997c
17:27:45,085 INFO [STDOUT] **********************JOB ID*******************3884
17:27:45,085 INFO [STDOUT] ****************Message sent successfully to QUEUE.JbpmJobQueue
17:27:45,225 INFO [STDOUT] ^^^^^^^^^^^^^^^^^JOB LISTENER BEAN IS CALLED^^^^^^^^^^^^^^
17:27:45,225 INFO [STDOUT] getting job id from jms message...
17:27:45,225 INFO [STDOUT] retrieved jobId '3884' via jms message
17:27:45,225 INFO [STDOUT] looking up local command service
17:27:45,240 INFO [STDOUT] executing command with local command service
17:27:45,349 INFO [STDOUT] Action class of asynch node is executed
17:27:45,381 INFO [STDOUT] Action class of synchronous node is called
.
However in the action class attached with the asynch node I had to write the following code snippet so that the process continued to the next node:-
| executionContext.getNode().leave(executionContext);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121254#4121254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121254
18 years, 5 months