Tom,
The first error is simply because you don't have a human task server running (so it
can't find any human tasks). Some info on starting the human task service can be
found here:
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/tr...
Have you maybe tried the installer? That should allow you to setup an environment
(including eclipse, human task service, guvnor and gwt-console). Check the readme inside
for more details how to:
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/tr...
The second is probably related to the same issue.
Regarding the missing ProcessEnginePlugin, you can ignore that, that is normal.
Kris
----- Original Message -----
From: tom ska
To: rules-users(a)lists.jboss.org
Sent: Tuesday, July 27, 2010 10:24 AM
Subject: [rules-users] GWT Console - Drools Flow problems.
Hello,
I am trying to use Drools Flow with GWT Console v.2.1. I use Guvnor and Eclipse too. I
am new in server applications, and jBoss is for me something new, so please be patient :)
What I did are:
1.)Creating processes in Eclipse. They work.
2.)Exporting them to Guvnor - I can see them, everything is OK.
Then I try to start GWT-Console. When I log in, I get this:
a.. URL: 'http://localhost:8080/gwt-console-server/rs/tasks/admin'
b.. Action: 'org.jboss.bpm.console.client.task.LoadTasksAction'
c.. Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500:
HTTP Status 500 -
------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalArgumentException: Could not
connect task
client org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.IllegalArgumentException: Could not connect task
client org.drools.integration.console.DroolsFlowTaskManagement.connect(DroolsFlowTaskManagement.java:43) org.drools.integration.console.DroolsFlowTaskManagement.getAssignedTasks(DroolsFlowTaskManagement.java:112)
org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99) sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)note
The full stack trace of the root cause is available in the JBoss Web/2.
When I click on Process Overwiev, I get:
a.. URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions'
b.. Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
c.. Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500:
HTTP Status 500 -
------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not
initialize stateful knowledge session: Could not commit session or
rollback org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.lang.RuntimeException: Could not initialize stateful knowledge session: Could not
commit session or
rollback org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:86)
org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:94) org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:37) org.drools.integration.console.DroolsFlowProcessManagement.<init>(DroolsFlowProcessManagement.java:20)
org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122) sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)root
cause
java.lang.RuntimeException: Could not commit session or rollback
org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:289) org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.registerWorkItemHandler(CommandBasedStatefulKnowledgeSession.java:144)
org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:80) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:94)
org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:37) org.drools.integration.console.DroolsFlowProcessManagement.<init>(DroolsFlowProcessManagement.java:20)
org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122) sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)root
cause
java.lang.RuntimeException: Unable to rollback transaction
org.drools.persistence.session.JtaTransactionManager.rollback(JtaTransactionManager.java:181) org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:287) org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.registerWorkItemHandler(CommandBasedStatefulKnowledgeSession.java:144)
org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:80) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:94)
org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:37) org.drools.integration.console.DroolsFlowProcessManagement.<init>(DroolsFlowProcessManagement.java:20)
org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122) sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)root
cause
java.lang.IllegalStateException: BaseTransaction.rollback -
[com.arjuna.ats.internal.jta.transaction.arjunacore.notx]
[com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.rollback(BaseTransaction.java:160) com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.rollback(BaseTransactionManagerDelegate.java:114) org.jboss.tm.usertx.client.ServerVMClientUserTransaction.rollback(ServerVMClientUserTransaction.java:170)
org.drools.persistence.session.JtaTransactionManager.rollback(JtaTransactionManager.java:178) org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:287) org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.registerWorkItemHandler(CommandBasedStatefulKnowledgeSession.java:144)
org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:80) org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:94)
org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:37) org.drools.integration.console.DroolsFlowProcessManagement.<init>(DroolsFlowProcessManagement.java:20)
org.drools.integration.console.DroolsFlowManagementFactory.createProcessManagement(DroolsFlowManagementFactory.java:11) org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122) sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232) org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.bpm.console.server.util.GWT
ProcessEnginePlugin is marked with this:
I don't know what to do. I read similar thread to this one, but with no results for
me...
Ramran wrote there:
"The gwt-server-console.jar contains 2 javaassit jar files. I have deleted both
these jars and used only 1 javassist.jar file in the JBOSS lib folder. Try it "
But I was looking for javaassit.jar in gwt-server-console.jar, but I don't have
gwt-server-console.jar file in my jBoss... I have only "gwt-console-server-
integration-2.1.jar".
I want to show you my jBoss logs while starting this server:
09:26:24,129 INFO [TomcatDeployment] deploy, ctxPath=/admin-console
09:26:24,176 INFO [config] Initializing Mojarra (1.2_12-b01-FCS) for context
'/admin-console'
09:26:27,109 INFO [TomcatDeployment] deploy, ctxPath=/
09:26:27,171 INFO [TomcatDeployment] deploy, ctxPath=/drools-guvnor
09:26:38,279 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
09:26:38,294 ERROR [STDERR] SLF4J: Found binding in
[vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/drools-guvnor.war/WEB-INF/lib/slf4j-log4j12-1.6.0.jar/org/slf4j/impl/StaticLoggerBinder.class]
09:26:38,294 ERROR [STDERR] SLF4J: Found binding in
[vfszip:/C:/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
09:26:38,294 ERROR [STDERR] SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings
for an explanation.
09:26:44,721 INFO [STDOUT] INFO 27-07 09:26:44,706 (LoggingHelper.java:info:51)
Starting mailbox service
09:26:44,721 INFO [STDOUT] INFO 27-07 09:26:44,721 (LoggingHelper.java:info:51)
Waking up
09:26:44,737 INFO [STDOUT] INFO 27-07 09:26:44,721 (LoggingHelper.java:info:51)
Processing outgoing messages
09:26:44,784 INFO [STDOUT] DEBUG 27-07 09:26:44,784 (LoggingHelper.java:debug:65)
Outgoing messages size 0
09:26:44,815 INFO [TomcatDeployment] deploy, ctxPath=/gwt-console
09:26:44,831 INFO [STDOUT] DEBUG 27-07 09:26:44,831 (LoggingHelper.java:debug:65)
Processing any inbound messages for mailman
09:26:44,831 INFO [STDOUT] DEBUG 27-07 09:26:44,831 (LoggingHelper.java:debug:65)
Processing any inbound messages for admin
09:26:44,877 ERROR [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
09:26:44,877 ERROR [STDERR] SLF4J: Found binding in
[vfszip:/C:/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
09:26:44,877 ERROR [STDERR] SLF4J: Found binding in
[vfszip:/C:/jboss-5.1.0.GA/server/default/deploy/gwt-console-drools-5.1.0.CR1.war/WEB-INF/lib/slf4j-log4j12-1.6.0.jar/org/slf4j/impl/StaticLoggerBinder.class]
09:26:44,877 ERROR [STDERR] SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings
for an explanation.
09:26:45,938 ERROR [STDERR] log4j:ERROR A
"org.jboss.logging.appender.FileAppender" object is not assignable to a
"org.apache.log4j.Appender" variable.
09:26:45,938 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender"
was loaded by
09:26:45,938 ERROR [STDERR] log4j:ERROR
[BaseClassLoader@44ee06be{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/gwt-console-drools-5.1.0.CR1.war/}]
whereas object of type
09:26:45,938 ERROR [STDERR] log4j:ERROR
"org.jboss.logging.appender.FileAppender" was loaded by
[org.jboss.bootstrap.NoAnnotationURLClassLoader@4ce86da0].
09:26:45,938 ERROR [STDERR] log4j:ERROR Could not instantiate appender named
"FILE".
.
.
.
09:26:51,445 ERROR [SchemaUpdate] could not get database metadata
org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; -
nested throwable: (javax.resource.ResourceException: Unable to get managed connection for
jdbc/testDS1)
at
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
.
.
.
09:26:51,445 ERROR [SchemaUpdate] could not complete schema update
org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/testDS1; -
nested throwable: (javax.resource.ResourceException: Unable to get managed connection for
jdbc/testDS1)
at
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
.
.
.
09:26:52,053 ERROR [STDERR] log4j:ERROR A
"org.jboss.logging.appender.FileAppender" object is not assignable to a
"org.apache.log4j.Appender" variable.
09:26:52,053 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender"
was loaded by
09:26:52,053 ERROR [STDERR] log4j:ERROR
[BaseClassLoader@34fe7e0e{vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/gwt-console-server-drools-5.1.0.CR1.war/}]
whereas object of type
09:26:52,053 ERROR [STDERR] log4j:ERROR
"org.jboss.logging.appender.FileAppender" was loaded by
[org.jboss.bootstrap.NoAnnotationURLClassLoader@4ce86da0].
09:26:52,053 ERROR [STDERR] log4j:ERROR Could not instantiate appender named
"FILE".
Thanks for any advise,
tom.
------------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm