8 Replies Latest reply on Apr 1, 2013 10:54 PM by Wooi Joe Chuah

    Use jBPM 5.3 with a simple Java EE application

    Siva NB Newbie

      Hi

       

      I'm new to jBPM.

       

      I have managed to create a jBPM project / process.

       

      i want to invoke such a process from jsp/servlet.

       

      i tried following the links in https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example

       

      i couldnt interpret the location for resource folder.

       

      can anyone pls provide a step by step procedure.

       

      TIA

        • 1. Re: Use jBPM 5.3 with a simple Java EE application
          Shobhit Tyagi Master

          if you can wait 1 day.. I will post my web app in my blog tomorrow. It is a simple servlet/jsp application. with many diff process defs.. group tasks, status of processes both graphical and task wise.

          • 2. Re: Use jBPM 5.3 with a simple Java EE application
            Siva NB Newbie

            Thanks roxy, i'm awaiting ur response.

            • 3. Re: Use jBPM 5.3 with a simple Java EE application
              Shobhit Tyagi Master

              There you go. Post a comment there if you have trouble running it. It uses jbpm 5.4 and is configured to run on DB2 and Websphere. But can be configured to run on other DBs and Webcontainers too.

               

              https://community.jboss.org/people/roxy1987/blog/2013/01/22/jbpm5-web-application-example

              • 4. Re: Use jBPM 5.3 with a simple Java EE application
                Siva NB Newbie

                Hi,

                 

                Atlast able to execute your code.

                 

                but it is failing in //UserTransaction ut = (UserTransaction) new InitialContext().lookup( "java:comp/UserTransaction" );

                 

                 

                8:58:50,078 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) javax.naming.NameNotFoundException: unable to find a bound object at name ''java:comp/UserTransaction"

                 

                 

                18:58:50,084 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)

                 

                 

                18:58:50,088 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at javax.naming.InitialContext.lookup(Unknown Source)

                 

                 

                18:58:50,092 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at main.java.com.sample.processserver.TaskProcessServlet.processRequest(TaskProcessServlet.java:88)

                 

                 

                18:58:50,098 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at main.java.com.sample.processserver.TaskProcessServlet.doGet(TaskProcessServlet.java:263)

                 

                 

                18:58:50,103 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

                 

                 

                18:58:50,107 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                 

                 

                18:58:50,111 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                 

                 

                18:58:50,117 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                 

                 

                18:58:50,122 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                 

                 

                18:58:50,127 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                 

                 

                18:58:50,132 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                 

                 

                18:58:50,137 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                 

                 

                18:58:50,143 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                 

                 

                18:58:50,148 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                 

                 

                18:58:50,153 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                 

                 

                18:58:50,158 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                 

                 

                18:58:50,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                 

                 

                18:58:50,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                 

                 

                18:58:50,173 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                 

                 

                18:58:50,178 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)           at java.lang.Thread.run(Unknown Source)

                 

                 

                18:58:56,128 WARN  [org.drools.guvnor.server.repository.RulesRepositoryManager] (http-localhost-127.0.0.1-8080-4) Creating RulesRepository with default username.

                18:58:56,139 INFO  [stdout] (http-localhost-127.0.0.1-8080-4) =============== session-guest-1018

                 

                 

                18:58:56,144 INFO  [stdout] (http-localhost-127.0.0.1-8080-4) =============== session-guest-1018

                 

                 

                Could u pls tell me how to proceed with this.

                • 5. Re: Use jBPM 5.3 with a simple Java EE application
                  Shobhit Tyagi Master

                  Siva,

                   

                  Have you modified the transaction lookup class in persistence.xml as per your web server. Right now it is as per websphere. You will need to change the property at 2 places in persistence.xml.

                  1 of 1 people found this helpful
                  • 6. Re: Use jBPM 5.3 with a simple Java EE application
                    Siva NB Newbie

                    Thanks roxy.

                     

                    Since i'm using it in jBOSS 7.1, i have added

                     

                    <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />

                     

                    in the META-INF/persistence.xml

                     

                    Somehow able to rectify few errors that occured and when tried to intiate a process (say sample.bpmn) the following stacktrace occurs,

                     

                     

                     

                    15:58:12,868 INFO  [main.java.com.sample.processserver.TaskProcessServlet] (http-localhost-127.0.0.1-8080-2) @@@@@@@@ Start Process + Begin + JBPMAPIUTIL

                    15:58:12,874 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (http-localhost-127.0.0.1-8080-2) Value of processDefId : com.sample.bpmn.hello

                    15:58:12,878 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (http-localhost-127.0.0.1-8080-2) Value of processName : sample.bpmn

                    15:58:12,882 INFO  [stdout] (http-localhost-127.0.0.1-8080-2) @@@@@@@@@@@@@@@@@@@ initiate process

                     

                     

                    15:58:12,886 INFO  [stdout] (http-localhost-127.0.0.1-8080-2) @@@@@@@@@@@@@@@@@@@ Creating Session

                     

                     

                    15:58:12,890 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (http-localhost-127.0.0.1-8080-2) Value of processNames : [sample.bpmn]

                    15:58:12,895 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (http-localhost-127.0.0.1-8080-2) Value of processNames : [sample.bpmn]

                    15:58:12,899 INFO  [stdout] (http-localhost-127.0.0.1-8080-2) ------------ within create session ------------

                     

                     

                    15:58:12,959 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (http-localhost-127.0.0.1-8080-2) ------------------------------------ERROR-------------------------------------

                    15:58:12,966 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (http-localhost-127.0.0.1-8080-2) STACK TRACE: org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                    15:58:12,972 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (http-localhost-127.0.0.1-8080-2) ------------------------------------ERROR-------------------------------------

                    15:58:12,978 ERROR [stderr] (http-localhost-127.0.0.1-8080-2) javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory

                     

                     

                    15:58:12,987 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                     

                     

                    15:58:12,993 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

                     

                     

                    15:58:12,999 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)

                     

                     

                    15:58:13,006 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

                     

                     

                    15:58:13,011 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

                     

                     

                    15:58:13,020 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at main.java.com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:521)

                     

                     

                    15:58:13,025 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at main.java.com.sample.processserver.JbpmAPIUtil.initiateProcess(JbpmAPIUtil.java:473)

                     

                     

                    15:58:13,036 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at main.java.com.sample.processserver.TaskProcessServlet.processRequest(TaskProcessServlet.java:96)

                     

                     

                    15:58:13,046 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at main.java.com.sample.processserver.TaskProcessServlet.doGet(TaskProcessServlet.java:267)

                     

                     

                    15:58:13,053 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

                     

                     

                    15:58:13,057 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                     

                     

                    15:58:13,061 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                     

                     

                    15:58:13,068 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                     

                     

                    15:58:13,074 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                     

                     

                    15:58:13,079 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                     

                     

                    15:58:13,084 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                     

                     

                    15:58:13,089 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                     

                     

                    15:58:13,095 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                     

                     

                    15:58:13,100 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                     

                     

                    15:58:13,107 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                     

                     

                    15:58:13,113 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                     

                     

                    15:58:13,120 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                     

                     

                    15:58:13,125 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                     

                     

                    15:58:13,130 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                     

                     

                    15:58:13,135 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at java.lang.Thread.run(Unknown Source)

                     

                     

                    15:58:13,144 ERROR [stderr] (http-localhost-127.0.0.1-8080-2) Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [java:jboss/datasources/jbpmDS]

                     

                     

                    15:58:13,149 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92)

                     

                     

                    15:58:13,154 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63)

                     

                     

                    15:58:13,159 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)

                     

                     

                    15:58:13,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                     

                     

                    15:58:13,172 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                     

                     

                    15:58:13,178 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                     

                     

                    15:58:13,185 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

                     

                     

                    15:58:13,192 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

                     

                     

                    15:58:13,199 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                     

                     

                    15:58:13,205 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                     

                     

                    15:58:13,211 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                     

                     

                    15:58:13,218 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                     

                     

                    15:58:13,222 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                     

                     

                    15:58:13,229 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                     

                     

                    15:58:13,234 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                     

                     

                    15:58:13,239 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                     

                     

                    15:58:13,245 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                     

                     

                    15:58:13,250 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           ... 24 more

                     

                     

                    15:58:13,253 ERROR [stderr] (http-localhost-127.0.0.1-8080-2) Caused by: javax.naming.OperationNotSupportedException

                     

                     

                    15:58:13,257 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at bitronix.tm.jndi.BitronixContext.getNameParser(BitronixContext.java:140)

                     

                     

                    15:58:13,262 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at javax.naming.InitialContext.getNameParser(Unknown Source)

                     

                     

                    15:58:13,267 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86)

                     

                     

                    15:58:13,273 ERROR [stderr] (http-localhost-127.0.0.1-8080-2)           ... 40 more

                     

                     

                    15:58:13,275 INFO  [main.java.com.sample.processserver.TaskProcessServlet] (http-localhost-127.0.0.1-8080-2) @@@@@@@@ Start Process + Initiate + Completed

                    15:58:13,281 WARN  [bitronix.tm.twopc.Preparer] (http-localhost-127.0.0.1-8080-2) executing transaction with 0 enlisted resource

                    15:58:13,287 WARN  [bitronix.tm.utils.ManagementRegistrar] (http-localhost-127.0.0.1-8080-2) cannot unregister object with name bitronix.tm:type=Transaction,Gtrid=31302E3233302E31342E3130360000013C71401D5400000002: bitronix.tm.internal.BitronixRuntimeException: cannot callunregisterMBean

                              at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:95) [btm-1.3.1.jar:1.3.1]

                              at bitronix.tm.utils.ManagementRegistrar.unregister(ManagementRegistrar.java:74) [btm-1.3.1.jar:1.3.1]

                              at bitronix.tm.BitronixTransaction.fireAfterCompletionEvent(BitronixTransaction.java:388) [btm-1.3.1.jar:1.3.1]

                              at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:188) [btm-1.3.1.jar:1.3.1]

                              at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:96) [btm-1.3.1.jar:1.3.1]

                              at main.java.com.sample.processserver.TaskProcessServlet.processRequest(TaskProcessServlet.java:98) [classes:]

                              at main.java.com.sample.processserver.TaskProcessServlet.doGet(TaskProcessServlet.java:267) [classes:]

                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

                              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]

                              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

                              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

                              at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_26]

                    Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"

                              at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) [rt.jar:1.6.0_26]

                              at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.6.0_26]

                              at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:93) [btm-1.3.1.jar:1.3.1]

                              ... 22 more

                     

                     

                     

                    Sometimes, i also get the error could not open the disk journal from

                    Bitronix Transaction Manager - cannot open disk journal

                     

                     

                    awaiting your response.

                     


                     


                    • 7. Re: Use jBPM 5.3 with a simple Java EE application
                      Ouadi BELMOKHTAR Newbie

                      The same problem occured with me :

                       

                      16:28:29,059 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) STACK TRACE: org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                      16:28:29,059 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

                      16:28:29,061 ERROR [stderr] (MSC service thread 1-1) javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.task] Unable to build EntityManagerFactory

                      16:28:29,062 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                      16:28:29,062 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

                      16:28:29,063 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)

                      16:28:29,064 ERROR [stderr] (MSC service thread 1-1)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

                      16:28:29,064 ERROR [stderr] (MSC service thread 1-1)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

                      16:28:29,065 ERROR [stderr] (MSC service thread 1-1)           at main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:38)

                      16:28:29,066 ERROR [stderr] (MSC service thread 1-1)           at javax.servlet.GenericServlet.init(GenericServlet.java:242)

                      16:28:29,066 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

                      16:28:29,067 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

                      16:28:29,068 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

                      16:28:29,068 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

                      16:28:29,073 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

                      16:28:29,075 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                      16:28:29,076 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                      16:28:29,077 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                      16:28:29,078 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                      16:28:29,078 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Thread.run(Thread.java:722)

                      16:28:29,079 ERROR [stderr] (MSC service thread 1-1) Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:jboss/datasources/jBPM5WebAppExampleDS]

                      16:28:29,080 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)

                      16:28:29,080 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)

                      16:28:29,081 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                      16:28:29,082 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                      16:28:29,083 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                      16:28:29,083 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

                      16:28:29,092 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

                      16:28:29,094 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                      16:28:29,095 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                      16:28:29,096 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                      16:28:29,096 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                      16:28:29,097 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                      16:28:29,097 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                      16:28:29,098 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                      16:28:29,099 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                      16:28:29,099 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                      16:28:29,100 ERROR [stderr] (MSC service thread 1-1)           ... 16 more

                      16:28:29,102 ERROR [stderr] (MSC service thread 1-1) Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jBPM5WebAppExampleDS'

                      16:28:29,102 ERROR [stderr] (MSC service thread 1-1)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)

                      16:28:29,103 ERROR [stderr] (MSC service thread 1-1)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)

                      16:28:29,104 ERROR [stderr] (MSC service thread 1-1)           at javax.naming.InitialContext.lookup(InitialContext.java:415)

                      16:28:29,104 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)

                      16:28:29,105 ERROR [stderr] (MSC service thread 1-1)           ... 31 more

                      16:28:29,135 WARN  [bitronix.tm.utils.ManagementRegistrar] (MSC service thread 1-1) cannot register object with name bitronix.tm:type=Transaction,Gtrid=3132372E302E312E310000013D4088543F00000000: bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'

                                at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123) [btm-2.1.2.jar:2.1.2]

                                at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86) [btm-2.1.2.jar:2.1.2]

                                at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:340) [btm-2.1.2.jar:2.1.2]

                                at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:323) [btm-2.1.2.jar:2.1.2]

                                at bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:314) [btm-2.1.2.jar:2.1.2]

                                at bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:103) [btm-2.1.2.jar:2.1.2]

                                at main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:41) [classes:]

                                at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

                                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]

                                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

                                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

                                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

                                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]

                                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]

                      Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers "public"

                                at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) [rt.jar:1.7.0_15]

                                at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261) [rt.jar:1.7.0_15]

                                at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253) [rt.jar:1.7.0_15]

                                at java.lang.reflect.Method.invoke(Method.java:594) [rt.jar:1.7.0_15]

                                at bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121) [btm-2.1.2.jar:2.1.2]

                                ... 17 more

                       

                       

                      16:28:29,149 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of key : procXmlPath

                      16:28:29,150 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of value : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src

                      16:28:29,151 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of Return Value : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src

                      16:28:29,152 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) URL : /home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src/ProcessDefInfo.xml

                      16:28:29,162 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Tag Value : HumanTasksGroupAssigned.bpmn

                      16:28:29,162 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Tag Value : SampleHumanTaskFormVariables.bpmn

                      16:28:29,163 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Tag Value : DynamicTaskAssignment.bpmn

                      16:28:29,163 INFO  [main.java.com.sample.processserver.AllMethods] (MSC service thread 1-1) Value of processParameters : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

                      16:28:29,169 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread 1-1) Value of processNames : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

                      16:28:29,169 INFO  [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread 1-1) Value of processNames : [HumanTasksGroupAssigned.bpmn, SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]

                      16:28:30,332 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

                      16:28:30,334 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) STACK TRACE: org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                      16:28:30,335 INFO  [main.java.com.sample.handler.CustomExceptionHandler] (MSC service thread 1-1) ------------------------------------ERROR-------------------------------------

                      16:28:30,336 ERROR [stderr] (MSC service thread 1-1) javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory

                      16:28:30,336 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                      16:28:30,337 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

                      16:28:30,337 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)

                      16:28:30,338 ERROR [stderr] (MSC service thread 1-1)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

                      16:28:30,339 ERROR [stderr] (MSC service thread 1-1)           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

                      16:28:30,339 ERROR [stderr] (MSC service thread 1-1)           at main.java.com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:510)

                      16:28:30,339 ERROR [stderr] (MSC service thread 1-1)           at main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:43)

                      16:28:30,340 ERROR [stderr] (MSC service thread 1-1)           at javax.servlet.GenericServlet.init(GenericServlet.java:242)

                      16:28:30,340 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)

                      16:28:30,341 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)

                      16:28:30,341 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)

                      16:28:30,342 ERROR [stderr] (MSC service thread 1-1)           at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)

                      16:28:30,342 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)

                      16:28:30,342 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                      16:28:30,343 ERROR [stderr] (MSC service thread 1-1)           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                      16:28:30,345 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                      16:28:30,345 ERROR [stderr] (MSC service thread 1-1)           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                      16:28:30,346 ERROR [stderr] (MSC service thread 1-1)           at java.lang.Thread.run(Thread.java:722)

                      16:28:30,346 ERROR [stderr] (MSC service thread 1-1) Caused by: org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name [java:jboss/datasources/jBPM5WebAppExampleDS]

                      16:28:30,347 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)

                      16:28:30,347 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)

                      16:28:30,349 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                      16:28:30,349 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                      16:28:30,350 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                      16:28:30,350 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

                      16:28:30,351 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

                      16:28:30,351 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                      16:28:30,352 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                      16:28:30,352 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                      16:28:30,353 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                      16:28:30,353 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                      16:28:30,354 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                      16:28:30,354 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                      16:28:30,355 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                      16:28:30,355 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                      16:28:30,355 ERROR [stderr] (MSC service thread 1-1)           ... 17 more

                      16:28:30,356 ERROR [stderr] (MSC service thread 1-1) Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jBPM5WebAppExampleDS'

                      16:28:30,357 ERROR [stderr] (MSC service thread 1-1)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)

                      16:28:30,357 ERROR [stderr] (MSC service thread 1-1)           at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)

                      16:28:30,357 ERROR [stderr] (MSC service thread 1-1)           at javax.naming.InitialContext.lookup(InitialContext.java:415)

                      16:28:30,358 ERROR [stderr] (MSC service thread 1-1)           at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)

                      16:28:30,358 ERROR [stderr] (MSC service thread 1-1)           ... 32 more

                      16:28:30,369 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /WebApplication2

                      16:28:30,379 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990

                      16:28:30,380 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 12959ms - Started 186 of 264 services (76 services are passive or on-demand)

                      16:28:30,529 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "WebApplication2.war"

                      16:29:29,535 WARN  [bitronix.tm.BitronixTransaction] (bitronix-scheduler) transaction timed out: a Bitronix Transaction with GTRID [3132372E302E312E310000013D4088543F00000000], status=MARKED_ROLLBACK, 0 resource(s) enlisted (started Wed Mar 06 16:28:29 WET 2013)

                      ^C16:34:10,989 INFO  [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011942: Stopping OSGi Framework

                      16:34:10,995 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Pausing Coyote HTTP/1.1 on http--127.0.0.1-8080

                      16:34:10,995 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Stopping Coyote HTTP/1.1 on http--127.0.0.1-8080

                      16:34:11,019 INFO  [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers

                      16:34:11,056 INFO  [org.jboss.as.jpa] JBAS011403: Stopping Persistence Unit Service 'WebApplication2.war#org.jbpm.task'

                      16:34:11,058 INFO  [org.jboss.as.jpa] JBAS011403: Stopping Persistence Unit Service 'WebApplication2.war#org.jbpm.persistence.jpa'

                      16:34:11,095 INFO  [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying TransactionManagerService

                      16:34:11,096 INFO  [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery manager

                      16:34:11,159 INFO  [org.jboss.as.server.deployment] JBAS015877: Stopped deployment WebApplication2.war in 179ms

                      16:34:11,161 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 168ms

                       

                       

                      Can you help me please.

                      • 8. Re: Use jBPM 5.3 with a simple Java EE application
                        Wooi Joe Chuah Newbie

                        Hi guys,

                         

                        I faced a similar stacktrace when trying to create the entityManagerFactory as well. (On Jboss EAP 6)

                        After a couple days of work I found out that the jbpm-test.jar that comes together with the download has a jndi.properties file that specifies the

                        java.naming.factory.initial to BitronixInitialContextFactory

                         

                        I have no idea why it overrides my own jndi settings but after I removed it. Everything works fine again.