Continuing log file from previous post: 2009-12-11 09:36:46,094 TRACE (Log4jLog.java:72) - beginning StandardTransaction[80814] | 2009-12-11 09:36:46,094 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.session.RepositorySession in transaction | 2009-12-11 09:36:46,095 TRACE (Log4jLog.java:72) - constructing org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,095 TRACE (Log4jLog.java:72) - initializing org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,095 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,096 TRACE (Log4jLog.java:72) - constructing org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,097 TRACE (Log4jLog.java:72) - org.hibernate.SessionFactory not found in transaction 13017894 | 2009-12-11 09:36:46,097 TRACE (Log4jLog.java:72) - org.hibernate.SessionFactory not found in process-engine 15979582 | 2009-12-11 09:36:46,099 TRACE (Log4jLog.java:72) - creating hibernate session | 2009-12-11 09:36:46,099 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.tx.StandardTransaction in transaction | 2009-12-11 09:36:46,099 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,100 DEBUG (Log4jLog.java:60) - ----- beginning hibernate tx 15493270 -------------------------------------------------------- | 2009-12-11 09:36:46,100 TRACE (Log4jLog.java:72) - begun hibernate tx 13013104 on hibernate session 15493270 | 2009-12-11 09:36:46,101 TRACE (Log4jLog.java:72) - enlisting resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@34bf83 to standard transaction | 2009-12-11 09:36:46,101 TRACE (Log4jLog.java:72) - initializing org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,102 TRACE (Log4jLog.java:72) - auto wiring field session in org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,102 TRACE (Log4jLog.java:72) - setting field 'session' to value 'SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])' | 2009-12-11 09:36:46,103 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,104 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.RepositoryCache not found in transaction 13017894 | 2009-12-11 09:36:46,106 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.RepositoryCache not found in transaction 13017894 | 2009-12-11 09:36:46,106 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.repository.RepositoryCache in process-engine | 2009-12-11 09:36:46,107 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.repository.RepositoryCacheImpl | 2009-12-11 09:36:46,107 TRACE (Log4jLog.java:72) - auto wiring field repositoryCache in org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,107 TRACE (Log4jLog.java:72) - setting field 'repositoryCache' to value 'org.jbpm.pvm.internal.repository.repositorycachei...@d442ac' | 2009-12-11 09:36:46,108 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,108 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.DeployerManager not found in transaction 13017894 | 2009-12-11 09:36:46,109 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.DeployerManager not found in transaction 13017894 | 2009-12-11 09:36:46,109 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.repository.DeployerManager in process-engine | 2009-12-11 09:36:46,109 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.repository.DeployerManager | 2009-12-11 09:36:46,110 TRACE (Log4jLog.java:72) - auto wiring field deployerManager in org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,110 TRACE (Log4jLog.java:72) - setting field 'deployerManager' to value 'org.jbpm.pvm.internal.repository.deployermana...@c7f24f' | 2009-12-11 09:36:46,110 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,111 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,111 TRACE (Log4jLog.java:72) - delivering org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,112 TRACE (Log4jLog.java:72) - committing StandardTransaction[80814] | 2009-12-11 09:36:46,112 TRACE (Log4jLog.java:72) - preparing resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@34bf83 | 2009-12-11 09:36:46,112 TRACE (Log4jLog.java:72) - flushing hibernate session 15493270 | 2009-12-11 09:36:46,113 TRACE (Log4jLog.java:72) - committing resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@34bf83 | 2009-12-11 09:36:46,113 DEBUG (Log4jLog.java:60) - ----- committing hibernate tx 13013104 ------------------------------------------------------- | 2009-12-11 09:36:46,114 TRACE (Log4jLog.java:72) - closing hibernate session 15493270 | 2009-12-11 09:36:46,114 TRACE (Log4jLog.java:72) - committed StandardTransaction[80814] | 2009-12-11 09:36:46,114 TRACE (Log4jLog.java:72) - closing transaction... | 2009-12-11 09:36:46,114 TRACE (Log4jLog.java:72) - closing PvmEnvironment[13254246] | 2009-12-11 09:36:46,115 TRACE (Log4jLog.java:72) - closed PvmEnvironment[13254246] | 2009-12-11 09:36:46,117 TRACE (Log4jLog.java:72) - opening jbpm-springPvmEnvironment[5635897] | 2009-12-11 09:36:46,117 TRACE (Log4jLog.java:72) - creating transaction | 2009-12-11 09:36:46,118 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.tx.StandardTransaction in transaction | 2009-12-11 09:36:46,118 TRACE (Log4jLog.java:72) - constructing org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,118 TRACE (Log4jLog.java:72) - initializing org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,119 TRACE (Log4jLog.java:72) - org.springframework.transaction.PlatformTransactionManager not found in transaction 15152097 | 2009-12-11 09:36:46,119 TRACE (Log4jLog.java:72) - org.springframework.transaction.PlatformTransactionManager not found in process-engine 15979582 | 2009-12-11 09:36:46,120 TRACE (Log4jLog.java:72) - beginning StandardTransaction[16710868] | 2009-12-11 09:36:46,121 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,121 TRACE (Log4jLog.java:72) - constructing org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,121 TRACE (Log4jLog.java:72) - org.hibernate.SessionFactory not found in transaction 15152097 | 2009-12-11 09:36:46,122 TRACE (Log4jLog.java:72) - org.hibernate.SessionFactory not found in process-engine 15979582 | 2009-12-11 09:36:46,123 TRACE (Log4jLog.java:72) - creating hibernate session | 2009-12-11 09:36:46,123 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.tx.StandardTransaction in transaction | 2009-12-11 09:36:46,124 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,124 DEBUG (Log4jLog.java:60) - ----- beginning hibernate tx 10871770 -------------------------------------------------------- | 2009-12-11 09:36:46,124 TRACE (Log4jLog.java:72) - begun hibernate tx 1179675 on hibernate session 10871770 | 2009-12-11 09:36:46,125 TRACE (Log4jLog.java:72) - enlisting resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@c514a7 to standard transaction | 2009-12-11 09:36:46,125 TRACE (Log4jLog.java:72) - initializing org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,127 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,127 TRACE (Log4jLog.java:72) - delivering org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,128 TRACE (Log4jLog.java:72) - committing StandardTransaction[16710868] | 2009-12-11 09:36:46,128 TRACE (Log4jLog.java:72) - preparing resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@c514a7 | 2009-12-11 09:36:46,130 TRACE (Log4jLog.java:72) - flushing hibernate session 10871770 | 2009-12-11 09:36:46,130 TRACE (Log4jLog.java:72) - committing resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@c514a7 | 2009-12-11 09:36:46,130 DEBUG (Log4jLog.java:60) - ----- committing hibernate tx 1179675 ------------------------------------------------------- | 2009-12-11 09:36:46,131 TRACE (Log4jLog.java:72) - closing hibernate session 10871770 | 2009-12-11 09:36:46,131 TRACE (Log4jLog.java:72) - committed StandardTransaction[16710868] | 2009-12-11 09:36:46,131 TRACE (Log4jLog.java:72) - closing transaction... | 2009-12-11 09:36:46,131 TRACE (Log4jLog.java:72) - closing PvmEnvironment[5635897] | 2009-12-11 09:36:46,132 TRACE (Log4jLog.java:72) - closed PvmEnvironment[5635897] | 2009-12-11 09:36:46,136 TRACE (Log4jLog.java:72) - opening jbpm-springPvmEnvironment[9483472] | 2009-12-11 09:36:46,136 TRACE (Log4jLog.java:72) - creating transaction | 2009-12-11 09:36:46,136 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.tx.StandardTransaction in transaction | 2009-12-11 09:36:46,137 TRACE (Log4jLog.java:72) - constructing org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,137 TRACE (Log4jLog.java:72) - initializing org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,137 TRACE (Log4jLog.java:72) - org.springframework.transaction.PlatformTransactionManager not found in transaction 5177209 | 2009-12-11 09:36:46,138 TRACE (Log4jLog.java:72) - org.springframework.transaction.PlatformTransactionManager not found in process-engine 15979582 | 2009-12-11 09:36:46,139 TRACE (Log4jLog.java:72) - beginning StandardTransaction[6718981] | 2009-12-11 09:36:46,139 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.session.RepositorySession in transaction | 2009-12-11 09:36:46,139 TRACE (Log4jLog.java:72) - constructing org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,140 TRACE (Log4jLog.java:72) - initializing org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,140 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,141 TRACE (Log4jLog.java:72) - constructing org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,141 TRACE (Log4jLog.java:72) - org.hibernate.SessionFactory not found in transaction 5177209 | 2009-12-11 09:36:46,141 TRACE (Log4jLog.java:72) - org.hibernate.SessionFactory not found in process-engine 15979582 | 2009-12-11 09:36:46,142 TRACE (Log4jLog.java:72) - creating hibernate session | 2009-12-11 09:36:46,144 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.tx.StandardTransaction in transaction | 2009-12-11 09:36:46,145 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,145 DEBUG (Log4jLog.java:60) - ----- beginning hibernate tx 12442562 -------------------------------------------------------- | 2009-12-11 09:36:46,146 TRACE (Log4jLog.java:72) - begun hibernate tx 10922033 on hibernate session 12442562 | 2009-12-11 09:36:46,146 TRACE (Log4jLog.java:72) - enlisting resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@6c4812 to standard transaction | 2009-12-11 09:36:46,146 TRACE (Log4jLog.java:72) - initializing org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,147 TRACE (Log4jLog.java:72) - auto wiring field session in org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,147 TRACE (Log4jLog.java:72) - setting field 'session' to value 'SessionImpl(PersistenceContext[entityKeys=[],collectionKeys=[]];ActionQueue[insertions=[] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])' | 2009-12-11 09:36:46,147 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,148 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.RepositoryCache not found in transaction 5177209 | 2009-12-11 09:36:46,148 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.RepositoryCache not found in transaction 5177209 | 2009-12-11 09:36:46,149 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.repository.RepositoryCache in process-engine | 2009-12-11 09:36:46,149 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.repository.RepositoryCacheImpl | 2009-12-11 09:36:46,149 TRACE (Log4jLog.java:72) - auto wiring field repositoryCache in org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,150 TRACE (Log4jLog.java:72) - setting field 'repositoryCache' to value 'org.jbpm.pvm.internal.repository.repositorycachei...@d442ac' | 2009-12-11 09:36:46,150 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,150 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.DeployerManager not found in transaction 5177209 | 2009-12-11 09:36:46,151 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.repository.DeployerManager not found in transaction 5177209 | 2009-12-11 09:36:46,151 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.repository.DeployerManager in process-engine | 2009-12-11 09:36:46,152 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.repository.DeployerManager | 2009-12-11 09:36:46,152 TRACE (Log4jLog.java:72) - auto wiring field deployerManager in org.jbpm.pvm.internal.repository.RepositorySessionImpl | 2009-12-11 09:36:46,152 TRACE (Log4jLog.java:72) - setting field 'deployerManager' to value 'org.jbpm.pvm.internal.repository.deployermana...@c7f24f' | 2009-12-11 09:36:46,153 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,153 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.id.DbidGenerator not found in transaction 5177209 | 2009-12-11 09:36:46,155 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.id.DbidGenerator in process-engine | 2009-12-11 09:36:46,155 TRACE (Log4jLog.java:72) - constructing org.jbpm.pvm.internal.id.DatabaseDbidGenerator | 2009-12-11 09:36:46,155 TRACE (Log4jLog.java:72) - initializing org.jbpm.pvm.internal.id.DatabaseDbidGenerator | 2009-12-11 09:36:46,156 TRACE (Log4jLog.java:72) - found field commandService in org.jbpm.pvm.internal.id.DatabaseDbidGenerator | 2009-12-11 09:36:46,156 TRACE (Log4jLog.java:72) - delivering txRequiredCommandService | 2009-12-11 09:36:46,157 TRACE (Log4jLog.java:72) - setting field 'commandService' to value 'org.jbpm.pvm.internal.svc.retryintercep...@5abc5f' | 2009-12-11 09:36:46,157 TRACE (Log4jLog.java:72) - making field accessible | 2009-12-11 09:36:46,158 DEBUG (Log4jLog.java:60) - last id -2 was consumed. acquiring new block... | 2009-12-11 09:36:46,159 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.tx.StandardTransaction in transaction | 2009-12-11 09:36:46,159 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.tx.StandardTransaction | 2009-12-11 09:36:46,159 TRACE (Log4jLog.java:72) - org.springframework.transaction.PlatformTransactionManager not found in transaction 5177209 | 2009-12-11 09:36:46,160 TRACE (Log4jLog.java:72) - org.springframework.transaction.PlatformTransactionManager not found in process-engine 15979582 | 2009-12-11 09:36:46,161 TRACE (Log4jLog.java:72) - beginning StandardTransaction[6718981] | 2009-12-11 09:36:46,161 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,162 TRACE (Log4jLog.java:72) - delivering org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,179 TRACE (Log4jLog.java:72) - found org.hibernate.Session in transaction | 2009-12-11 09:36:46,179 TRACE (Log4jLog.java:72) - delivering org.hibernate.impl.SessionImpl | 2009-12-11 09:36:46,180 TRACE (Log4jLog.java:72) - committing StandardTransaction[6718981] | 2009-12-11 09:36:46,180 TRACE (Log4jLog.java:72) - preparing resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@6c4812 | 2009-12-11 09:36:46,180 TRACE (Log4jLog.java:72) - flushing hibernate session 12442562 | 2009-12-11 09:36:46,184 TRACE (Log4jLog.java:72) - committing resource org.jbpm.pvm.internal.tx.hibernatesessionresou...@6c4812 | 2009-12-11 09:36:46,184 DEBUG (Log4jLog.java:60) - ----- committing hibernate tx 10922033 ------------------------------------------------------- | 2009-12-11 09:36:46,185 TRACE (Log4jLog.java:72) - closing hibernate session 12442562 | 2009-12-11 09:36:46,185 TRACE (Log4jLog.java:72) - committed StandardTransaction[6718981] | 2009-12-11 09:36:46,186 DEBUG (Log4jLog.java:60) - acquired new id block [10001-20000] | 2009-12-11 09:36:46,186 TRACE (Log4jLog.java:72) - org.jbpm.pvm.internal.id.DbidGenerator not found in transaction 5177209 | 2009-12-11 09:36:46,187 TRACE (Log4jLog.java:72) - found org.jbpm.pvm.internal.id.DbidGenerator in process-engine | 2009-12-11 09:36:46,187 TRACE (Log4jLog.java:72) - delivering org.jbpm.pvm.internal.id.DatabaseDbidGenerator | 2009-12-11 09:36:46,189 INFO (Log4jLog.java:52) - exception while executing command org.jbpm.pvm.internal.cmd.deploy...@46bf27 | org.hibernate.SessionException: Session is closed! | at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49) | | | ... | | Caused by: org.jbpm.pvm.internal.tx.TransactionException: complete on transaction in state COMMITTED | at org.jbpm.pvm.internal.tx.StandardTransaction.complete(StandardTransaction.java:69) | at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:93) | at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53) | at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40) | at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55) | at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:91) | at com.hrworx.formworx.process.jbpm.JbpmProcessServiceImpl.createDeployment(JbpmProcessServiceImpl.java:89) | |
Note that in the spring configuration the following entry appears: <!-- Publishing session factory for use in jBPM --> | <bean id="sessionFactory" factory-bean="entityManagerFactory" | factory-method="getSessionFactory"> | </bean> If you leave this out you get this error: | Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.cfg.SpringConfiguration.buildProcessEngine()] threw exception; nested exception is org.jbpm.pvm.internal.wire.WireException: couldn't find hibernate-session-factory by type to open a hibernate-session | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127) | at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435) | ... 35 more | Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't find hibernate-session-factory by type to open a hibernate-session | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270254#4270254 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270254 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user