[JBoss jBPM] - Re: jbpm config no longer on classpath
by aapthorp
Ronald,
anonymous wrote : usage of jBPM in projects has never been dependant on project names..
Yes, I guess that was why I thought I was relatively safe to make the change.
anonymous wrote : Does the config has a custom name?
No, just "jbpm.cfg.xml", packaged in a configs jar file, in a similar fashion to how the jbpm-enterprise ear is packaged.
anonymous wrote : a little more detail would be helpful to lend a hand
Within my ear file I have the following:
taskcal-configs.jar - contains standard jbpm configs.
taskcal.jar - my main library
taskcal-dav.war - servlet
taskcal-imip.jar - message driven bean
I'm deploying in the standard JBoss 4.2.2 environment alongisde the standard jBPM 3.2.2. console configuration.
As mentioned before all was working fine until I decided to tidy up the project / archive names. When I test by invoking the servlet, the additional attributes in my custom jbpm.cfg.xml are not found. I've tried setting the classpath in the various Manifest files and even putting the config file in the war. Nothing works.
oh, hang on, is the customised config read when the jBPM loads as jBoss starts and so should be on the classpath of the console? Hmm, just did a quick test...not much luck.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4208283#4208283
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4208283
15 years, 4 months
[JBoss jBPM] - Re: Timer and org.jbpm.web.JobExecutorLauncher in jbpm3.2GA
by idankoch
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
15 years, 4 months