4 Replies Latest reply on Jan 2, 2008 6:43 PM by Paul Marando

    Datasource problem with seam and jbpm

    Matthias Sandmann Newbie

      Hi all,

      I´m using Seam together with jBPM.
      jBPM integration worked, so i changed the database to mysql. I created a new database exclusive for jBPM entries.
      But I´m also using another database, containing my application-based data. Using the application based database works fine, until i start my first buisness-process. Afterwards I get an exception.

      Here´s my ds.xml:


      <datasources>
      
       <local-tx-datasource>
       <jndi-name>jboss_seamDatasource</jndi-name>
       <connection-url>jdbc:mysql://localhost/jboss</connection-url>
       <driver-class>com.mysql.jdbc.Driver</driver-class>
       <user-name>jboss</user-name>
       <password>jboss</password>
       </local-tx-datasource>
      
       <local-tx-datasource>
       <jndi-name>JbpmDS</jndi-name>
       <connection-url>jdbc:mysql://localhost/jbpm</connection-url>
       <driver-class>com.mysql.jdbc.Driver</driver-class>
       <user-name>root</user-name>
       <password></password>
       <metadata>
       <type-mapping>MySQL</type-mapping>
       </metadata>
       </local-tx-datasource>
      
      
      </datasources>
      



      and here is the error that occures:


      11:45:04,723 WARN [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@6d5eaf
      11:45:04,756 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      11:45:04,757 ERROR [JDBCExceptionReporter] 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: -3f57fde1:c9aa:4768f43c:7a 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: -3f57fde1:c9aa:4768f43c:7a status: ActionStatus.ABORT_ONLY >))
      12:39:42,507 ERROR [SeamPhaseListener] uncaught exception
      


      Any usefull ideas ??

      Thanks a lot,
      Matthias

        • 1. Re: Datasource problem with seam and jbpm
          Pete Muir Master

          Post the exception stack trace.

          • 2. Re: Datasource problem with seam and jbpm
            knowbuddy wayne Newbie

            hi, i'm having the same problem. and it seems the visit to only 1 db is allowed:

            my code is like:

             codes visiting application-based database;
             ...
             ManagedJbpmContext.instance().getGraphSession().findLatestProcessDefinitions();
            


            output:
            2008-01-02 00:43:55,015 WARN [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@6adaa2
            2008-01-02 00:43:55,015 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
            2008-01-02 00:43:55,015 ERROR [org.hibernate.util.JDBCExceptionReporter] 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: -3f57ff9c:116d:477a6798:aa 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: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >))
            2008-01-02 00:43:55,015 ERROR [STDERR] org.hibernate.exception.GenericJDBCException: Cannot open connection
             at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
             at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
             at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
             at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
             at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
             at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
             at org.hibernate.loader.Loader.doQuery(Loader.java:673)
             at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
             at org.hibernate.loader.Loader.doList(Loader.java:2220)
             at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
             at org.hibernate.loader.Loader.list(Loader.java:2099)
             at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
             at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
             at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
             at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
             at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
             at org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:184)
             at Dgbwfm.session.Authenticator.authenticate(Authenticator.java:87)
             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.jboss.seam.util.Reflections.invoke(Reflections.java:21)
             at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
             at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
             at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
             at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
             at Dgbwfm.session.Authenticator_$$_javassist_2.authenticate(Authenticator_$$_javassist_2.java)
             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.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
             at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
             at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
             at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
             at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
             at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:108)
             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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
             at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
             at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
             at java.security.AccessController.doPrivileged(Native Method)
             at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
             at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:335)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
             at org.jboss.seam.security.Identity.quietLogin(Identity.java:265)
             at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:182)
             at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:172)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:322)
             at org.jboss.seam.security.Identity.login(Identity.java:237)
             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.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
             at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
             at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
             at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
             at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
             at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
             at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
             at javax.faces.component.UICommand.broadcast(UICommand.java:383)
             at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
             at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
             at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
             at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
             at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
             at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.jav
            2008-01-02 00:43:55,078 ERROR [STDERR] a:69)
             at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
             at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
             at java.lang.Thread.run(Thread.java:619)
            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: -3f57ff9c:116d:477a6798:aa 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: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >))
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
             at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
             at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
             ... 119 more
            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: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >)
             at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
             ... 121 more
            Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >
             at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:744)
             at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:577)
             at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
             ... 125 more
            2008-01-02 00:43:55,093 ERROR [org.jbpm.db.GraphSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
            2008-01-02 00:43:55,093 ERROR [org.jboss.seam.security.jaas.SeamLoginModule] Error invoking login method
            javax.el.ELException: org.jbpm.JbpmException: couldn't find latest versions of process definitions
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:332)
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
             at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
             at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
             at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
             at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
             at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:108)
             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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
             at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
             at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
             at java.security.AccessController.doPrivileged(Native Method)
             at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
             at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:335)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
             at org.jboss.seam.security.Identity.quietLogin(Identity.java:265)
             at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:182)
             at org.jboss.seam.security.Identity.isLoggedIn(Identity.java:172)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:322)
             at org.jboss.seam.security.Identity.login(Identity.java:237)
             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.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
             at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
             at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
             at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
             at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
             at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
             at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
             at javax.faces.component.UICommand.broadcast(UICommand.java:383)
             at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
             at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
             at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
             at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
             at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
             at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
             at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
             at java.lang.Thread.run(Thread.java:619)
            Caused by: org.jbpm.JbpmException: couldn't find latest versions of process definitions
             at org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:199)
             at Dgbwfm.session.Authenticator.authenticate(Authenticator.java:87)
             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.jboss.seam.util.Reflections.invoke(Reflections.java:21)
             at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
             at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
             at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
             at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
             at Dgbwfm.session.Authenticator_$$_javassist_2.authenticate(Authenticator_$$_javassist_2.java)
             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.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
             ... 80 more
            Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
             at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
             at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
             at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
             at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
             at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
             at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
             at org.hibernate.loader.Loader.doQuery(Loader.java:673)
             at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
             at org.hibernate.loader.Loader.doList(Loader.java:2220)
             at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
             at org.hibernate.loader.Loader.list(Loader.java:2099)
             at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
             at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
             at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
             at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
             at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
             at org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:184)
             ... 105 more
            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: -3f57ff9c:116d:477a6798:aa 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: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >))
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
             at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
             at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
             ... 119 more
            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: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >)
             at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
             ... 121 more
            Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >
             at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:744)
             at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:577)
             at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
             ... 125 more
            2008-01-02 00:43:55,203 INFO [Dgbwfm.session.Authenticator] authenticating tom
            2008-01-02 00:43:55,203 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
            2008-01-02 00:43:55,203 ERROR [org.hibernate.util.JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:aa status: ActionStatus.ABORT_ONLY >)
            
            


            but if i put the 2 segments of codes in different order:
             ManagedJbpmContext.instance().getGraphSession().findLatestProcessDefinitions();
             ...
             codes visiting application-based database;
            


            it turned out the 1st piece of code works just fine, but exception occurs for the 2nd piece.
            2008-01-02 00:50:43,984 WARN [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@1a24882
            2008-01-02 00:50:43,984 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
            2008-01-02 00:50:43,984 ERROR [org.hibernate.util.JDBCExceptionReporter] 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: -3f57ff9c:116d:477a6798:c7 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: -3f57ff9c:116d:477a6798:c7 status: ActionStatus.ABORT_ONLY >))
            2008-01-02 00:50:43,984 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: null
            2008-01-02 00:50:43,984 ERROR [org.hibernate.util.JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:c7 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:c7 status: ActionStatus.ABORT_ONLY >)
            2008-01-02 00:50:44,000 ERROR [STDERR] org.hibernate.exception.GenericJDBCException: Cannot open connection
             at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
             at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
             at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
             at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
             at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
             at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
             at org.hibernate.loader.Loader.doQuery(Loader.java:673)
             at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
             at org.hibernate.loader.Loader.doList(Loader.java:2220)
             at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
             at org.hibernate.loader.Loader.list(Loader.java:2099)
             at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
             at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
             at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
             at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
             at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
             at org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:184)
             at Dgbwfm.session.Authenticator.authenticate(Authenticator.java:53)
             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.jboss.seam.util.Reflections.invoke(Reflections.java:21)
             at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
             at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
             at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
             at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
             at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
             at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
             at Dgbwfm.session.Authenticator_$$_javassist_2.authenticate(Authenticator_$$_javassist_2.java)
             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.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
             at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
             at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
             at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
             at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
             at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:108)
             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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
             at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
             at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
             at java.security.AccessController.doPrivileged(Native Method)
             at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
             at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:335)
             at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
             at org.jboss.seam.security.Identity.login(Identity.java:237)
             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.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
             at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
             at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
             at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
             at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
             at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
             at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
             at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
             at javax.faces.component.UICommand.broadcast(UICommand.java:383)
             at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
             at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
             at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
             at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
             at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
             at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
             at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            2008-01-02 00:50:44,156 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
             at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
             at java.lang.Thread.run(Thread.java:619)
            Caused by: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:c7 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:c7 status: ActionStatus.ABORT_ONLY >)
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
             at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
             at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
             ... 115 more
            Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57ff9c:116d:477a6798:c7 status: ActionStatus.ABORT_ONLY >
             at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:304)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
             ... 117 more
            2008-01-02 00:50:44,156 ERROR [org.jbpm.db.GraphSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
            2008-01-02 00:50:44,156 ERROR [org.jboss.seam.security.jaas.SeamLoginModule] Error invoking login method
            
            


            something wrong with the configuration of the 2 datasources?

            • 3. Re: Datasource problem with seam and jbpm
              knowbuddy wayne Newbie

              i forgot to post the hibernate.cfg.xml:

              <?xml version='1.0' encoding='utf-8'?>
              
              <!DOCTYPE hibernate-configuration PUBLIC
               "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
               "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
              
              <hibernate-configuration>
               <session-factory>
              
               <property name="show_sql">false</property>
               <property name="connection.datasource">java:/jbpmDatasource</property>
               <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
               <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
               <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
               <property name="hbm2ddl.auto">create-drop</property>
               <!--property name="transaction.flush_before_completion">true</property-->
              
               <!-- ############################################ -->
               <!-- # mapping files with external dependencies # -->
               <!-- ############################################ -->
              
               <!-- following mapping file has a dependendy on -->
               <!-- 'bsh-{version}.jar'. -->
               <!-- uncomment this if you don't have bsh on your -->
               <!-- classpath. you won't be able to use the -->
               <!-- script element in process definition files -->
               <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
              
               <!-- following mapping files have a dependendy on -->
               <!-- 'jbpm-identity.jar', mapping files -->
               <!-- of the pluggable jbpm identity component. -->
               <!-- Uncomment the following 3 lines if you -->
               <!-- want to use the jBPM identity mgmgt -->
               <!-- component. -->
               <!-- identity mappings (begin) ===
               <mapping resource="org/jbpm/identity/User.hbm.xml"/>
               <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
               <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
               ==== identity mappings (end) -->
              
               <!-- following mapping files have a dependendy on -->
               <!-- the JCR API -->
               <!-- jcr mappings (begin) ===
               <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
               ==== jcr mappings (end) -->
              
              
               <!-- ###################### -->
               <!-- # jbpm mapping files # -->
               <!-- ###################### -->
              
               <!-- hql queries and type defs -->
               <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
              
               <!-- graph.action mapping files -->
               <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
              
               <!-- graph.def mapping files -->
               <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
               <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
               <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
               <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
               <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
               <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
               <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
               <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
              
               <!-- graph.node mapping files -->
               <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
               <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
              
               <!-- context.def mapping files -->
               <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
               <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
              
               <!-- taskmgmt.def mapping files -->
               <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
              
               <!-- module.def mapping files -->
               <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
              
               <!-- bytes mapping files -->
               <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
              
               <!-- file.def mapping files -->
               <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
              
               <!-- scheduler.def mapping files -->
               <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
               <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
              
               <!-- graph.exe mapping files -->
               <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
               <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
               <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
               <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
              
               <!-- module.exe mapping files -->
               <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
              
               <!-- context.exe mapping files -->
               <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
               <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
              
               <!-- job mapping files -->
               <mapping resource="org/jbpm/job/Job.hbm.xml"/>
               <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
               <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
               <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
              
               <!-- taskmgmt.exe mapping files -->
               <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
              
               <!-- logging mapping files -->
               <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
               <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
               <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
               <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
               <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
              
               </session-factory>
              </hibernate-configuration>
              
              

              and the jbpm-ds.xml:
              <?xml version="1.0" encoding="UTF-8"?>
              
              <datasources>
               <local-tx-datasource>
               <jndi-name>jbpmDatasource</jndi-name>
               <connection-url>jdbc:mysql://localhost:3306/jbpm322</connection-url>
               <driver-class>com.mysql.jdbc.Driver</driver-class>
               <user-name>root</user-name>
               <password>123</password>
               <exception-sorter-class-name>
               org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
               </exception-sorter-class-name>
              
               <metadata>
               <type-mapping>mySQL</type-mapping>
               </metadata>
               </local-tx-datasource>
              </datasources>
              


              BTW: the project works fine with seam 1.2.1 GA,
              i got the problem while porting it to seam 2.0.0 GA.


              • 4. Re: Datasource problem with seam and jbpm
                Paul Marando Newbie

                G'day,

                I have also attempted to run jbpm in a seperate data source and have hit the same problem. It was working until I did the split.

                I use the hibernate.cfg.xml from the examples changing only:


                <property name="connection.datasource">java:/JBPMDatasource</property>


                then my jbpm-ds.xml (I am using postgres):

                <?xml version="1.0" encoding="UTF-8"?>
                
                <!DOCTYPE datasources
                 PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
                 "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
                
                <datasources>
                
                 <local-tx-datasource>
                 <jndi-name>JBPMDatasource</jndi-name>
                 <connection-url>jdbc:postgresql://localhost:5432/jbpm</connection-url>
                 <driver-class>org.postgresql.Driver</driver-class>
                 <user-name>paulie</user-name>
                 <password>paulie</password>
                 </local-tx-datasource>
                
                </datasources>
                
                


                Looks to be the same exception as above:


                2008-01-03 10:27:09,468 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] creating persistence service
                2008-01-03 10:27:09,468 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating hibernate session
                2008-01-03 10:27:09,468 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4912400095100928
                2008-01-03 10:27:09,468 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization
                2008-01-03 10:27:09,468 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 1)
                2008-01-03 10:27:09,468 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection
                2008-01-03 10:27:09,484 WARN [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@158c28
                2008-01-03 10:27:09,484 DEBUG [org.hibernate.util.JDBCExceptionReporter] Cannot open connection [???]
                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: -3f57ff98:e95:477b8292:50a 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: -3f57ff98:e95:477b8292:50a status: ActionStatus.ABORT_ONLY >))
                 at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
                 at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
                 at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
                 at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
                 at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                 at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                 at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                 at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                 at org.hibernate.loader.Loader.doList(Loader.java:2220)
                 at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                 at org.hibernate.loader.Loader.list(Loader.java:2099)
                 at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                 at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                 at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                 at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                 at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                 at org.jbpm.db.TaskMgmtSession.findTaskInstances(TaskMgmtSession.java:61)
                 at org.jbpm.JbpmContext.getTaskList(JbpmContext.java:189)
                 at org.jboss.seam.bpm.TaskInstanceList.getTaskInstanceList(TaskInstanceList.java:40)
                 at org.jboss.seam.bpm.TaskInstanceList.getTaskInstanceList(TaskInstanceList.java:33)
                 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:585)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                 at org.jboss.seam.util.Work.workInTransaction(Work.java:40)
                 at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
                 at org.jboss.seam.bpm.TaskInstanceList_$$_javassist_2.getTaskInstanceList(TaskInstanceList_$$_javassist_2.java)
                 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:585)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                 at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
                 at org.jboss.seam.Component.unwrap(Component.java:2100)
                 at org.jboss.seam.Component.getInstance(Component.java:1879)
                 at org.jboss.seam.Component.getInstance(Component.java:1832)
                 at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                 at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2187)
                 at org.jboss.seam.Component.getValueToInject(Component.java:2126)
                 at org.jboss.seam.Component.injectAttributes(Component.java:1590)
                 at org.jboss.seam.Component.inject(Component.java:1408)
                 at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                 at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
                 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:585)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)
                 at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)
                 at $Proxy142.checkProcess(Unknown Source)
                 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:585)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                 at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                 at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
                 at org.javassist.tmp.java.lang.Object_$$_javassist_1.checkProcess(Object_$$_javassist_1.java)
                 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:585)
                 at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:328)
                 at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:341)
                 at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                 at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                 at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                 at org.jboss.seam.bpm.SeamExpressionEvaluator$1.evaluate(SeamExpressionEvaluator.java:70)
                 at org.jboss.seam.bpm.SeamExpressionEvaluator.evaluate(SeamExpressionEvaluator.java:36)
                 at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:39)
                 at org.jbpm.jpdl.el.impl.JbpmExpressionEvaluator.evaluate(JbpmExpressionEvaluator.java:30)
                 at org.jbpm.graph.node.Decision.execute(Decision.java:95)
                 at org.jbpm.graph.def.Node.enter(Node.java:318)
                 at org.jbpm.graph.def.Transition.take(Transition.java:151)
                 at org.jbpm.graph.def.Node.leave(Node.java:393)
                 at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:136)
                 at org.jbpm.graph.node.Decision.execute(Decision.java:152)
                 at org.jbpm.graph.def.Node.enter(Node.java:318)
                 at org.jbpm.graph.def.Transition.take(Transition.java:151)
                 at org.jbpm.graph.def.Node.leave(Node.java:393)
                 at org.jbpm.graph.exe.Token.signal(Token.java:194)
                 at org.jbpm.graph.exe.Token.signal(Token.java:157)
                 at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:282)
                 at org.jboss.seam.pageflow.Pageflow.signal(Pageflow.java:477)
                 at org.jboss.seam.pageflow.Pageflow.navigate(Pageflow.java:336)
                 at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:40)
                 at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:119)
                 at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                 at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                 at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                 at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                 at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                 at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                 at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
                 at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                 at java.lang.Thread.run(Thread.java:595)