[Restlet] ServerServlet: component class is null

I am using JBoss EAP 6.4 and BonitaBPMCommunity-7.0.1-deploy on Java 8
I followed all the steps in the installation I am getting successful start of server as shown below …
06:33:12,021 INFO [org.bonitasoft.engine.EngineInitializer] (ServerService Thread Pool – 58) Platform started successfully
06:33:12,021 INFO [org.bonitasoft.engine.EngineInitializer] (ServerService Thread Pool – 58) Initialization of Bonita Engine done! ( took 7236ms)
06:33:12,205 INFO [org.jboss.as.server] (ServerService Thread Pool – 27) JBAS015859: Deployed “bonita-all-in-one-7.0.1.ear” (runtime-name : “bonita-all-in-one-7.0.1.ear”)
06:33:12,253 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
06:33:12,254 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
06:33:12,254 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) started in 12913ms - Started 643 of 682 services (63 services are lazy, passive or on-demand)

BUT when press login button using “install” /“install” user I get error shown below …

06:35:14,046 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/bonita]] (http-/127.0.0.1:8081-2) RestletServlet: [Restlet] ServerServlet: component class is null
06:35:14,050 ERROR [stderr] (http-/127.0.0.1:8081-2) Handler java.util.logging.ConsoleHandler is not defined
06:35:14,067 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/bonita].[RestletServlet]] (http-/127.0.0.1:8081-2) JBWEB000235: Allocate exception for servlet RestletServlet: java.lang.ClassNotFoundException: com.sun.net.httpserver.HttpHandler from [Module “deployment.bonita-all-in-one-7.0.1.ear.bonita.war:main” from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.6.Final-redhat-1]
at org.restlet.engine.Engine.registerDefaultConnectors(Engine.java:839) [org.restlet-2.3.1.jar:]
at org.restlet.engine.Engine.discoverConnectors(Engine.java:655) [org.restlet-2.3.1.jar:]
at org.restlet.engine.Engine.(Engine.java:488) [org.restlet-2.3.1.jar:]
at org.restlet.engine.Engine.register(Engine.java:379) [org.restlet-2.3.1.jar:]
at org.restlet.engine.Engine.register(Engine.java:365) [org.restlet-2.3.1.jar:]
at org.restlet.engine.Engine.getInstance(Engine.java:249) [org.restlet-2.3.1.jar:]
at org.restlet.engine.Engine.getLogger(Engine.java:313) [org.restlet-2.3.1.jar:]
at org.restlet.Context.(Context.java:158) [org.restlet-2.3.1.jar:]
at org.restlet.Context.(Context.java:130) [org.restlet-2.3.1.jar:]
at org.restlet.ext.servlet.ServerServlet.createComponent(ServerServlet.java:429) [org.restlet.ext.servlet-2.3.1.jar:]
at org.restlet.ext.servlet.ServerServlet.getComponent(ServerServlet.java:842) [org.restlet.ext.servlet-2.3.1.jar:]
at org.restlet.ext.servlet.ServerServlet.init(ServerServlet.java:960) [org.restlet.ext.servlet-2.3.1.jar:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:950) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:152) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_40]

06:35:14,121 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/bonita]] (http-/127.0.0.1:8081-3) RestletServlet: [Restlet] ServerServlet: component class is null

It seems that issue is related to Restlet (library used by Bonita Portal) failing to load a Java class that is part of Java standard library.

You might want to give a try to solution proposed in this stackoverflow answer .

Can you let us know if you manage to successfully run Bonita BPM on JBoss EAP 6.4?
Did you have to do more trick then the one mention below?

Thanks a lot for your feedback.

Thanks for the prompt response.
It the stackoverflow answer helped :slight_smile: