Sam Mano [
https://community.jboss.org/people/artist123] created the discussion
"JBPM5.3-installer, jbpm-console persistence error"
To view the discussion, visit:
https://community.jboss.org/message/750577#750577
--------------------------------------------------------------
I am testing with jbpm5.3 -installer, after few changes in the persistence.xml all working
fine, I sucessfully tested the process flow in the jbpm-console, persistence with mysql db
(used the ant script , ant start.demo.db). but I want to further experiment the process
flow with human task.
my experiment and problem...
what I did is as seqence....
1. login as krisv/krisv and created a process and start process and closed a evaluation
task. logged out.(now john and mary tasks pending, the process is not completed)
2. Stop the server using 'ant stop.demo.db' command.
3. Start the server using 'ant start.jboss; command - server started sucessfully
4. Start the human task service using 'ant start.human.task' - service started
successfully but deleted the data from the task table.
5. I want to log in as john to complete the task created in the (step1).
6. I loggen in as john/john...all went to wrong...jbpm-console starts blowing ups and
throught the following errors....
17:14:19,258 ERROR [org.jboss.as] (MSC service thread 1-1) JBoss AS 7.0.2.Final
"Arc" started (with errors) in 164170ms - Started 479 of 552 services (6
services failed or missing dependencies, 67 services are passive or on-demand)
17:14:19,348 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployed "jbpm-human-task-war.war"
17:14:19,348 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployed "jbpm-gwt-console.war"
17:14:19,348 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployed "jbpm-gwt-console-server.war"
17:14:19,348 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployed "jbpm-form-builder.war"
17:14:19,348 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployed "drools-guvnor.war"
17:14:19,348 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2)
Deployed "designer.war"
17:15:11,925 INFO [stdout] (http-localhost-127.0.0.1-8080-3) WARN 26-07 17:15:11,925
(RulesRepositoryManager.java:createRulesRepository:65) Creating RulesRepository with
default username.
17:15:11,925 INFO [stdout] (http-localhost-127.0.0.1-8080-3) INFO 26-07 17:15:11,925
(RulesRepositoryConfigurator.java:getInstance:46) Creating an instance of the
RulesRepositoryConfigurator.
17:15:15,147 INFO [stdout] (http-localhost-127.0.0.1-8080-3) INFO 26-07 17:15:15,147
(DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:15:15,297 WARN [org.jboss.seam.security.permission.SecurityRuleLoader]
(http-localhost-127.0.0.1-8080-3) No security rules configured - rule base permissions
will be unavailable.
17:15:15,487 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:15,487
(DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:15:36,827 INFO [stdout] (http-localhost-127.0.0.1-8080-4) WARN 26-07 17:15:36,827
(RulesRepositoryManager.java:createRulesRepository:65) Creating RulesRepository with
default username.
17:15:36,838 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:36,838
(DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:15:36,848 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:36,838
(AuthorizationHeaderChecker.java:loginByHeader:68) admin authenticated for rest api
17:15:36,848 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:36,848
(PackageDeploymentServlet.java:execute:143) PackageName: defaultPackage
17:15:36,848 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:36,848
(PackageDeploymentServlet.java:execute:144) PackageVersion: LATEST
17:15:36,848 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:36,848
(PackageDeploymentServlet.java:execute:145) PackageIsLatest: true
17:15:36,848 INFO [stdout] (http-localhost-127.0.0.1-8080-4) INFO 26-07 17:15:36,848
(PackageDeploymentServlet.java:execute:146) PackageIsSource: false
17:15:39,768 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]]
(http-localhost-127.0.0.1-8080-2) Servlet.service() for servlet Resteasy threw exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.ExceptionInInitializerError
at
org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:736) [:1.6.0]
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222) [:1.6.0]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:89)
[classes:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:125)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[:1.6.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0]
at java.lang.reflect.Method.invoke(Method.java:600) [:1.6.0]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
[resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session:
[PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:127)
[jbpm-gwt-core-5.3.0.Final.jar:]
at java.lang.J9VMInternals.initializeImpl(Native Method) [:1.6.0]
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) [:1.6.0]
... 39 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
[hibernate-entitymanager-3.4.0.GA.jar:]
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
[hibernate-entitymanager-3.4.0.GA.jar:]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.createOrLoadStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:263)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:154)
[jbpm-gwt-core-5.3.0.Final.jar:]
... 42 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
[hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
[hibernate-annotations-3.4.0.GA.jar:]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
[hibernate-entitymanager-3.4.0.GA.jar:]
... 47 more
Caused by: java.lang.IllegalStateException
at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:116)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:43)
at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1216)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:111)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:73)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:57)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
[hibernate-core-3.3.2.GA.jar:]
... 55 more
17:15:39,788 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]]
(http-localhost-127.0.0.1-8080-2) Servlet.service() for servlet Resteasy threw exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError:
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder (initialization
failure)
at
org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:736) [:1.6.0]
Caused by: java.lang.NoClassDefFoundError:
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder (initialization
failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140) [:1.6.0]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:89)
[classes:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:125)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[:1.6.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0]
at java.lang.reflect.Method.invoke(Method.java:600) [:1.6.0]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
[resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session:
[PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:127)
[jbpm-gwt-core-5.3.0.Final.jar:]
at java.lang.J9VMInternals.initializeImpl(Native Method) [:1.6.0]
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) [:1.6.0]
... 39 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
[hibernate-entitymanager-3.4.0.GA.jar:]
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
[hibernate-entitymanager-3.4.0.GA.jar:]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.createOrLoadStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:263)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:154)
[jbpm-gwt-core-5.3.0.Final.jar:]
... 42 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
[hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
[hibernate-annotations-3.4.0.GA.jar:]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
[hibernate-entitymanager-3.4.0.GA.jar:]
... 47 more
Caused by: java.lang.IllegalStateException
at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:116)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:43)
at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1216)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:111)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:73)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:57)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
[hibernate-core-3.3.2.GA.jar:]
... 55 more
17:15:41,400 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]]
(http-localhost-127.0.0.1-8080-3) Servlet.service() for servlet Resteasy threw exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError:
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder (initialization
failure)
at
org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:736) [:1.6.0]
Caused by: java.lang.NoClassDefFoundError:
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder (initialization
failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140) [:1.6.0]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19)
[jbpm-gwt-core-5.3.0.Final.jar:]
at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72)
[classes:]
at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
[:1.6.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[:1.6.0]
at java.lang.reflect.Method.invoke(Method.java:600) [:1.6.0]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
[resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session:
[PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.<clinit>(StatefulKnowledgeSessionUtil.java:127)
[jbpm-gwt-core-5.3.0.Final.jar:]
at java.lang.J9VMInternals.initializeImpl(Native Method) [:1.6.0]
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) [:1.6.0]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.SessionInitializer.<init>(SessionInitializer.java:25)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:89)
[classes:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:125)
[classes:]
... 33 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
[hibernate-entitymanager-3.4.0.GA.jar:]
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
[hibernate-entitymanager-3.4.0.GA.jar:]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.createOrLoadStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:263)
[jbpm-gwt-core-5.3.0.Final.jar:]
at
org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:154)
[jbpm-gwt-core-5.3.0.Final.jar:]
... 42 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
[hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
[hibernate-annotations-3.4.0.GA.jar:]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
[hibernate-entitymanager-3.4.0.GA.jar:]
... 47 more
Caused by: java.lang.IllegalStateException
at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:116)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:43)
at org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1216)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:111)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:73)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:57)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
[hibernate-core-3.3.2.GA.jar:]
... 55 more
thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/750577#750577]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]