Guvnor was changed recently to add authentication when downloading packages. The console
was not yet updated for this in 5.1.0.M1, so you'll need to update to the latest
trunk. Luckily, there's now also an installation script that should simplify things
as well.
Take a look at
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/install/readme.txt
Kris
----- Original Message -----
From: laurence vignollet
To: rules-users(a)lists.jboss.org
Sent: Friday, April 09, 2010 2:25 PM
Subject: [rules-users] errors with GWT-console
I am a new to Drools Flow, guvnor, and GWT-console-server-drools.
I am trying to deploy Gwt-console-server and to get a process running in it.
I am using Drools 5.1.0.M1, JBoss-AS 4.2.3.GA.
I have followed all the instruction in the Drools Flow 5.1.0 Documentation, the chapter
about Console.
When I start the aplication server I get the following errors:
10:31:16,957 INFO [TomcatDeployer] deploy, ctxPath=/gwt-console-server, warUrl=
.../deploy/gwt-console-server-drools-5.1.0.M1.war/
10:31:17,275 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap contextInitialized
WARNING: The use of javax.ws.rs.core.Application is deprecated, please use javax
.ws.rs.Application as a context-param instead
10:31:17,277 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap setProviders
INFO: Adding listed @Provider class org.jboss.bpm.report.FileWriter
10:31:17,309 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider DataSourceProvider
10:31:17,312 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider DefaultTextPlain
10:31:17,315 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider org.jboss.resteasy.plugins.providers.StringTextSta
r
10:31:17,319 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider org.jboss.resteasy.plugins.providers.InputStreamPr
ovider
10:31:17,323 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider org.jboss.resteasy.plugins.providers.ByteArrayProv
ider
10:31:17,327 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncode
dProvider
10:31:17,330 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider org.jboss.resteasy.plugins.providers.FormUrlEncode
dProvider
10:31:17,334 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin register
INFO: Added built in provider org.jboss.resteasy.plugins.providers.StreamingOutp
utProvider
10:31:17,342 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartReader
10:31:17,361 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.multipart.Li
stMultipartReader
10:31:17,364 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartFormDataReader
10:31:17,369 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.multipart.Ma
pMultipartFormDataReader
10:31:17,373 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartWriter
10:31:17,380 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartFormDataWriter
10:31:17,385 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.Lis
tMultipartWriter
10:31:17,388 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.Map
MultipartFormDataWriter
10:31:17,391 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalReader
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.multipart.Mu
ltipartFormAnnotationReader
10:31:17,397 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalWriter
INFO: Adding built in providerorg.jboss.resteasy.plugins.providers.multipart.Mul
tipartFormAnnotationWriter
10:31:17,403 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalProvider
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.IIOImageProv
ider
10:31:17,409 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.p
roviders.RegisterBuiltin optionalProvider
INFO: Adding built in provider org.jboss.resteasy.plugins.providers.multipart.Mi
meMultipartProvider
10:31:17,462 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Deploying javax.ws.rs.core.Application: class org.jboss.bpm.console.server
.ConsoleServerApplication
10:31:17,466 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.report.ReportFacade from Applicati
on javax.ws.rs.core.Application
10:31:17,502 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.TaskMgmtFacade from
Application javax.ws.rs.core.Application
10:31:17,519 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.ProcessMgmtFacade f
rom Application javax.ws.rs.core.Application
10:31:17,532 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.TaskListFacade from
Application javax.ws.rs.core.Application
10:31:17,536 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.UserMgmtFacade from
Application javax.ws.rs.core.Application
10:31:17,543 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.FormProcessingFacad
e from Application javax.ws.rs.core.Application
10:31:17,552 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.EngineFacade from A
pplication javax.ws.rs.core.Application
10:31:17,558 ERROR [STDERR] Apr 9, 2010 10:31:17 AM org.jboss.resteasy.plugins.s
erver.servlet.ResteasyBootstrap processApplication
INFO: Adding singleton resource org.jboss.bpm.console.server.InfoFacade from App
lication javax.ws.rs.core.Application
10:31:17,593 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
10:31:17,769 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
10:31:17,797 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
10:31:17,815 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos
s_4_2_3_GA date=200807181417)] Started in 26s:425ms
I can enter the GWT-Console but when I search the process I get the following errors:
a.. URL: 'http://127.0.0.1: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'
a.. URL: 'http://127.0.0.1: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:
null 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:803) 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:
null org.drools.integration.console.DroolsFlowCommandDelegate.newStatefulKnowledgeSession(DroolsFlowCommandDelegate.java:69)
org.drools.integration.console.DroolsFlowCommandDelegate.getSession(DroolsFlowCommandDelegate.java:77) org.drools.integration.console.DroolsFlowCommandDelegate.<init>(DroolsFlowCommandDelegate.java:35) 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:83)
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:107) 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:803)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96Thanks
a lot in advance for your Help !
------------------------------------------------------------------------------
_______________________________________________
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