AnsweredAssumed Answered

Caused by: java.lang.NoClassDefFoundError: com/blazesoft/server/deploy/manager/NdDeploymentManagerException thrown while creating dmanager

Question asked by srikanthsriram on Mar 30, 2017
Latest reply on Apr 3, 2017 by Jeremy Chen

**************************************Urgent, Please help****************************************************

Environment:

JBOSS 7.0

Blaze 7.3

Java 1.8

 

I developed a simple hello world project for our POC. I used blaze to generate the .adb. , .server, Runner, Dmanager, Client and Server classes. I built a REST API and i'm  using the blaze generated classes to consume the adb file in the REST API.

 

When I try to run the application as Standalone its working fine and i'm getting proper results. But when I deploy it in the JBOSS application server I'm getting a runtime exception  when its creating the Dmanager.

Below is the exception. I added all the jars that are required but still I couldn't find why its throwing this exception.

 

Caused by: java.lang.NoClassDefFoundError: com/blazesoft/server/deploy/manager/NdDeploymentManagerException

at com.defaults.Runner.runExample(Runner.java:76)

at com.thehartford.pl.rules.rest.UIRulesController.getUIData(UIRulesController.java:65)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)

... 61 more

Caused by: java.lang.ClassNotFoundException: com.blazesoft.server.deploy.manager.NdDeploymentManagerException from [Module "deployment.pl_rules.war:main" from Service Module Loader]

at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)

at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)

at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)

at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)

... 74 more

 

I see the below response from my Rest API

{ "timestamp": 1490895365864, "status": 500, "error": "Internal Server Error", "exception": "java.lang.NoClassDefFoundError", "message": "ServletException occured while logging", "path": "/api/v1/rulesUI/rules" }

Outcomes