cancel
Showing results for 
Search instead for 
Did you mean: 

Merged REST and Explorer but getting {'errorMessage':'No router defined','statusCode':500}

nimsharm
Champ in-the-making
Champ in-the-making
Hi,

I am new to Activiti and merged the REST and explorer modules based on steps mentioned in the following thread:

http://forums.activiti.org/content/how-merge-activiti-rest-and-explorer-single-war

I put the default h2 DB back in place and removed the LDAP portion. The activiti/WEB-INF/classes/org/activiti/explorer and activiti/WEB-INF/classes/org/activiti/demo folders were missing,I put them in placed too. Now, when I try to make a GET request to http://localhost:8080/activiti/service/process-engine, I am getting {"errorMessage":"No router defined","statusCode":500} in the response. Not sure what could be wrong. Any pointers on what to check would be greatly appreciated!


Here is the complete stack trace:
Internal Server Error (500) - The server encountered an unexpected condition which prevented it from fulfilling the request
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:517)
   at org.restlet.resource.ServerResource.get(ServerResource.java:707)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:589)
   at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:649)
   at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:348)
   at org.restlet.resource.ServerResource.handle(ServerResource.java:952)
   at org.restlet.resource.Finder.handle(Finder.java:246)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:431)
   at org.restlet.routing.Router.handle(Router.java:648)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
   at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)
   at org.restlet.Application.handle(Application.java:381)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:431)
   at org.restlet.routing.Router.handle(Router.java:648)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:431)
   at org.restlet.routing.Router.handle(Router.java:648)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
   at org.restlet.Component.handle(Component.java:392)
   at org.restlet.Server.handle(Server.java:516)
   at org.restlet.engine.ServerHelper.handle(ServerHelper.java:72)
   at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)
   at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1089)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.activiti.explorer.filter.ExplorerFilter.doFilter(ExplorerFilter.java:44)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:744)
Caused by: org.activiti.engine.ActivitiException: No router defined
   at org.activiti.rest.common.api.DefaultResource.execute(DefaultResource.java:38)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:506)
   … 64 more
3 REPLIES 3

nimsharm
Champ in-the-making
Champ in-the-making
Update: I did the merge manually and this seems to be working now!

raimana
Champ in-the-making
Champ in-the-making
Would you be able to push your project (the one that didn't work) on github so I can take a look at it?

I might create a branch with the demo stuff and H2…

Cheers.

nimsharm
Champ in-the-making
Champ in-the-making
I've uploaded the code here:

https://github.com/n-tiwari/Activiti-merge-raimana

Let me know if you can/cannot access this 🙂
If you would like, I can upload my code there as well. I just did a very basic merge for the two components with demo and I've tested that.