1 2 Previous Next 23 Replies Latest reply on Oct 15, 2015 12:43 PM by manarh Go to original post
      • 15. Re: Invoking JBPM business process from Seam pageflow
        manarh

        It is weird exception as there is no org.jboss.seam.pdf.DocumentStoreServlet but org.jboss.seam.document.DocumentStoreServlet.

        • 16. Re: Invoking JBPM business process from Seam pageflow
          sreenathac

          The org.jboss.seam.pdf.DocumentStoreServlet is available in Seam 2.0.0 GA, later it might moved ti org.jboss.seam.document. In my old jboss we are using the same Jar file, so I copied that jar to WildFly

          • 17. Re: Invoking JBPM business process from Seam pageflow
            manarh

            i thought your application uses Seam 2.3.1 as you wrote above in Re: Invoking JBPM business process from Seam pageflow

             

            I strongly recommend to not mix various versions of Seam if you need a stable application.

            • 18. Re: Invoking JBPM business process from Seam pageflow
              sreenathac

              Hi Marek,

               

              I have successfully migrated my application from Jboss 5.1.0 to WildFly 8.2.0, Now I am using JBPM .3.2.10 SP3_Seam 2, Seam 2.3.1 and Hibernate 4.2.0(Bundled Jars).Re: Invoking JBPM business process from Seam pageflow . We are running the scheduled jobs in our application , After migrating my application to WildFly 8.2.0, It was throwing the below Error. Please refer JBPM Error After Migrating to WildFly 8.2.0.(Hibernate 4.2.0/4.0.1 Seam 2.3.1) for more details.

               

              18:20:10,717 SEVERE [org.jbpm.job.executor.JobExecutorThread] (JbpmJobExecutor@172.24.55.56:Executor-1) failed to execute Timer(onceOnlySchedule): org.jbpm.persistence.JbpmPersistenceException: cannot honor rollback request under external transaction manager at org.jbpm.persistence.db.DbPersistenceService.rollback(DbPersistenceService.java:243) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:136) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:210) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.svc.Services.close(Services.java:244) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.JbpmContext.closeServices(JbpmContext.java:156) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.JbpmContext.close(JbpmContext.java:132) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:160) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:51) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] 18:20:10,752 WARNING [org.jbpm.job.executor.JobExecutorThread] (JbpmJobExecutor@172.24.55.56:Executor-1) failed to save exception for Timer(onceOnlySchedule): java.lang.IllegalArgumentException: bound must be positive at java.util.Random.nextInt(Random.java:388) [rt.jar:1.8.0_11] at org.jbpm.job.executor.JobExecutorThread.saveJobException(JobExecutorThread.java:188) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] 18:20:10,771 WARNING [org.jbpm.job.executor.JobExecutorThread] (JbpmJobExecutor@172.24.55.56:Executor-1) failed to save exception for Timer(onceOnlySchedule): org.jbpm.persistence.JbpmPersistenceException: cannot honor rollback request under external transaction manager at org.jbpm.persistence.db.DbPersistenceService.rollback(DbPersistenceService.java:243) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:136) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:210) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.svc.Services.close(Services.java:244) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.JbpmContext.closeServices(JbpmContext.java:156) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.JbpmContext.close(JbpmContext.java:132) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.job.executor.JobExecutorThread.saveJobException(JobExecutorThread.java:201) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2] at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56) [jbpm-jpdl-3.2.10.SP3_seam2.jar:3.2.10.SP3_seam2]



              • 19. Re: Invoking JBPM business process from Seam pageflow
                manarh

                I can see your job fails with

                java.lang.IllegalArgumentException: bound must be positive at java.util.Random.nextInt

                 

                And the rollback error seems to me like JBPM bug, but as it is old code nobody will try to debug and fix it, sorry.

                 

                You can try to change the DbPersistenceServiceFactory to JtaDbPersistenceServiceFactory, but that is only guess.

                • 20. Re: Invoking JBPM business process from Seam pageflow
                  sreenathac

                  Hi Marek,

                   

                  Thanks for your input, we tried with JtaDbPersistenceServiceFactory , and now the  job was running but it is throwing the below exception.


                  16:42:44,117 WARN  [org.jboss.seam.jsf.SeamPhaseListener] (default task-5) uncaught exception, passing to exception handler: org.jbpm.persistence.JbpmPersistenceException: could not get process instance 1133975

                    at org.jbpm.db.GraphSession.getProcessInstance(GraphSession.java:315) [jbpm-jpdl.jar:3.2.10.SP3_seam2]

                    at org.jbpm.JbpmContext.getProcessInstance(JbpmContext.java:362) [jbpm-jpdl.jar:3.2.10.SP3_seam2]

                    at org.jboss.seam.bpm.ProcessInstance$1.work(ProcessInstance.java:51) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.bpm.ProcessInstance$1.work(ProcessInstance.java:40) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.util.Work.workInTransaction(Work.java:61) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.bpm.ProcessInstance.getProcessInstance(ProcessInstance.java:39) [jboss-seam.jar:2.3.1.Final]

                    at sun.reflect.GeneratedMethodAccessor562.invoke(Unknown Source) [:1.8.0_11]

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]

                    at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]

                    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.callComponentMethod(Component.java:2313) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.unwrap(Component.java:2339) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.getInstance(Component.java:2054) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.getInstance(Component.java:2013) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.getInstance(Component.java:2007) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.getInstance(Component.java:1980) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.Component.getInstance(Component.java:1975) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.bpm.ProcessInstance.instance(ProcessInstance.java:67) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.bpm.BusinessProcess.hasActiveProcess(BusinessProcess.java:64) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.contexts.Contexts.flushAndDestroyContexts(Contexts.java:386) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.contexts.FacesLifecycle.endRequest(FacesLifecycle.java:129) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.jsf.SeamPhaseListener.afterResponseComplete(SeamPhaseListener.java:529) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:252) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:195) [jboss-seam.jar:2.3.1.Final]

                    at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) [jsf-impl.jar:2.1.7-SNAPSHOT]

                    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) [jsf-impl.jar:2.1.7-SNAPSHOT]

                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl.jar:2.1.7-SNAPSHOT]

                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec.jar:2.0.9.Final]

                    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at com.project.session.ProjectReplyHeaderFilter.doFilter(ProjectReplyHeaderFilter.java:59) [project-ejb.jar:]

                    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                    at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                    at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                    at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515) [richfaces-impl-3.3.3.Final.jar:3.3.3.Final]

                    at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam.jar:2.3.1.Final]

                    at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam.jar:2.3.1.Final]

                    at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]

                    at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]

                  Caused by: org.hibernate.ResourceClosedException: This TransactionCoordinator has been closed

                    at org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.getTransaction(TransactionCoordinatorImpl.java:186) [hibernate-core-4.2.0.jar:4.2.0.Final]

                    at org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.isTransactionInProgress(TransactionCoordinatorImpl.java:162) [hibernate-core-4.2.0.jar:4.2.0.Final]

                    at org.hibernate.internal.SessionImpl.afterOperation(SessionImpl.java:598) [hibernate-core-4.2.0.jar:4.2.0.Final]

                    at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2478) [hibernate-core-4.2.0.jar:4.2.0.Final]

                    at org.hibernate.internal.SessionImpl.get(SessionImpl.java:987) [hibernate-core-4.2.0.jar:4.2.0.Final]

                    at org.jbpm.db.GraphSession.getProcessInstance(GraphSession.java:311) [jbpm-jpdl.jar:3.2.10.SP3_seam2]

                    ... 83 more

                   

                   

                  We also debugged the jbpm source, we observed that when we are using DbPersistenceServiceFactory  it was throwing the below exception.

                  "org.hibernate.HibernateException: illegally attempted to associate a proxy with two open Sessions".


                  Now we are in confusion weather to go with DbPersistenceServiceFactory  or JtaDbPersistenceServiceFactory, in both the cases we have exceptions as mentioned above.


                  We are suspecting we need to change some configuration to resolve this issue, could you please let us know if we are missing anything.

                   

                  Please find the attached configuration files.

                  • 21. Re: Invoking JBPM business process from Seam pageflow
                    suraj89sharma

                    Hi Marek,

                     

                    I am migrating my application from Seam 2.2.0, JBoss 5.1.0 GA to JBoss 7.1. I followed the steps you have mentioned in the Dvdstore example migration for JBoss AS 7.x, I am getting the following error at the end of deployment while starting the server.

                     

                    JBAS014775:    New missing/unsatisfied dependencies:

                          service jboss.persistenceunit."migration-ear.ear/migration-ejb.jar#migration" (missing) dependents: [service jboss.naming.context.java.comp.migration-ear.migration-ejb.SchedulerHandlerBean.env."com.migration.session.impl.SchedulerHandlerBean".entityManager, service jboss.naming.context.java.comp.migration-ear.migration-ejb.migrationJobHealthCheckupBean.env, JBAS014799: ... and 99 more ]

                     

                    But the difference is I am using hibernate 3 as a module instead of deploying ear lib using the below configuration in persistence.xml

                     

                    <property name="jboss.as.jpa.providerModule" value="org.hibernate:3"></property>

                     

                    the below is my persistence.xml

                     

                    <?xml version="1.0" encoding="UTF-8"?>

                    <!-- Persistence deployment descriptor for dev profile -->

                    <persistence xmlns="http://java.sun.com/xml/ns/persistence"

                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                      xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"

                      version="1.0">

                     

                     

                      <persistence-unit name="sampletest" >

                      <provider>org.hibernate.ejb.HibernatePersistence</provider>

                      <jta-data-source>java:jboss/datasources/sampleDS</jta-data-source>

                      <properties>

                    <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />

                      <property name="jboss.as.jpa.managed" value="false"/>

                      <property name="jboss.entity.manager.factory.jndi.name"

                      value="java:/projectEntityManagerFactory" />

                      <property name="jboss.as.jpa.providerModule" value="org.hibernate:3"></property>

                      </properties>

                      </persistence-unit>

                    </persistence>

                     

                    I configured my hibernate 3 properly.

                     

                    Based on the error message it should there should be an error in my data source configuration. But I have hibernate.cfg.xml in my JBPM configuration, there I have given the same data source name and it was not throwing any error. So there is no problem in datasource configuration.

                     

                    Do I need to do any extra configuration for Seam 2.2.0 application to run on JBoss 7.1?

                    • 22. Re: Invoking JBPM business process from Seam pageflow
                      manarh

                      Hi Suraj Sharma,

                       

                      I don't know about any extra configuration required for Seam and JBoss AS. You probably should try first to bundle Hibernate 3 libs into your application instead of using JBoss AS module. If that works you probably have got an issue in your jboss-deployment-structure.xml file in dependencies setup.

                      • 23. Re: Invoking JBPM business process from Seam pageflow
                        suraj89sharma

                        Hi Marek,

                         

                        Thanks for your quick response, I tried with bundle hibernate 3 libs, I am facing the below exception.

                         

                        23:12:59,658 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.persistenceunit."sampleds-ear.ear/sampleds-ejb.jar#sampleds": org.jboss.msc.service.StartException in service jboss.persistenceunit."sampleds-ear.ear/sampleds-ejb.jar#sampleds": Failed to start service

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35]

                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35]

                          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35]

                        Caused by: javax.persistence.PersistenceException: [PersistenceUnit: sampleds] Unable to build EntityManagerFactory

                          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

                          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

                          at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

                          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

                          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                          ... 3 more

                        Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]

                          at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:187)

                          at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150)

                          at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                          at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)

                          at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)

                          at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

                          at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

                          at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

                          at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

                          at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

                          at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

                          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

                          at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

                          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

                          ... 9 more

                        Caused by: org.hibernate.HibernateException: Could not instantiate connection provider [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider]

                          at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.instantiateExplicitConnectionProvider(ConnectionProviderInitiator.java:190)

                          at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.initiateService(ConnectionProviderInitiator.java:112)

                          at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.initiateService(ConnectionProviderInitiator.java:54)

                          at org.hibernate.service.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:69)

                          at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:177)

                          ... 22 more

                        Caused by: java.lang.ClassCastException: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider cannot be cast to org.hibernate.service.jdbc.connections.spi.ConnectionProvider

                          at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.instantiateExplicitConnectionProvider(ConnectionProviderInitiator.java:187)

                          ... 26 more

                         

                         

                        From the consol I observed that, the server is still referring hibernate 4.0.1 jars, the below is my jboss-deployment-structure.xml

                         

                        <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> 

                          <deployment> 

                            <exclusions> 

                              <module name="org.hibernate" slot="main"/> 

                            </exclusions> 

                                <dependencies> 

                                  <module name="org.apache.log4j" export="true"/> 

                                  <module name="org.dom4j" export="true"/> 

                                  <module name="org.apache.commons.logging" export="true"/> 

                                  <module name="org.apache.commons.collections" export="true"/> 

                                  <module name="javax.faces.api" slot="1.2" export="true"/> 

                                  <module name="com.sun.jsf-impl" slot="1.2" export="true"/> 

                                  <module name="org.slf4j" export="true"/> 

                                </dependencies> 

                          </deployment> 

                          <sub-deployment name="sampleproject.war">  

                              <exclusions> 

                                  <module name="javax.faces.api" slot="main"/> 

                                  <module name="com.sun.jsf-impl" slot="main"/> 

                                   <module name="org.hibernate" slot="main"/>

                                  <module name="org.hibernate" slot="main"/> 

                                </exclusions> 

                                <dependencies> 

                                  <module name="javax.faces.api" slot="1.2"/> 

                                  <module name="com.sun.jsf-impl" slot="1.2"/> 

                                </dependencies> 

                          </sub-deployment>  

                          <sub-deployment name="sampleproject-ejb.jar"> 

                            <exclusions> 

                              <module name="org.hibernate" slot="main"/> 

                            </exclusions> 

                          </sub-deployment> 

                        </jboss-deployment-structure>

                         

                         

                        Please let me know if I am missing anything.

                        • 24. Re: Invoking JBPM business process from Seam pageflow
                          manarh

                          I can see only one thing the property value of jboss.as.jpa.providerModule should be

                          <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled" />

                          you have there

                          <property name="jboss.as.jpa.providerModule" value="org.hibernate:3"></property>

                          1 2 Previous Next