[jBPM] - Error in viewing jbpm-console in jBPM5.3 on JBoss As 7
by Sunita Patil
Sunita Patil [https://community.jboss.org/people/sunitavp] created the discussion
"Error in viewing jbpm-console in jBPM5.3 on JBoss As 7"
To view the discussion, visit: https://community.jboss.org/message/746477#746477
--------------------------------------------------------------
Hello,
I am able to deploy all 6 jars of jBPM5.3 on JBoss AS 7 successfully after fight of 3 days. But after JBoss server started, I tried to execute Evaluate sample project.
When I try to load jbpm-console, I am displayed with login page. After providing cerdentials such as krisv, it gives following error: Please assit.
Your response will be appreciated. Thaks in advance!!
Error in viewing http://ctsinpunvsav2:8080/jbpm-console/app.html#errai_ToolSet_Tasks;none http://ctsinpunvsav2:8080/jbpm-console/app.html#errai_ToolSet_Tasks;none
17:09:01,181 INFO [org.jboss.web] (MSC service thread 1-8) registering web context: /drools-guvnor
17:09:28,950 INFO [stdout] (http--0.0.0.0-8080-1) WARN 05-07 17:09:28,950 (RulesRepositoryManager.java:createRulesRepository:65) Creating RulesRepository with default username.
17:09:28,965 INFO [stdout] (http--0.0.0.0-8080-1) INFO 05-07 17:09:28,965 (RulesRepositoryConfigurator.java:getInstance:46) Creating an instance of the RulesRepositoryConfigurator.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_cs.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_de_DE.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_es.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_fr.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_hu.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_it.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_ja_JP.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_ko_KR.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_pl.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_pt_BR.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_ru.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_zh_CN.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry derbyLocale_zh_TW.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/derby-10.5.3.0_1.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry iText-toolbox.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/itext-2.1.2.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry iText-toolbox-2.1.2.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/itext-2.1.2.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry bcmail-jdk14-138.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/itext-2.1.2.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry bcprov-jdk14-138.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/itext-2.1.2.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-api.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,343 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,359 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jsr173_1.0_api.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,359 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb1-impl.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-impl-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,359 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-api.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,359 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxb-impl.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,359 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jsr173_1.0_api.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,359 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/jbpm-5.3.0-Complete/jboss-as-7.0.2.Final/bin/content/jbpm-form-builder.war/WEB-INF/lib/jaxb-xjc-2.2.5.jar" does not point to a valid jar for a Class-Path reference.
17:09:56,374 WARN [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer" for service type "org.xmlpull.v1.XmlPullParserFactory"
17:09:56,530 INFO [org.jboss.weld] (MSC service thread 1-6) Processing CDI deployment: jbpm-form-builder.war
17:09:56,749 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) Deploying JDBC-compliant driver class org.apache.derby.jdbc.AutoloadedDriver (version 10.5)
17:09:56,749 INFO [org.jboss.weld] (MSC service thread 1-7) Starting Services for CDI deployment: jbpm-form-builder.war
17:09:56,764 INFO [org.jboss.weld] (MSC service thread 1-3) Starting weld service
17:09:56,889 INFO [org.jboss.resteasy.cdi.CdiInjectorFactory] (MSC service thread 1-6) Found BeanManager at java:comp/BeanManager
17:09:56,936 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-form-builder]] (MSC service thread 1-6) Initializing Spring root WebApplicationContext
17:09:56,936 ERROR [stderr] (MSC service thread 1-6) log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
17:09:56,936 ERROR [stderr] (MSC service thread 1-6) log4j:WARN Please initialize the log4j system properly.
17:09:56,936 ERROR [stderr] (MSC service thread 1-6) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
17:09:57,295 INFO [org.jboss.web] (MSC service thread 1-6) registering web context: /jbpm-form-builder
17:09:57,295 INFO [org.jboss.as] (MSC service thread 1-1) JBoss AS 7.0.2.Final "Arc" started in 113879ms - Started 482 of 549 services (67 services are passive or on-demand)
17:09:57,357 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "jbpm-human-task-war.war"
17:09:57,357 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "jbpm-gwt-console.war"
17:09:57,357 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "jbpm-gwt-console-server.war"
17:09:57,357 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "jbpm-form-builder.war"
17:09:57,357 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "drools-guvnor.war"
17:09:57,357 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "designer.war"
17:21:57,040 ERROR [stderr] (http--0.0.0.0-8080-5) log4j:WARN No appenders could be found for logger (org.jboss.bpm.console.server.plugin.PluginMgr).
17:24:41,699 ERROR [stderr] (http--0.0.0.0-8080-4) log4j:WARN No appenders could be found for logger (org.jboss.bpm.console.server.UserMgmtFacade).
17:24:41,699 ERROR [stderr] (http--0.0.0.0-8080-4) log4j:WARN Please initialize the log4j system properly.
17:24:41,699 ERROR [stderr] (http--0.0.0.0-8080-5) log4j:WARN Please initialize the log4j system properly.
17:24:41,699 ERROR [stderr] (http--0.0.0.0-8080-5) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
17:24:41,699 ERROR [stderr] (http--0.0.0.0-8080-4) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
17:24:43,165 INFO [stdout] (http--0.0.0.0-8080-5) WARN 05-07 17:24:43,150 (RulesRepositoryManager.java:createRulesRepository:65) Creating RulesRepository with default username.
17:24:43,477 INFO [stdout] (http--0.0.0.0-8080-5) INFO 05-07 17:24:43,477 (DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:24:43,696 WARN [org.jboss.seam.security.permission.SecurityRuleLoader] (http--0.0.0.0-8080-5) No security rules configured - rule base permissions will be unavailable.
17:24:43,976 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:43,945 (DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:24:45,864 INFO [stdout] (http--0.0.0.0-8080-2) WARN 05-07 17:24:45,864 (RulesRepositoryManager.java:createRulesRepository:65) Creating RulesRepository with default username.
17:24:45,911 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,911 (DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:24:45,911 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,911 (AuthorizationHeaderChecker.java:loginByHeader:68) admin authenticated for rest api
17:24:45,911 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,911 (PackageDeploymentServlet.java:execute:143) PackageName: defaultPackage
17:24:45,911 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,911 (PackageDeploymentServlet.java:execute:144) PackageVersion: LATEST
17:24:45,911 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,911 (PackageDeploymentServlet.java:execute:145) PackageIsLatest: true
17:24:45,911 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,911 (PackageDeploymentServlet.java:execute:146) PackageIsSource: false
17:24:45,973 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,973 (DemoAuthenticator.java:authenticate:65) Demo login for user (admin) succeeded.
17:24:45,973 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,973 (AuthorizationHeaderChecker.java:loginByHeader:68) admin authenticated for rest api
17:24:45,973 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,973 (PackageDeploymentServlet.java:execute:143) PackageName: mortgages
17:24:45,973 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,973 (PackageDeploymentServlet.java:execute:144) PackageVersion: LATEST
17:24:45,973 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,973 (PackageDeploymentServlet.java:execute:145) PackageIsLatest: true
17:24:45,973 INFO [stdout] (http--0.0.0.0-8080-2) INFO 05-07 17:24:45,973 (PackageDeploymentServlet.java:execute:146) PackageIsSource: false
17:24:46,847 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--0.0.0.0-8080-6) 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:619) [:1.6.0_17]
Caused by: java.lang.ExceptionInInitializerError
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.TaskManagement.<init>(TaskManagement.java:51) [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_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_17]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_17]
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:]
... 40 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:]
... 41 more
Caused by: org.hibernate.HibernateException: Errors in named queries: ProcessInstancesWaitingForEvent
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:407) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341) [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:]
... 46 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746477#746477]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[jBPM] - Cannot insert null into table error while starting a process
by jess singh
jess singh [https://community.jboss.org/people/singhjess] created the discussion
"Cannot insert null into table error while starting a process"
To view the discussion, visit: https://community.jboss.org/message/746402#746402
--------------------------------------------------------------
Hi all , we are using JBPM 5.3 on Jboss 7.1 with Hibernate 4 and using JBoss's transaciton manager and seam managed persistence context, when I try to start a process I get the following error
08:53:14,876 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-localhost-127.0.0.1-8080-1) SQL Error: 23502, SQLState: 23502
08:53:14,878 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-localhost-127.0.0.1-8080-1) NULL not allowed for column "INSTANCEID"; SQL statement:
insert into ProcessInstanceInfo (InstanceId, id, lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK) values (null, ?, ?, ?, ?, ?, ?, ?, ?) [23502-161]
08:53:14,888 ERROR [org.drools.persistence.SingleSessionCommandService] (http-localhost-127.0.0.1-8080-1) Could not commit session:
: org.hibernate.exception.ConstraintViolationException
* *
*public* *void*startProcess() {
*try**{*
*KnowledgeBase kbase = +readKnowledgeBase+();*
*TransactionManager manager = (TransactionManager)* *new InitialContext().lookup("java:jboss/TransactionManager"**);*
*// create the entity manager factory and register it in the environment*
*EntityManagerFactory emf = Persistence.+createEntityManagerFactory+(* *"main"**);*
*Environment env = KnowledgeBaseFactory.+newEnvironment+();*
*env.set( EnvironmentName.*++*ENTITY_MANAGER_FACTORY*++*, emf );*
*//env.set( EnvironmentName.TRANSACTION, getUserTransaction());*
*env.set(EnvironmentName.*++*GLOBALS*++*, new*
*MapGlobalResolver());*
*env.set(EnvironmentName.*++*APP_SCOPED_ENTITY_MANAGER*++*, entityManager**);*
*env.set(EnvironmentName.*++*TRANSACTION_MANAGER*++*, manager);*
*Map<String, Object> params =* *new**HashMap<String, Object>();*
*// org.drools.persistence.info.WorkItemInfo wi;*
*//org.jbpm.task.Comment comment;*
*params.put(**"name", "Arthur"**);*
*params.put(**"money"**, 1800);*
*// create a new knowledge session that uses JPA to store the runtime state*
*StatefulKnowledgeSession ksession = JPAKnowledgeService.+newStatefulKnowledgeSession+( kbase,* *null**, env );*
*int**sessionId = ksession.getId();*
*System.*++*out*++*.println(sessionId);*
*// invoke methods on your method here*
*ksession.startProcess(* *"process_1"**, params);*
*ksession.dispose();*
*}* *catch**( Throwable t ) {*
*t.printStackTrace();*
*}*
Here is my persistence.xml
<
persistence xmlns=
++" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence"+
+
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746402#746402]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[jBPM] - Errors testing Hello Process Example with Persistence (jBPM 5.3)
by David Scerrati
David Scerrati [https://community.jboss.org/people/dvdscr] created the discussion
"Errors testing Hello Process Example with Persistence (jBPM 5.3)"
To view the discussion, visit: https://community.jboss.org/message/746423#746423
--------------------------------------------------------------
Hi,
I installed for the first time jBPM 5.3 on Tomcat with Oracle 10g, and with this installation I created database schema on my Oracle schema.
Then I installed on my Eclipse plugin to create a new jBPM project a to use designer. Then i'd like to try it with this sample:
https://community.jboss.org/people/bpmn2user/blog/2011/03/25/jbpm5--persi... https://community.jboss.org/people/bpmn2user/blog/2011/03/25/jbpm5--persi...
I've two problems executing it, one in orm.xml file, one creating KnowledgeSession.
The orm.xml file seems not updated, in fact i modify it in two parts (number of arguments of TaskSummary, escalated in Deadline is not boolean), however i've this error:
> 652 05/07 17:04:02,498[main] ERROR hibernate.impl.SessionFactoryImpl.<init> - Error in named query: ProcessInstancesWaitingForEvent
> org.hibernate.hql.ast.QuerySyntaxException: ProcessInstanceInfo is not mapped [select processInstanceInfo.processInstanceId from ProcessInstanceInfo processInstanceInfo where :type in elements(processInstanceInfo.eventTypes)]
I've the error on this named-query:
<named-query name="ProcessInstancesWaitingForEvent">
<query>
select
processInstanceInfo.processInstanceId
from
ProcessInstanceInfo processInstanceInfo
where
:type in elements(processInstanceInfo.eventTypes)
</query>
</named-query>
If i delete this named-query the initialization seems to go, but i've this other error:
> Hibernate: select SESSIONINFO_ID_SEQ.nextval from dual
> 843 05/07 15:15:24,278[main] ERROR hibernate.util.JDBCExceptionReporter.logExceptions - error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource jdbc/testDS1 in state ACCESSIBLE with usage count 1 wrapping oracle.jdbc.xa.client.OracleXAConnection@d3c9557 on oracle.jdbc.driver.OracleConnection@470898b
> java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
> at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:143)
> at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67)
> at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
> at com.sample.ProcessTestTask.createKnowledgeSession(ProcessTestTask.java:168)
> at com.sample.ProcessTestTask.main(ProcessTestTask.java:114)
I don't understand why ProcessInstanceInfo seems to be not mapped and also why a sequence can do this error.
Can you help me, please?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746423#746423]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[JBoss Messaging] - Re: JBOSS Connection Issue with MQ
by forum khan
forum khan [https://community.jboss.org/people/forum.khan] created the discussion
"Re: JBOSS Connection Issue with MQ"
To view the discussion, visit: https://community.jboss.org/message/745620#745620
--------------------------------------------------------------
After analysis I found that in *wmq.jmsra.rar\META-INF\ra.xml* file there is reconnectionRetryCount = 5 and reconnectionRetryInterval = 300000 that is causing the server to auto reconnect to MQ every 5 mins.
Using RAR software, I extracted the ra.xml file and modified those properties. Again packaged to .rar file.
After the deployment of .rar file and restarting the server the deployment of .rar fails due to the below errors.
Please let me know how to resolve this.
12:22:25,231 ERROR [ProfileDeployAction] Failed to add deployment: wmq.jmsra.rar
org.jboss.deployers.spi.DeploymentException: Error determining structure: wmq.jmsra.rar
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:89)
at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1001)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:437)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:387)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:297)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)
at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:636)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:786)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:830)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:195)
at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:690)
at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:169)
at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)
at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:492)
at org.jboss.deployers.vfs.plugins.structure.explicit.DeclaredStructure.determineStructure(DeclaredStructure.java:64)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at java.util.jar.JarFile.<init>(JarFile.java:99)
at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:173)
at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:250)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:485)
at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:629)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745620#745620]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months