[JBoss jBPM] - error deploying a bpel process in jbpm
by mind_mirror2008
I m using jboss4.2.2.GA with jbpm-bpel1.1.1.
I have tried to deploy one of the examples given ---"Hello".
The process definition is deployed correctly.But while testing the process by the generated client
i am getting the error which i am attaching
| <?xml version="1.0" encoding="UTF-8" ?>
| <testsuite errors="2" failures="0" hostname="dchakraborty" name="org.jbpm.bpel.tutorial.hello.HelloTest" tests="2" time="1.625" timestamp="2008-11-06T05:46:22">
| <properties>
| <property name="java.vendor" value="Sun Microsystems Inc." />
| <property name="lib.junit.local" value="../../lib/junit.jar" />
| <property name="lib.dir" value="../../lib" />
| <property name="lib.jaxrpc.api.local" value="../../lib/jaxrpc-api.jar" />
| <property name="sun.java.launcher" value="SUN_STANDARD" />
| <property name="sun.management.compiler" value="HotSpot Client Compiler" />
| <property name="os.name" value="Windows XP" />
| <property name="sun.boot.class.path" value="d:/jboss-4.2.2.GA/lib/endorsed\serializer.jar;d:/jboss-4.2.2.GA/lib/endorsed\xalan.jar;d:/jboss-4.2.2.GA/lib/endorsed\xercesImpl.jar;D:\jdk1.6.0_05\jre\lib\resources.jar;D:\jdk1.6.0_05\jre\lib\rt.jar;D:\jdk1.6.0_05\jre\lib\sunrsasign.jar;D:\jdk1.6.0_05\jre\lib\jsse.jar;D:\jdk1.6.0_05\jre\lib\jce.jar;D:\jdk1.6.0_05\jre\lib\charsets.jar;D:\jdk1.6.0_05\jre\classes" />
| <property name="lib.dom4j.local" value="../../lib/dom4j.jar" />
| <property name="test.reports.dir" value="target/test/reports" />
| <property name="lib.jbpm.identity.jar.local" value="../../lib/jbpm-identity.jar" />
| <property name="javac.target" value="1.4" />
| <property name="sun.desktop" value="windows" />
| <property name="java.vm.specification.vendor" value="Sun Microsystems Inc." />
| <property name="ant.home" value="D:\apache-ant-1.7.0" />
| <property name="java.runtime.version" value="1.6.0_05-b13" />
| <property name="lib.servlet.local" value="../../lib/servlet-api.jar" />
| <property name="ant.file.mapping" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\common\mapping-build.xml" />
| <property name="test.java.dir" value="src/test/java" />
| <property name="lib.commons.collections.local" value="../../lib/commons-collections.jar" />
| <property name="lib.cglib.local" value="../../lib/cglib.jar" />
| <property name="user.name" value="dchakraborty" />
| <property name="lib.jbpm.bpel.jboss405.jar.local" value="../../lib/jbpm-bpel-jboss405.jar" />
| <property name="test.classes.dir" value="target/test/classes" />
| <property name="output.classes.dir" value="target/classes" />
| <property name="javac.deprecation" value="false" />
| <property name="lib.bsh.local" value="../../lib/bsh.jar" />
| <property name="user.language" value="en" />
| <property name="lib.ant.local" value="../../lib/ant-1.6.5.jar" />
| <property name="sun.boot.library.path" value="D:\jdk1.6.0_05\jre\bin" />
| <property name="lib.jbpm.bpel.jar.local" value="../../lib/jbpm-bpel.jar" />
| <property name="ant.file.bpel" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\common\bpel-build.xml" />
| <property name="jboss.server" value="default" />
| <property name="ant.project.name" value="hello" />
| <property name="lib.antlr.local" value="../../lib/antlr-2.7.6.jar" />
| <property name="java.version" value="1.6.0_05" />
| <property name="user.timezone" value="" />
| <property name="resources.dir" value="src/main/resources" />
| <property name="jbpm.bpel.home" value="../.." />
| <property name="software.installation.dir" value="C:\Documents and Settings\dchakraborty" />
| <property name="sun.arch.data.model" value="32" />
| <property name="lib.commons.codec.local" value="../../lib/commons-codec.jar" />
| <property name="java.endorsed.dirs" value="d:/jboss-4.2.2.GA/lib/endorsed" />
| <property name="sun.cpu.isalist" value="" />
| <property name="sun.jnu.encoding" value="Cp1252" />
| <property name="file.encoding.pkg" value="sun.io" />
| <property name="lib.jbpm.bpel.jboss403.jar.local" value="../../lib/jbpm-bpel-jboss403.jar" />
| <property name="file.separator" value="\" />
| <property name="java.specification.name" value="Java Platform API Specification" />
| <property name="lib.wsdl4j.local" value="../../lib/wsdl4j.jar" />
| <property name="java.class.version" value="50.0" />
| <property name="user.country" value="US" />
| <property name="java.home" value="D:\jdk1.6.0_05\jre" />
| <property name="java.vm.info" value="mixed mode" />
| <property name="lib.jaxen.local" value="../../lib/jaxen.jar" />
| <property name="ant.file" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello\build.xml" />
| <property name="os.version" value="5.1" />
| <property name="javac.source" value="1.4" />
| <property name="lib.hibernate.local" value="../../lib/hibernate3.jar" />
| <property name="javac.debug" value="true" />
| <property name="lib.commons.httpclient.local" value="../../lib/commons-httpclient.jar" />
| <property name="path.separator" value=";" />
| <property name="output.test.dir" value="target/test" />
| <property name="jwsdp.home" value="d:/SOA_JBoss/jwsdp-2.0" />
| <property name="java.vm.version" value="10.0-b19" />
| <property name="lib.log4j.local" value="../../lib/log4j.jar" />
| <property name="user.variant" value="" />
| <property name="mapping.uptodate" value="true" />
| <property name="web.dir" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello\src\main\resources\web" />
| <property name="ant.library.dir" value="D:\apache-ant-1.7.0\lib" />
| <property name="output.dir" value="target" />
| <property name="lib.jbpm.bpel.version" value="1.1.1" />
| <property name="java.awt.printerjob" value="sun.awt.windows.WPrinterJob" />
| <property name="sun.io.unicode.encoding" value="UnicodeLittle" />
| <property name="lib.xercesimpl.local" value="../../lib/xercesImpl.jar" />
| <property name="awt.toolkit" value="sun.awt.windows.WToolkit" />
| <property name="lib.jbpm.bpel.application.name" value="jbpm-bpel.ear" />
| <property name="bpel.dir" value="src/main/bpel2" />
| <property name="lib.hsqldb.local" value="../../lib/hsqldb.jar" />
| <property name="lib.commons.lang.local" value="../../lib/commons-lang.jar" />
| <property name="ant.file.hello" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello\build.xml" />
| <property name="published.wsdl.available" value="true" />
| <property name="user.home" value="C:\Documents and Settings\dchakraborty" />
| <property name="lib.jboss.j2ee.local" value="../../lib/jboss-j2ee.jar" />
| <property name="output.java.dir" value="target/java" />
| <property name="lib.jbpm.bpel.config.local" value="../../lib/jbpm-bpel-config.jar" />
| <property name="java.specification.vendor" value="Sun Microsystems Inc." />
| <property name="java.vendor.url" value="http://java.sun.com/" />
| <property name="java.library.path" value="D:\jdk1.6.0_05\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\jdk1.6.0_05\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.4.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Java_latest;C:\Program Files\Common Files\Adobe\AGL;D:\apache-ant-1.7.0\bin;D:\SOA_JBoss\jwsdp-2.0\jwsdp-shared\bin" />
| <property name="jboss.home" value="d:/jboss-4.2.2.GA" />
| <property name="lib.jbpm.jpdl.jar.local" value="../../lib/jbpm-jpdl.jar" />
| <property name="java.vm.vendor" value="Sun Microsystems Inc." />
| <property name="module.name" value="hello" />
| <property name="jboss.version" value="4.2.2.GA" />
| <property name="java.runtime.name" value="Java(TM) SE Runtime Environment" />
| <property name="lib.jboss.saaj.local" value="../../lib/jboss-saaj.jar" />
| <property name="lib.servlet-jsp.local" value="../../lib/jsp-api.jar" />
| <property name="ant.version" value="Apache Ant version 1.7.0 compiled on December 13 2006" />
| <property name="java.class.path" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\config;d:\jboss-4.2.2.GA\client\activation.jar;d:\jboss-4.2.2.GA\client\antlr.jar;d:\jboss-4.2.2.GA\client\avalon-framework.jar;d:\jboss-4.2.2.GA\client\commons-codec.jar;d:\jboss-4.2.2.GA\client\commons-httpclient.jar;d:\jboss-4.2.2.GA\client\commons-logging.jar;d:\jboss-4.2.2.GA\client\concurrent.jar;d:\jboss-4.2.2.GA\client\ejb3-persistence.jar;d:\jboss-4.2.2.GA\client\getopt.jar;d:\jboss-4.2.2.GA\client\hibernate-annotations.jar;d:\jboss-4.2.2.GA\client\hibernate-client.jar;d:\jboss-4.2.2.GA\client\jacorb.jar;d:\jboss-4.2.2.GA\client\javassist.jar;d:\jboss-4.2.2.GA\client\jaxb-api.jar;d:\jboss-4.2.2.GA\client\jaxb-impl.jar;d:\jboss-4.2.2.GA\client\jaxb-xjc.jar;d:\jboss-4.2.2.GA\client\jaxws-rt.jar;d:\jboss-4.2.2.GA\client\jaxws-tools.jar;d:\jboss-4.2.2.GA\client\jboss-annotations-ejb3.jar;d:\jboss-4.2.2.GA\client\jboss-aop-jdk50-client.jar;d:\jboss-4.2.2.GA\client\jboss-aspect-jdk50-client.jar;d:\jboss-4.2.2.GA\client\jboss-client.jar;d:\jboss-4.2.2.GA\client\jboss-common-client.jar;d:\jboss-4.2.2.GA\client\jboss-deployment.jar;d:\jboss-4.2.2.GA\client\jboss-ejb3-client.jar;d:\jboss-4.2.2.GA\client\jboss-ejb3x.jar;d:\jboss-4.2.2.GA\client\jboss-iiop-client.jar;d:\jboss-4.2.2.GA\client\jboss-j2ee.jar;d:\jboss-4.2.2.GA\client\jboss-jaxrpc.jar;d:\jboss-4.2.2.GA\client\jboss-jaxws.jar;d:\jboss-4.2.2.GA\client\jboss-jsr77-client.jar;d:\jboss-4.2.2.GA\client\jboss-remoting.jar;d:\jboss-4.2.2.GA\client\jboss-saaj.jar;d:\jboss-4.2.2.GA\client\jboss-serialization.jar;d:\jboss-4.2.2.GA\client\jboss-srp-client.jar;d:\jboss-4.2.2.GA\client\jboss-system-client.jar;d:\jboss-4.2.2.GA\client\jboss-transaction-client.jar;d:\jboss-4.2.2.GA\client\jboss-xml-binding.jar;d:\jboss-4.2.2.GA\client\jbossall-client.jar;d:\jboss-4.2.2.GA\client\jbosscx-client.jar;d:\jboss-4.2.2.GA\client\jbossha-client.jar;d:\jboss-4.2.2.GA\client\jbossjmx-ant.jar;d:\jboss-4.2.2.GA\client\jbossmq-client.jar;d:\jboss-4.2.2.GA\client\jbosssx-client.jar;d:\jboss-4.2.2.GA\client\jbossws-client.jar;d:\jboss-4.2.2.GA\client\jbossws-common.jar;d:\jboss-4.2.2.GA\client\jbossws-framework.jar;d:\jboss-4.2.2.GA\client\jbossws-jboss42.jar;d:\jboss-4.2.2.GA\client\jbossws-spi.jar;d:\jboss-4.2.2.GA\client\jmx-client.jar;d:\jboss-4.2.2.GA\client\jmx-invoker-adaptor-client.jar;d:\jboss-4.2.2.GA\client\jnp-client.jar;d:\jboss-4.2.2.GA\client\log4j.jar;d:\jboss-4.2.2.GA\client\logkit.jar;d:\jboss-4.2.2.GA\client\mail.jar;d:\jboss-4.2.2.GA\client\policy.jar;d:\jboss-4.2.2.GA\client\scout.jar;d:\jboss-4.2.2.GA\client\servlet-api.jar;d:\jboss-4.2.2.GA\client\stax-api.jar;d:\jboss-4.2.2.GA\client\stax-ex.jar;d:\jboss-4.2.2.GA\client\streambuffer.jar;d:\jboss-4.2.2.GA\client\trove.jar;d:\jboss-4.2.2.GA\client\wsdl4j.jar;d:\jboss-4.2.2.GA\client\wstx.jar;d:\jboss-4.2.2.GA\client\xmlsec.jar;D:\SOA_JBoss\jbpm-bpel-1.1.1\lib\junit.jar;D:\SOA_JBoss\jbpm-bpel-1.1.1\lib\jbpm-bpel-tools.jar;D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello\target\classes;D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello\target\test\classes;D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello;D:\jdk1.6.0_05\lib;D:\jdk1.6.0_05\jre\lib\rt.jar;D:\jboss-4.2.2.GA\server\onereview_analysis\lib\jbossall-client.jar;D:\jboss-4.2.2.GA\server\onereview_analysis\lib\rasuser-core.jar;D:\jboss-4.2.2.GA\server\onereview_analysis\lib\commons-logging-1.0.4.jar;D:\jboss-4.2.2.GA\server\onereview_analysis\lib\commons-logging.jar;D:\apache-ant-1.7.0\lib\ant-launcher.jar;D:\apache-ant-1.7.0\lib\ant.jar;D:\apache-ant-1.7.0\lib\ant-junit.jar" />
| <property name="client.dir" value="src/main/resources/client" />
| <property name="lib.xml.apis.local" value="../../lib/xml-apis.jar" />
| <property name="java.vm.specification.name" value="Java Virtual Machine Specification" />
| <property name="lib.jbpm.bpel.jboss420.jar.local" value="../../lib/jbpm-bpel-jboss420.jar" />
| <property name="java.vm.specification.version" value="1.0" />
| <property name="sun.os.patch.level" value="Service Pack 2" />
| <property name="sun.cpu.endian" value="little" />
| <property name="java.dir" value="src/main/java" />
| <property name="lib.jbpm.bpel.console.file" value="jbpm-bpel.war" />
| <property name="java.io.tmpdir" value="C:\DOCUME~1\DCHAKR~1\LOCALS~1\Temp\" />
| <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi" />
| <property name="jboss.wsdl.dir" value="d:/jboss-4.2.2.GA/server/default/data/wsdl/hello.war" />
| <property name="lib.jbpm.bpel.enterprise.file" value="jbpm-bpel-enterprise.jar" />
| <property name="ant.file.test" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\common\test-build.xml" />
| <property name="java.awt.graphicsenv" value="sun.awt.Win32GraphicsEnvironment" />
| <property name="os.arch" value="x86" />
| <property name="common.dir" value="../../examples/common" />
| <property name="java.ext.dirs" value="D:\jdk1.6.0_05\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext" />
| <property name="user.dir" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello\target" />
| <property name="lib.jbpm.jpdl.version" value="3.2.3" />
| <property name="lib.commons.logging.local" value="../../lib/commons-logging.jar" />
| <property name="line.separator" value="
| " />
| <property name="lib.asm.local" value="../../lib/asm.jar" />
| <property name="java.vm.name" value="Java HotSpot(TM) Client VM" />
| <property name="basedir" value="D:\SOA_JBoss\jbpm-bpel-1.1.1\examples\hello" />
| <property name="ant.java.version" value="1.6" />
| <property name="config.dir" value="../../config" />
| <property name="ant.core.lib" value="D:\apache-ant-1.7.0\lib\ant.jar" />
| <property name="output.web.dir" value="target/resources/web" />
| <property name="file.encoding" value="Cp1252" />
| <property name="lib.jbpm.bpel.tools.jar.local" value="../../lib/jbpm-bpel-tools.jar" />
| <property name="lib.jbpm.bpel.container.name" value="jbpm-bpel-container.jar" />
| <property name="java.specification.version" value="1.6" />
| <property name="lib.commons.fileupload.local" value="../../lib/commons-fileupload.jar" />
| <property name="jboss.server.dir" value="d:/jboss-4.2.2.GA/server/default" />
| </properties>
| <testcase classname="org.jbpm.bpel.tutorial.hello.HelloTest" name="testSayHello_proxy" time="0.89">
| <error message="Call invocation failed; nested exception is:
| java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed; nested exception is:
| java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:536)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:151)
| at $Proxy3.sayHello(Unknown Source)
| at org.jbpm.bpel.tutorial.hello.HelloTest.testSayHello_proxy(HelloTest.java:47)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
| at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
| at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:156)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:289)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| </error>
| </testcase>
| <testcase classname="org.jbpm.bpel.tutorial.hello.HelloTest" name="testSayHello_dii" time="0.11">
| <error message="Call invocation failed; nested exception is:
| java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage" type="java.rmi.RemoteException">java.rmi.RemoteException: Call invocation failed; nested exception is:
| java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:536)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jbpm.bpel.tutorial.hello.HelloTest.testSayHello_dii(HelloTest.java:57)
| at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| Caused by: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
| at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
| at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
| at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:161)
| at org.jboss.ws.core.CommonSOAP11Binding.createMessage(CommonSOAP11Binding.java:59)
| at org.jboss.ws.core.CommonSOAPBinding.bindRequestMessage(CommonSOAPBinding.java:156)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:289)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| </error>
| </testcase>
| <system-out><![CDATA[11:16:22,875 DEBUG [SecurityAssociation] Using ThreadLocal: false
| ]]></system-out>
| <system-err><![CDATA[]]></system-err>
| </testsuite>
|
I cannot understand this exception.could anyone pls help me out
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187182#4187182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187182
17 years, 5 months
[JBoss jBPM] - couldn't find process definition 'helloworld'
by wuxi7227001
Hello,everyone
Im a JBPM newbie, I want to set up a project struts2+springmodule jbpm+hibernate+oracle and run a jbpm helloworld. my configuration is as below:
applicationContext.xml:
| <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" lazy-init="false">
| <property name="locations">
| <list>
| <value>classpath*:conf/jdbc.properties</value>
| <value>classpath*:hibernate.properties</value>
| </list>
| </property>
| </bean>
|
|
| <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
| <property name="driverClassName" value="${jdbc.driverClassName}" />
| <property name="url" value="${jdbc.url}" />
| <property name="username" value="${jdbc.username}" />
| <property name="password" value="${jdbc.password}" />
| </bean>
|
| <!--Hibernate SessionFatory-->
| <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
| <property name="dataSource" ref="dataSource" />
| <property name="mappingDirectoryLocations">
| <list>
| <value>classpath*:/com/indexerstudio/webapp/plugins/security/domain/hbm/</value>
| </list>
| </property>
| <property name="hibernateProperties">
| <props>
| <prop key="hibernate.dialect">${hibernate.dialect}</prop>
| <prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
| <prop key="hibernate.use_sql_comments">true</prop>
| <prop key="hibernate.connection.useUnicode">true</prop>
| <prop key="hibernate.connection.defaultNChar">true</prop>
| <prop key="hibernate.connection.characterEncoding">UTF-8</prop>
| <prop key="hibernate.jdbc.use_streams_for_binary">true</prop>
| <prop key="hibernate.cache.use_query_cache">${hibernate.cache.use_query_cache}</prop>
| <prop key="hibernate.cache.provider_class">${hibernate.cache.provider_class}</prop>
| </props>
| </property>
| </bean>
|
| <!--Hibernate TransactionManager-->
| <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
| <property name="sessionFactory" ref="sessionFactory" />
| </bean>
|
| <!-- helper for reading jBPM process definitions -->
| <bean id="helloworld" class="org.springmodules.workflow.jbpm31.definition.ProcessDefinitionFactoryBean">
| <property name="definitionLocation" value="classpath:helloworld/processdefinition.xml" />
| </bean>
|
| <!-- jBPM configuration -->
| <bean id="jbpmConfiguration" class="org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean">
| <property name="sessionFactory" ref="sessionFactory" />
| <property name="configuration" value="classpath:jbpm.cfg.xml" />
| <property name="processDefinitions">
| <list>
| <ref local="helloworld" />
| </list>
| </property>
| <!-- property name="createSchema" value="true" / -->
| <!-- property name="processDefinitionsResources">
| <list>
| <value>classpath:/org/springmodules/workflow/jbpm31/someOtherWorkflow.xml</value>
| </list>
| </property -->
| </bean>
|
| <!-- jBPM template -->
| <bean id="jbpmTemplate" class="org.springmodules.workflow.jbpm31.JbpmTemplate">
| <constructor-arg index="0" ref="jbpmConfiguration" />
| <constructor-arg index="1" ref="helloworld" />
| </bean>
|
| <!-- EhCache Manager -->
| <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
| <property name="configLocation">
| <value>classpath:conf/ehcache.xml</value>
| </property>
| </bean>
|
jbpm.cfg.xml:
| <jbpm-configuration>
| <jbpm-context>
| <service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory"/>
| <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory"/>
| <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory"/>
| <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory"/>
| <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory"/>
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory"/>
| </jbpm-context>
|
| <string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties"/>
| <string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties"/>
| <string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties"/>
| <string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml"/>
| <string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml"/>
| <string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml"/>
| <string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml"/>
|
| <bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl"
| singleton="true"/>
| <bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true"/>
| <long name="jbpm.msg.wait.timout" value="5000" singleton="true"/>
| </jbpm-configuration>
|
I get error as below when app startup :
org.jbpm.JbpmException: couldn't find process definition 'helloworld'
at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:158)
at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:67)
at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
why does it queries the database for the latest version of a process definition with the given name? why not use xml file? thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187172#4187172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187172
17 years, 5 months
[JBoss jBPM] - Listeners for BPEL <receive> activities
by dhanushgopinath
Hi,
For a receive activity that is a start activity(createInstance="yes") I figured out that the Listener is
anonymous wrote : org.jbpm.bpel.integration.jms.StartListener and its onMessage method is called when I start the bpel process, and hence I can get hold of the input data.
My bpel process also have other receive activities and I want to tap these calls too. But I do not find any listeners for them.
There is a class org.jbpm.bpel.integration.jms.RequestListener , but its onMessage method is never called. I tried debugging a bit, and found out that the SOAPHandler is directly sending a JMS request to the queue in its sendRequest() method. Once this is send I am not able to see how the information flows.
Any inputs in this regard will be helpful for me.
Thanks in Advance
Best Regards
Dhanush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186961#4186961
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186961
17 years, 5 months