Sunil Katti

Error Message - Failed to create the server from a configuration.

Discussion created by Sunil Katti on Mar 12, 2013
Latest reply on Aug 28, 2015 by neha

The failed to create server... would be the most common error message that Blaze techies have come across. I have had my share too. This one is a bit different though because the error comes only when I am using a tomcat server as opposed to a standalone java. So here's what happens.

1. I run the Blaze with standalone java classes and everything is running fine.

2. I run the Blaze by deploying my java application in tomcat and I get the above error.

 

Is there something related to tomcat/web server that I am missing here?

 

Here's the code snippet that produces this - 

   if(null == server)   {    try     {//     server = (Server)Server.createServer(path + _SERVER_CONFIG);     server = (Server)Server.createServer("file:///C://FarmersPOC//FromLakshmi//RulesProcessor//src//FarmersPOC_Rule_Service_Definition.server") ;    // server = (Server)Server.createServer("file:///F:/lakshmi/Workspace/Farmers_POC/Farmers_POC/build/classes/" + _SERVER_CONFIG);    }         catch (NdLocalServerException e)     {     System.out.println("Error while creating the blaze server configuration!");     e.printStackTrace();    }   }

 The com.farmers.rules.processing.rules.Server class is your regular out-of-the-box sample Blaze server class.

 

Here's the stack trace - 

 

Creating the blaze server configuration!
com.blazesoft.server.local.NdLocalServerException: Server 'FarmersPOC Rule Service Definition' on host 'D-169284'.
Failed to create the server from a configuration.
java.lang.ClassNotFoundException: com.farmers.rules.processing.rules.Server
at com.blazesoft.util.NdExtensibleClassLoader.loadClass(:273)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.blazesoft.objects.java.java2.NdJava2ClassLoaderUtil.classForName(:36)
at com.blazesoft.objects.java2.WjHzRqQ.WjHDKXR(:397)
at com.blazesoft.util.NdJavaExtensibleClassLoadingContext.classForName(:76)
at com.blazesoft.objects.java2.NdDefaultClassLoadingContext.classForName(:120)Error while creating the blaze server configuration!

at com.blazesoft.dynobj.NdFactoryBase.getJavaClass(:339)
at com.blazesoft.dynobj.NdFactoryBase.newInstance(:529)
at com.blazesoft.dynobj.NdDynObjFactory.newInstance(:176)
at com.blazesoft.dynobj.NdFactoryBase.newInstance(:517)
at com.blazesoft.server.config.NdServerFactory.newServer(:70)
at com.blazesoft.server.local.NdLocalServer.createServer(:316)
at com.blazesoft.server.local.NdLocalServer.createServer(:369)
at com.blazesoft.server.local.NdLocalServer.createServer(:348)
at com.farmers.rules.processing.rules.Runner.invokeRules(Runner.java:76)
at com.farmers.rules.processing.driver.ProcessData.generatePdf(ProcessData.java:63)
at org.apache.jsp.FarmersInsurance_jsp._jspService(FarmersInsurance_jsp.java:101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

Outcomes