[jboss-user] [jBPM] - how to deploy jBPM console along with existing application

Ladislav Gazo do-not-reply at jboss.com
Wed Nov 3 12:03:53 EDT 2010


Ladislav Gazo [http://community.jboss.org/people/lgazo] created the discussion

"how to deploy jBPM console along with existing application"

To view the discussion, visit: http://community.jboss.org/message/569510#569510

--------------------------------------------------------------
Hello,

I have a question regarding deploying jbpm-console with my application. Let's suppose there is myapp.war that contains and runs process engine. I would like to deploy the console as new application able to access my process engine in different application context.

Based on the documentation  http://community.jboss.org/docs/DOC-13839 http://community.jboss.org/wiki/BPMConsoleReference#Integration_with_the_process_engine I:
*  deployed gwt-console.war and gwt-console-server.war as separate application contexts, 
* configured jbpm.cfg.xml (in my application) to contact through correct port (Tomcat runs on 8888 port)* <string name="jbpm.console.server.host" value="localhost" />
* <string name="jbpm.console.server.port" value="8888" />

* and also put gwt-console-rpc.jar and gwt-console-server-integration.jar into my application's WEB-INF/lib.

The problem is that after server startup it tries and accessing console I get exception where it says it tries to locate jbpm.cfg.xml which cannot be found:

SEVERE: Servlet.service() for servlet Resteasy threw exception
org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Failed to load org.jboss.bpm.console.server.plugin.FormDispatcherPlugin: org.jbpm.integration.console.forms.FormDispatcherComposite
    at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
    at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
    at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: Failed to load org.jboss.bpm.console.server.plugin.FormDispatcherPlugin: org.jbpm.integration.console.forms.FormDispatcherComposite
    at org.jboss.bpm.console.server.util.ServiceLoader.loadFromServices(ServiceLoader.java:94)
    at org.jboss.bpm.console.server.util.ServiceLoader.loadService(ServiceLoader.java:56)
    at org.jboss.bpm.console.server.plugin.PluginMgr.load(PluginMgr.java:54)
    at org.jboss.bpm.console.server.InfoFacade.getServerStatus(InfoFacade.java:83)
    at org.jboss.bpm.console.server.InfoFacade.getServerInfo(InfoFacade.java:72)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
    at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
    at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
    ... 21 more
Caused by: org.jbpm.api.JbpmException: resource jbpm.cfg.xml does not exist
    at org.jbpm.pvm.internal.stream.ResourceStreamInput.openStream(ResourceStreamInput.java:60)
    at org.jbpm.pvm.internal.xml.Parse.getInputSource(Parse.java:146)
    at org.jbpm.pvm.internal.xml.Parser.buildDocument(Parser.java:453)
    at org.jbpm.pvm.internal.xml.Parser.execute(Parser.java:425)
    at org.jbpm.pvm.internal.xml.Parse.execute(Parse.java:158)
    at org.jbpm.pvm.internal.cfg.ConfigurationImpl.parse(ConfigurationImpl.java:137)
    at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:116)
    at org.jbpm.pvm.internal.cfg.ConfigurationImpl.setResource(ConfigurationImpl.java:50)
    at org.jbpm.api.Configuration.setResource(Configuration.java:79)
    at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:126)
    at org.jbpm.integration.console.forms.AbstractFormDispatcher.initializeProcessEngine(AbstractFormDispatcher.java:71)
    at org.jbpm.integration.console.forms.AbstractFormDispatcher.<init>(AbstractFormDispatcher.java:61)
    at org.jbpm.integration.console.forms.TaskFormDispatcher.<init>(TaskFormDispatcher.java:49)
    at org.jbpm.integration.console.forms.FormDispatcherComposite.<init>(FormDispatcherComposite.java:43)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.jboss.bpm.console.server.util.ServiceLoader.loadFromServices(ServiceLoader.java:89)
    ... 35 more

Can you help with configuring such scenario? Is it possible to deploy it like that or there is another way?

Thanks in advance.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/569510#569510]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101103/4714ec49/attachment.html 


More information about the jboss-user mailing list