Hi,
I have deployed workflow in jBPM using jbpm-console.
but when I am using Java class to start it I am getting folloeing exception.
Exception in thread "main" org.hibernate.HibernateException: Could not locate
TransactionManager
at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:325)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
at
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:105)
at
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
at
org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:355)
at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:639)
at com.sample.action.WFProcessFactory.startProcess(WFProcessFactory.java:77)
at com.sample.action.WFProcessFactory.main(WFProcessFactory.java:107)
Caused by: javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an application resource
file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
at
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
... 9 more
Please Help
-Harshit
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209942#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...