Ouadi BEL [
https://community.jboss.org/people/ouadi_dev] created the discussion
"Re: Use jBPM 5.3 with a simple Java EE application"
To view the discussion, visit:
https://community.jboss.org/message/801111#801111
--------------------------------------------------------------
The same problem occured with me :
16:28:29,059 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service
thread 1-1) STACK TRACE:
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
16:28:29,059 INFO [main.java.com.sample.handler.CustomExceptionHandler] (MSC service
thread 1-1)
------------------------------------ERROR-------------------------------------
16:28:29,061 ERROR [stderr] (MSC service thread 1-1)
javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.task] Unable to build
EntityManagerFactory
16:28:29,062 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
16:28:29,062 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
16:28:29,063 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)
16:28:29,064 ERROR [stderr] (MSC service thread 1-1) at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
16:28:29,064 ERROR [stderr] (MSC service thread 1-1) at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
16:28:29,065 ERROR [stderr] (MSC service thread 1-1) at
main.java.com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:38)
16:28:29,066 ERROR [stderr] (MSC service thread 1-1) at
javax.servlet.GenericServlet.init(GenericServlet.java:242)
16:28:29,066 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
16:28:29,067 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
16:28:29,068 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
16:28:29,068 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)
16:28:29,073 ERROR [stderr] (MSC service thread 1-1) at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
16:28:29,075 ERROR [stderr] (MSC service thread 1-1) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
16:28:29,076 ERROR [stderr] (MSC service thread 1-1) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
16:28:29,077 ERROR [stderr] (MSC service thread 1-1) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
16:28:29,078 ERROR [stderr] (MSC service thread 1-1) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
16:28:29,078 ERROR [stderr] (MSC service thread 1-1) at
java.lang.Thread.run(Thread.java:722)
16:28:29,079 ERROR [stderr] (MSC service thread 1-1) Caused by:
org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name
[java:jboss/datasources/jBPM5WebAppExampleDS]
16:28:29,080 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)
16:28:29,080 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)
16:28:29,081 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
16:28:29,082 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
16:28:29,083 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
16:28:29,083 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)
16:28:29,092 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)
16:28:29,094 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
16:28:29,095 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
16:28:29,096 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
16:28:29,096 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
16:28:29,097 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
16:28:29,097 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
16:28:29,098 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
16:28:29,099 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
16:28:29,099 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
16:28:29,100 ERROR [stderr] (MSC service thread 1-1) ... 16 more
16:28:29,102 ERROR [stderr] (MSC service thread 1-1) Caused by:
javax.naming.NameNotFoundException: unable to find a bound object at name
'java:jboss/datasources/jBPM5WebAppExampleDS'
16:28:29,102 ERROR [stderr] (MSC service thread 1-1) at
bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)
16:28:29,103 ERROR [stderr] (MSC service thread 1-1) at
bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)
16:28:29,104 ERROR [stderr] (MSC service thread 1-1) at
javax.naming.InitialContext.lookup(InitialContext.java:415)
16:28:29,104 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)
16:28:29,105 ERROR [stderr] (MSC service thread 1-1) ... 31 more
16:28:29,135 WARN [bitronix.tm.utils.ManagementRegistrar] (MSC service thread 1-1) cannot
register object with name
bitronix.tm:type=Transaction,Gtrid=3132372E302E312E310000013D4088543F00000000:
bitronix.tm.internal.BitronixRuntimeException: cannot call method 'registerMBean'
at
bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:123)
[btm-2.1.2.jar:2.1.2]
at bitronix.tm.utils.ManagementRegistrar.register(ManagementRegistrar.java:86)
[btm-2.1.2.jar:2.1.2]
at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:340)
[btm-2.1.2.jar:2.1.2]
at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:323)
[btm-2.1.2.jar:2.1.2]
at bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:314)
[btm-2.1.2.jar:2.1.2]
at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:103)
[btm-2.1.2.jar:2.1.2]
at
main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:41)
[classes:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
[jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
[jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)
[jbossweb-7.0.13.Final.jar:]
at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
[jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_15]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_15]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
Caused by: java.lang.IllegalAccessException: Class bitronix.tm.utils.ManagementRegistrar
can not access a member of class org.jboss.as.jmx.PluggableMBeanServerImpl with modifiers
"public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
[rt.jar:1.7.0_15]
at
java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261)
[rt.jar:1.7.0_15]
at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253)
[rt.jar:1.7.0_15]
at java.lang.reflect.Method.invoke(Method.java:594) [rt.jar:1.7.0_15]
at
bitronix.tm.utils.ManagementRegistrar.mbeanServerCall(ManagementRegistrar.java:121)
[btm-2.1.2.jar:2.1.2]
... 17 more
16:28:29,149 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Value of key : procXmlPath
16:28:29,150 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Value of value :
/home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src
16:28:29,151 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Value of Return Value :
/home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src
16:28:29,152 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) URL :
/home/ouadi/MS-SID/infos_Stage/Projet_Workflow_Monetique/workspace_stage/WebApplication2/src/ProcessDefInfo.xml
16:28:29,162 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Tag Value : HumanTasksGroupAssigned.bpmn
16:28:29,162 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Tag Value : SampleHumanTaskFormVariables.bpmn
16:28:29,163 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Tag Value : DynamicTaskAssignment.bpmn
16:28:29,163 INFO [main.java.com.sample.processserver.AllMethods] (MSC service thread
1-1) Value of processParameters : [HumanTasksGroupAssigned.bpmn,
SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]
16:28:29,169 INFO [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread
1-1) Value of processNames : [HumanTasksGroupAssigned.bpmn,
SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]
16:28:29,169 INFO [main.java.com.sample.processserver.JbpmAPIUtil] (MSC service thread
1-1) Value of processNames : [HumanTasksGroupAssigned.bpmn,
SampleHumanTaskFormVariables.bpmn, DynamicTaskAssignment.bpmn]
16:28:30,332 INFO [main.java.com.sample.handler.CustomExceptionHandler] (MSC service
thread 1-1)
------------------------------------ERROR-------------------------------------
16:28:30,334 ERROR [main.java.com.sample.handler.CustomExceptionHandler] (MSC service
thread 1-1) STACK TRACE:
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
16:28:30,335 INFO [main.java.com.sample.handler.CustomExceptionHandler] (MSC service
thread 1-1)
------------------------------------ERROR-------------------------------------
16:28:30,336 ERROR [stderr] (MSC service thread 1-1)
javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable
to build EntityManagerFactory
16:28:30,336 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)
16:28:30,337 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
16:28:30,337 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:56)
16:28:30,338 ERROR [stderr] (MSC service thread 1-1) at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
16:28:30,339 ERROR [stderr] (MSC service thread 1-1) at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
16:28:30,339 ERROR [stderr] (MSC service thread 1-1) at
main.java.com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:510)
16:28:30,339 ERROR [stderr] (MSC service thread 1-1) at
main.java.com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:43)
16:28:30,340 ERROR [stderr] (MSC service thread 1-1) at
javax.servlet.GenericServlet.init(GenericServlet.java:242)
16:28:30,340 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
16:28:30,341 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
16:28:30,341 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
16:28:30,342 ERROR [stderr] (MSC service thread 1-1) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)
16:28:30,342 ERROR [stderr] (MSC service thread 1-1) at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
16:28:30,342 ERROR [stderr] (MSC service thread 1-1) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
16:28:30,343 ERROR [stderr] (MSC service thread 1-1) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
16:28:30,345 ERROR [stderr] (MSC service thread 1-1) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
16:28:30,345 ERROR [stderr] (MSC service thread 1-1) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
16:28:30,346 ERROR [stderr] (MSC service thread 1-1) at
java.lang.Thread.run(Thread.java:722)
16:28:30,346 ERROR [stderr] (MSC service thread 1-1) Caused by:
org.hibernate.service.jndi.JndiException: Unable to lookup JNDI name
[java:jboss/datasources/jBPM5WebAppExampleDS]
16:28:30,347 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:68)
16:28:30,347 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)
16:28:30,349 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
16:28:30,349 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
16:28:30,350 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
16:28:30,350 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:234)
16:28:30,351 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:91)
16:28:30,351 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
16:28:30,352 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
16:28:30,352 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
16:28:30,353 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
16:28:30,353 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
16:28:30,354 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
16:28:30,354 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
16:28:30,355 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
16:28:30,355 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
16:28:30,355 ERROR [stderr] (MSC service thread 1-1) ... 17 more
16:28:30,356 ERROR [stderr] (MSC service thread 1-1) Caused by:
javax.naming.NameNotFoundException: unable to find a bound object at name
'java:jboss/datasources/jBPM5WebAppExampleDS'
16:28:30,357 ERROR [stderr] (MSC service thread 1-1) at
bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)
16:28:30,357 ERROR [stderr] (MSC service thread 1-1) at
bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:67)
16:28:30,357 ERROR [stderr] (MSC service thread 1-1) at
javax.naming.InitialContext.lookup(InitialContext.java:415)
16:28:30,358 ERROR [stderr] (MSC service thread 1-1) at
org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:65)
16:28:30,358 ERROR [stderr] (MSC service thread 1-1) ... 32 more
16:28:30,369 INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web
context: /WebApplication2
16:28:30,379 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console
listening on
http://127.0.0.1:9990 http://127.0.0.1:9990
16:28:30,380 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS
7.1.1.Final "Brontes" started in 12959ms - Started 186 of 264 services (76
services are passive or on-demand)
16:28:30,529 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559:
Deployed "WebApplication2.war"
16:29:29,535 WARN [bitronix.tm.BitronixTransaction] (bitronix-scheduler) transaction
timed out: a Bitronix Transaction with GTRID [3132372E302E312E310000013D4088543F00000000],
status=MARKED_ROLLBACK, 0 resource(s) enlisted (started Wed Mar 06 16:28:29 WET 2013)
^C16:34:10,989 INFO [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011942: Stopping
OSGi Framework
16:34:10,995 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3)
Pausing Coyote HTTP/1.1 on http--127.0.0.1-8080
16:34:10,995 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3)
Stopping Coyote HTTP/1.1 on http--127.0.0.1-8080
16:34:11,019 INFO [org.jboss.as.logging] JBAS011503: Restored bootstrap log handlers
16:34:11,056 INFO [org.jboss.as.jpa] JBAS011403: Stopping Persistence Unit Service
'WebApplication2.war#org.jbpm.task'
16:34:11,058 INFO [org.jboss.as.jpa] JBAS011403: Stopping Persistence Unit Service
'WebApplication2.war#org.jbpm.persistence.jpa'
16:34:11,095 INFO [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying
TransactionManagerService
16:34:11,096 INFO [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping transaction recovery
manager
16:34:11,159 INFO [org.jboss.as.server.deployment] JBAS015877: Stopped deployment
WebApplication2.war in 179ms
16:34:11,161 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes"
stopped in 168ms
Can you help me please.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/801111#801111]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]