[jboss-user] [JBoss jBPM] - Re: Timer and org.jbpm.web.JobExecutorLauncher in jbpm3.2GA
idankoch
do-not-reply at jboss.com
Mon Feb 9 01:39:19 EST 2009
Hi
Thank you for your reply now i get:
246836 [JbpmJobExector:172.30.9.27:1] ERROR org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 160000 milliseconds
org.jbpm.util.JndiLookupException: couldn't fetch 'java:/hibernate/SessionFactory' from jndi
at org.jbpm.util.JndiUtil.lookup(JndiUtil.java:41)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:87)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:352)
at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:563)
at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:109)
at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
Caused by: javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads
at com.evermind.server.PreemptiveApplicationContext.getContext(PreemptiveApplicationContext.java:34)
at com.evermind.naming.FilterContext.lookup(FilterContext.java:138)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jbpm.util.JndiUtil.lookup(JndiUtil.java:36)
... 7 more
I'm using OC4J server with jbpm version 3.2 and oracle 10g DB where do i need to define the session factory?
i have in hibernate.cfg.xml:
|
| <session-factory name="java:/hibernate/SessionFactory">
|
| <!-- hibernate dialect -->
| <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
|
| <!-- JDBC connection properties (begin) -->
| <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
| <property name="hibernate.connection.url">jdbc:oracle:thin:@//****:1521/***</property>
| <property name="hibernate.connection.username">****</property>
| <property name="hibernate.connection.password">****</property>
| <!-- JDBC connection properties (end) -->
|
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
| <property name="hibernate.session_factory_name">java:/hibernate/SessionFactory</property>
|
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <!--<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.OrionTransactionManagerLookup</property>-->
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.OC4JTransactionManagerLookup</property>
| <property name="jta.UserTransaction">java:comp/UserTransaction</property>
|
and in the jbpm.cfg.xml:
| <jbpm-context>
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false/></field>
| <field name="isCurrentSessionEnabled"><true/></field>
| <field name="sessionFactoryJndiName">
| <string value="java:/hibernate/SessionFactory" />
| </field>
| </bean>
| </factory>
| </service>
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| </jbpm-context>
|
|
what else do i need define?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4208073#4208073
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4208073
More information about the jboss-user
mailing list