[jBPM] - Re: Log errors in Guvnor - Designer
by Demian Calcaprina
Demian Calcaprina [https://community.jboss.org/people/calca] created the discussion
"Re: Log errors in Guvnor - Designer"
To view the discussion, visit: https://community.jboss.org/message/822197#822197
--------------------------------------------------------------
Hi Jiri. I just checked downloading designer 2.4 and guvnor 5.5. Created a very simple process Start - Script - End. And, when build package, I am getting the same
20:53:11,319 INFO [org.apache.jackrabbit.core.TransientRepository] (http--127.0.0.1-8080-6) Session opened
20:53:11,362 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 40, 52): cvc-complex-type.4: Attribute 'type' must appear on element 'bpmn2:relationship'.
20:53:11,362 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 43, 92): cvc-elt.4.2: Cannot resolve 'drools:Scenario' to a type definition for element 'drools:Scenario'.
20:53:11,363 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 44, 100): cvc-elt.4.2: Cannot resolve 'drools:ScenarioParameters_._type' to a type definition for element 'drools:ScenarioParameters'.
20:53:11,363 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 45, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
20:53:11,363 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 46, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
20:53:11,364 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 47, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.
20:53:11,364 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 52, 69): cvc-elt.4.2: Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.
20:53:11,364 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 53, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.
20:53:11,365 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 58, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
20:53:11,365 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 59, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.
20:53:11,366 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 60, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.
20:53:11,366 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 65, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
20:53:11,366 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 66, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
20:53:11,367 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 67, 60): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:WaitTime'.
20:53:11,367 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 73, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
20:53:11,367 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 74, 75): cvc-elt.4.2: Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.
20:53:11,368 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 75, 63): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.
20:53:11,368 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 80, 159): cvc-elt.4.2: Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
20:53:11,369 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 81, 69): cvc-elt.4.2: Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
20:53:11,369 ERROR [org.drools.xml.ExtensibleXmlParser] (http--127.0.0.1-8080-6) (null: 82, 66): cvc-elt.4.2: Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/822197#822197]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[jBPM] - Re: jBPM5.1 : Setting Process Variable from code(Using API)
by Vinay N
Vinay N [https://community.jboss.org/people/vinay_] created the discussion
"Re: jBPM5.1 : Setting Process Variable from code(Using API)"
To view the discussion, visit: https://community.jboss.org/message/822164#822164
--------------------------------------------------------------
Hi All ,
I am getting this error....
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomcat%207.0/lib/slf4j-jdk14-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/IPMS_Workspace_New/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/jbpmWebExm/WEB-INF/lib/slf4j-jdk14-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
9 Jun, 2013 6:11:15 PM bitronix.tm.BitronixTransactionManager logVersion
INFO: Bitronix Transaction Manager version 2.1.3
9 Jun, 2013 6:11:15 PM bitronix.tm.Configuration buildServerIdArray
WARNING: cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).
9 Jun, 2013 6:11:15 PM bitronix.tm.Configuration buildServerIdArray
INFO: JVM unique ID: <172.16.6.139>
2013-06-09 18:11:15,774 (TaskProcessServlet.java:56) ERROR com.sample.processserver.TaskProcessServlet - [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
org.hibernate.HibernateException: Could not obtain BTM transaction manager instance
at org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionManager(BTMTransactionManagerLookup.java:50)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:262)
at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:242)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:44)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionManager(BTMTransactionManagerLookup.java:47)
... 24 more
Caused by: bitronix.tm.utils.InitializationException: cannot open disk journal
at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:98)
at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:75)
... 29 more
Caused by: java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.FileDispatcher.read(FileDispatcher.java:28)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
at sun.nio.ch.IOUtil.read(IOUtil.java:171)
at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:144)
at bitronix.tm.journal.TransactionLogHeader.<init>(TransactionLogHeader.java:101)
at bitronix.tm.journal.TransactionLogAppender.<init>(TransactionLogAppender.java:70)
at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:157)
at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:85)
... 30 more
9 Jun, 2013 6:11:15 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: error while creating session
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:57)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:262)
at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:242)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:44)
... 14 more
Caused by: org.hibernate.HibernateException: Could not obtain BTM transaction manager instance
at org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionManager(BTMTransactionManagerLookup.java:50)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
... 20 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionManager(BTMTransactionManagerLookup.java:47)
... 24 more
Caused by: bitronix.tm.utils.InitializationException: cannot open disk journal
at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:98)
at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:75)
... 29 more
Caused by: java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.FileDispatcher.read(FileDispatcher.java:28)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
at sun.nio.ch.IOUtil.read(IOUtil.java:171)
at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:144)
at bitronix.tm.journal.TransactionLogHeader.<init>(TransactionLogHeader.java:101)
at bitronix.tm.journal.TransactionLogAppender.<init>(TransactionLogAppender.java:70)
at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:157)
at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:85)
... 30 more
9 Jun, 2013 6:11:15 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /jbpmWebExm threw load() exception
java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at sun.nio.ch.FileDispatcher.read0(Native Method)
at sun.nio.ch.FileDispatcher.read(FileDispatcher.java:28)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
at sun.nio.ch.IOUtil.read(IOUtil.java:171)
at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:144)
at bitronix.tm.journal.TransactionLogHeader.<init>(TransactionLogHeader.java:101)
at bitronix.tm.journal.TransactionLogAppender.<init>(TransactionLogAppender.java:70)
at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:157)
at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:85)
at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionManager(BTMTransactionManagerLookup.java:47)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:262)
at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:242)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:44)
at javax.servlet.GenericServlet.init(GenericServlet.java:160)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1525)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1515)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
9 Jun, 2013 6:11:15 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
9 Jun, 2013 6:11:15 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
9 Jun, 2013 6:11:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3438 ms
9 Jun, 2013 6:11:16 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/jbpmWebExm] threw exception [java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature] with root cause
java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
at org.apache.jsp.index_jsp._jspInit(index_jsp.java:31)
at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:49)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:180)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
my persistant.xml file :
<persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:comp/env/jdbc/jbpm-ds</jta-data-source>
<!-- <mapping-file>META-INF/orm.xml</mapping-file> -->
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.User</class>
<class>org.jbpm.task.PeopleAssignments</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
<!--
<property name="hibernate.connection.autocommit" value="false"/>
-->
<property name="hibernate.connection.autocommit" value="false"/>
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup"/>
</properties>
</persistence-unit>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/822164#822164]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[EJB3] - Re: EJB 2.1 BMP with CMT and RequiresNew in JBoss AS 7.1.0 Final
by Daniel Zhelyazkov
Daniel Zhelyazkov [https://community.jboss.org/people/dzhelyazkov] created the discussion
"Re: EJB 2.1 BMP with CMT and RequiresNew in JBoss AS 7.1.0 Final"
To view the discussion, visit: https://community.jboss.org/message/728546#728546
--------------------------------------------------------------
Fixed my problem, after debug session of JBoss code it turned out that the code that parses TX attributes produces wrong info.
we had the folowing in ejb-jar.xml
<method>
<ejb-name>SomeEjb</ejb-name>
<method-name>*</method-name>
</method>
...
<trans-attribute>RequiresNew</trans-attribute>
Specified like that JBoss set default TX attribute Required to all LOCAL_HOME methods (ejbCreate/Find/Select/Home)
and RequiresNew to all Bean methods such as toString(), hashCode()...
by adding <method-intf>LocalHome</method-intf>
<method>
<ejb-name>SomeEjb</ejb-name>
<method-intf>LocalHome</method-intf>
<method-name>*</method-name>
</method>
all went to normal, my ejbCreate() started new transaction, and getProperties() method did not use TX interceptor.
So it looks like different or wrong loginc in JBoss, the code itself states it has some problems, and it looks targeted at EJB 3.x, it is not a separate code for 2.x
daniel
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728546#728546]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[jBPM] - Simple state machine with transitions
by Alfie Kirkpatrick
Alfie Kirkpatrick [https://community.jboss.org/people/alfiekirkpatrick] created the discussion
"Simple state machine with transitions"
To view the discussion, visit: https://community.jboss.org/message/821954#821954
--------------------------------------------------------------
We have an existing (bespoke) workflow engine in our product and we are looking at options to bring it up-to-date using jBPM or similar.
Each asset type in our system has a state machine that defines the lifecycle of the asset. For each state there are a number of transitions to other states (or back to the same state). These can be triggered by users of the system or through an API.
It's important that the people doing the configuration for a project can easily define the state machine for a particular asset type. This is currently done through a non-graphical web form as a complex kind of table (not pretty but it works).
Additionally, we can define which user roles can execute each transition and therefore control who can shift assets from one state to another. Since 'save' and 'view' are actually transitions internally, this provides a good level of access control.
There's more functionality such as custom actions on transitions and transition parameters but you get the basic idea.
I'm new to jBPM (I did some work on jBPM 4 but for a different scenario). It seems this scenario would typically be handled by a combination of user task (or manual task) and a gateway. The steps might be:
- Define a task connected to a gateway
- Before completing the task, set process variable to the path to follow, eg. transition="save"
- Place a constraint on each outgoing flow on the gateway, eg. return "save".equals(transition)
It seems the mapping of task output to variable could be handled in the BPMN also, though I've not looked at that in detail.
The main issue I see is that this is tricky and error prone to set up for a complex scenario, so I am trying to think of ways to simplify it for projects.
One idea would be to define a simpler XML format expressing the states/transitions involved and then transform it to BPMN for jBPM before loading.
Another idea would be to add a new SemanticModule to the PackageBuilderConfiguration, to allow different elements in the process that give the "higher level" definition we're after.
A third idea would be to give up on BPMN and use the underlying state machine in jBPM/Drools, ie. handle things at a lower level. It seems that the SemanticModule for BPMN ends up transforming to some lower level XML, and maybe this is where we should be looking.
Sorry for the long post, but any general thoughts on which way to proceed, or areas to investigate much appreciated!
Alfie.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/821954#821954]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[jBPM] - Continual internal server error when starting JBPM-Console
by David Harris
David Harris [https://community.jboss.org/people/dmwpepper] created the discussion
"Continual internal server error when starting JBPM-Console"
To view the discussion, visit: https://community.jboss.org/message/822071#822071
--------------------------------------------------------------
I'm consistently getting the following error, displayed after logging into the JBPM- Console (jBPM 5.4). I've tried deleting the directory and then reinstalling, but the error still occurs. Any ideas what it might be?:
URL: ' http://localhost:8080/gwt-console-server/rs/tasks/krisv http://localhost:8080/gwt-console-server/rs/tasks/krisv'
Action: 'org.jboss.bpm.console.client.task.LoadTasksAction'
Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: org/jboss/netty/channel/socket/ClientSocketChannelFactory
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
root cause
java.lang.NoClassDefFoundError: org/jboss/netty/channel/socket/ClientSocketChannelFactory
org.hornetq.core.remoting.impl.netty.NettyConnectorFactory.createConnector(NettyConnectorFactory.java:40)
org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1118)
org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:993)
org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:224)
org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:663)
org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:96)
org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:76)
org.jbpm.task.service.TaskClient.connect(TaskClient.java:845)
org.jbpm.integration.console.TaskClientFactory.newAsyncInstance(TaskClientFactory.java:101)
org.jbpm.integration.console.TaskClientFactory.newAsyncInstance(TaskClientFactory.java:111)
org.jbpm.integration.console.TaskClientFactory.newInstance(TaskClientFactory.java:65)
org.jbpm.integration.console.TaskManagement.connect(TaskManagement.java:61)
org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskManagement.java:124)
org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/822071#822071]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months
[jBPM] - Error: APPLICATION ERROR: transaction still active in request with status 0
by alvinuw
alvinuw [https://community.jboss.org/people/alvinuw] created the discussion
"Error: APPLICATION ERROR: transaction still active in request with status 0"
To view the discussion, visit: https://community.jboss.org/message/820178#820178
--------------------------------------------------------------
Hello,
I am trying to deploy my jbpm5.4 process in console.
The process is very simple, which contains a start -> the first workItem(EmailSender)->the first workItem(EmailReceiver)->an end
For some reason, I have to write the custom workitemhandlers for the two workItems, EWSHandler and EWSHandler2.
*Please note:* I also have two variables(MsgId, Checker) for the com.sample.bpmn.EmailApps process.
And I used eclipse plugin to develop it, it works well on eclipse.
In EWSHandler.java, I have:
Map<String, Object> results = new HashMap<String, Object>();
results.put("MsgId", id);
results.put("Checker", recipient);
manager.completeWorkItem(workItem.getId(), results);
I followed the below steps to deploy the process in console.
*1*. modify $jbpm_installer/conf/META-INF/CustomWorkItemHandlers.conf
[
"Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),
"EmailSender": new com.sample.EWSHandler(),
"EmailReceiver": new com.sample.EWSHandler2(),
]
*2.* put both com.sample.EWSHandler.jar and com.sample.EWSHandler2.jar in $jbpm_installer/dependencies folder.
*3.* Run commands
ant clean.demo
ant install.demo
ant start.demo
*4.* Upload EmailApps-image.png and EmailApps.bpmn to Guvnor's defaultPackge, then build package.
*5.* login Console, check Process Overview.
https://community.jboss.org/servlet/JiveServlet/showImage/2-820178-20884/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-820178-20...
*6. I don't know why it shows "Process1" instead of "EmailApps" in my process list. How to change the process name?*
When I checked the server.log, it gave me the following error*.
*
12:24:37,529 WARN [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-14) Creating RulesRepository with default username.
12:24:37,529 INFO [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-33
12:24:37,529 INFO [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-33
12:24:45,407 ERROR [org.jboss.as.txn] (http-localhost-127.0.0.1-8080-6) *JBAS010152:* *APPLICATION ERROR: transaction still active in request with status 0*
12:24:47,513 WARN [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-14) Creating RulesRepository with default username.
12:24:47,513 INFO [stdout] (http-localhost-127.0.0.1-8080-14) =============== session-guest-34
I searched this error in both google and our community, but didn't get a proper answer.
If you need me to provide more details, please let me know.
Thank you very much.
Alvin
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820178#820178]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 6 months