14 Replies Latest reply on Jan 14, 2008 1:46 PM by Wilson Almeida

    Couldn't find process definition

    Novice

      Hi,

      while trying this code, im getting an exception.
      Does anyone know about this ?

      Thanks.

      Here is the code :

      GraphSession graphSession = jbpmContext.getGraphSession();

      ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition("Acces");

      ProcessInstance processInstance = new ProcessInstance(processDefinition);

      Token t = processInstance.getRootToken();

      t.signal();

      Here is the trace :

      exception

      javax.servlet.ServletException: org.jbpm.JbpmException: couldn't find process definition 'demandeAccesVerifUserAlerteRH'
      org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      caused by

      org.jbpm.JbpmException: couldn't find process definition 'demandeAccesVerifUserAlerteRH'
      org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:170)
      com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151)
      com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      caused by

      org.hibernate.exception.GenericJDBCException: Cannot open connection
      org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
      org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
      org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
      org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
      org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
      org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
      org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
      org.hibernate.loader.Loader.doQuery(Loader.java:673)
      org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
      org.hibernate.loader.Loader.doList(Loader.java:2220)
      org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
      org.hibernate.loader.Loader.list(Loader.java:2099)
      org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
      org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
      org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
      org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
      org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
      org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
      org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
      com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151)
      com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      caused by

      org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a623635:441:46a9fa58:d6 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a623635:441:46a9fa58:d6 status: ActionStatus.ABORT_ONLY >))
      org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
      org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
      org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
      org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
      org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
      org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
      org.hibernate.loader.Loader.doQuery(Loader.java:673)
      org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
      org.hibernate.loader.Loader.doList(Loader.java:2220)
      org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
      org.hibernate.loader.Loader.list(Loader.java:2099)
      org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
      org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
      org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
      org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
      org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
      org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
      org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
      com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151)
      com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      caused by

      org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a623635:441:46a9fa58:d6 status: ActionStatus.ABORT_ONLY >)
      org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
      org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
      org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
      org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
      org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
      org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
      org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
      org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
      org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
      org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
      org.hibernate.loader.Loader.doQuery(Loader.java:673)
      org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
      org.hibernate.loader.Loader.doList(Loader.java:2220)
      org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
      org.hibernate.loader.Loader.list(Loader.java:2099)
      org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
      org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
      org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
      org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
      org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
      org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
      org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
      com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151)
      com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      caused by

      javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a623635:441:46a9fa58:d6 status: ActionStatus.ABORT_ONLY >
      org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:744)
      org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:577)
      org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
      org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
      org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
      org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
      org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
      org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
      org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
      org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
      org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
      org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
      org.hibernate.loader.Loader.doQuery(Loader.java:673)
      org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
      org.hibernate.loader.Loader.doList(Loader.java:2220)
      org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
      org.hibernate.loader.Loader.list(Loader.java:2099)
      org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
      org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
      org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
      org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
      org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
      org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
      org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
      com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:151)
      com.it.framework2.cinematique.InterforumGeneraleAction.execute(InterforumGeneraleAction.java:240)
      org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      Regards,

      O.M.

        • 1. Re: Couldn't find process definition
          Edward Staub Expert

          I would guess that you can't access ANYTHING in the database via JBPM. Is that possibly true?

          If so, it looks like some kind of transaction configuration problem, probably in hibernate.cfg.xml.

          I'm guessing from the error messages that you're using JTA. Just as a test, you might want to fall back to JDBC transactions and see if the problem goes away. If it does, then I'd look at what other resources are participating in the transaction.

          If you haven't already, be sure to research "Could not enlist in transaction on entering meta-aware object!". Sounds like U.S. Army recruitment problems getting folks to go to Iraq... ;-)

          -Ed Staub

          • 2. Re: Couldn't find process definition
            Novice

            Hi,
            thanks for answering.

            I don't understand, what are you recommanding me to do ?
            (i tried this with CMTT manager and the same error).

            lol im not working for the US Army, nor my computer does :)

            Regards,

            O.M.

            • 3. Re: Couldn't find process definition
              Novice

              Hi,

              i got this message from the logs when i start the JBoss server.

              09:49:37,764 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle9i Release 9.
              2.0.6.0 - Production
              JServer Release 9.2.0.6.0 - Production
              09:49:37,764 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 9
              .2.0.1.0
              09:49:37,795 INFO [Dialect] Using dialect: org.hibernate.dialect.Oracle9Dialect

              09:49:37,811 INFO [TransactionFactoryFactory] Using default transaction strateg
              y (direct JDBC transactions)
              09:49:37,827 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
              configured (in JTA environment, use of read-write or transactional second-level
              cache is not recommended)


              Do you think that there is some relation ?
              I don't know enough about JTA and how it works to see that relation.

              Thanks for your time,

              Regards,

              O.M.

              • 4. Re: Couldn't find process definition
                Novice

                Hi,

                some further info :

                in the logs of jboss i found this

                10:07:02,786 WARN [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunac
                ore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.l
                astResource.disallow] Adding multiple last resources is disallowed. Current reso
                urce is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource
                @1e8a18
                10:07:03,005 ERROR [STDERR] org.hibernate.exception.GenericJDBCException: Cannot
                open connection


                Does it help someone to help me ?

                Regards,

                O.M.

                • 5. Re: Couldn't find process definition
                  Novice

                  Hi,
                  no one has ever seen this ? or heard about it ? or have any idea about it ?

                  Regards,

                  O.M.

                  • 6. Re: Couldn't find process definition
                    Novice

                    Hi,

                    here are some news :)

                    I changed in my jbpm.cfg.xml

                    from .

                    to

                    The exception change :

                    javax.servlet.ServletException: org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed}
                    org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
                    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
                    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
                    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
                    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


                    cause mère

                    org.jbpm.JbpmException: problem closing services {persistence=org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed}
                    org.jbpm.svc.Services.close(Services.java:234)
                    org.jbpm.JbpmContext.close(JbpmContext.java:139)
                    com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:150)

                    cause mère

                    org.jbpm.persistence.JbpmPersistenceException: hibernate commit failed
                    org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:218)
                    org.jbpm.svc.Services.close(Services.java:222)
                    org.jbpm.JbpmContext.close(JbpmContext.java:139)
                    com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:150)

                    cause mère

                    org.hibernate.TransactionException: JTA commit failed:
                    org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:153)
                    org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:255)
                    org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:213)
                    org.jbpm.svc.Services.close(Services.java:222)
                    org.jbpm.JbpmContext.close(JbpmContext.java:139)
                    com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:150)

                    cause mère

                    javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
                    com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1267)
                    com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                    com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                    org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                    org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:146)
                    org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:255)
                    org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:213)
                    org.jbpm.svc.Services.close(Services.java:222)
                    org.jbpm.JbpmContext.close(JbpmContext.java:139)
                    com.it.application.responsable.cinematique.taches.tachesAction.traitement(tachesAction.java:150)

                    Do you know about that ?

                    Any help will be greatly appreciated,

                    Regards,

                    O.M.

                    • 8. Re: Couldn't find process definition
                      Novice

                      Sorry,

                      the forum kept cuting my post

                      from : service name=persistence factory=org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory

                      to : service name=persistence factory="org.jbpm.persistence.db.DbPersistenceServiceFactory

                      • 9. Re: Couldn't find process definition
                        Novice

                        forgot :

                        i'm using Oracle9i

                        thanks

                        O.M.

                        • 10. Re: Couldn't find process definition
                          Edward Staub Expert

                          It looks like you're trying to use JTA transactions (specified in hibernate.cfg.xml) with a JDBC persistenceServiceFactory (specified in jbpm.cfg.xml).

                          Once again, read the Hibernate book on configuration.

                          • 11. Re: Couldn't find process definition
                            Novice

                            Hi ed,

                            in my hibernate.cfg.xml i have :

                            <hibernate-configuration>
                            <session-factory>

                            <!-- hibernate dialect -->
                            org.hibernate.dialect.Oracle9Dialect

                            org.hibernate.cache.HashtableCacheProvider

                            <!-- DataSource properties (begin) -->
                            java:/JbpmDS
                            oracle.jdbc.driver.OracleDriver
                            <!-- DataSource properties (end) -->

                            <!-- JTA transaction properties (begin) -->
                            org.hibernate.transaction.JTATransactionFactory
                            org.hibernate.transaction.JBossTransactionManagerLookup
                            <!-- JTA transaction properties (end) -->


                            true

                            ... mapping ...

                            </session-factory>
                            </hibernate-configuration>

                            In my jbpm.cfg.xml :

                            <jbpm-configuration>

                            <jbpm-context>






                            </jbpm-context>

                            <!-- configuration property used by persistence service impl org.jbpm.persistence.db.DbPersistenceServiceFactory -->


                            <!-- configuration resource files pointing to default configuration files in jbpm-jpdl.jar -->















                            <!-- note that the default job executor needs to be overwritten with a null value -->


                            </jbpm-configuration>


                            Actually i have found a little trick to make my config work but the logs indicate thats its unsafe.
                            I have set the com.arjuna.ats.jta.allowMultipleLastResources in the jbossjta-propeties.xml to TRUE and the example from the chapitre 3 with the db is working.

                            But i actually dont know why it didnt work and why it work now.

                            Thanks for replying,

                            Regards,

                            O.M.

                            • 12. Re: Couldn't find process definition
                              Novice

                              ops
                              seems like it was cutted

                              <jbpm-configuration>

                              <jbpm-context>
                              service name=persistence factory=org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory
                              service name=message factory=org.jbpm.msg.jms.JmsMessageServiceFactoryImpl
                              service name=scheduler factory=org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory
                              service name=tx factory=org.jbpm.tx.TxServiceFactory
                              service name=logging factory="org.jbpm.logging.db.DbLoggingServiceFactory
                              service name=authentication factory=org.jbpm.security.authentication.DefaultAuthenticationServiceFactory
                              </jbpm-context>

                              <!-- configuration property used by persistence service impl org.jbpm.persistence.db.DbPersistenceServiceFactory -->
                              string name=resource.hibernate.cfg.xml value=hibernate.cfg.xml

                              • 13. Re: Couldn't find process definition
                                preskalya raj Newbie

                                Unable to deploy Par file . It says "couldn't find process definition : couldn't find process definition"

                                • 14. Re: Couldn't find process definition
                                  Wilson Almeida Newbie

                                  Hi, edit in the file "jboss/server/default/conf/jbossjta-properties.xml", addint property "com.arjuna.ats.jta.allowMultipleLastResources" and set value "true":

                                  <properties depends="arjuna" name="jta">
                                   <property name="com.arjuna.ats.jta.allowMultipleLastResources" value="true"/>
                                  
                                   <!-- ... other properties ... -->
                                  </properties>


                                  More information see link:

                                  https://www.jfire.org/modules/bugs/view.php?id=62

                                  Good lucky!