Mark Diggory wrote:
I've been playing around with starting Xindice from within an init method of a servlet I'm using the system.xml provided in the source and trying to Instantiate my own Kernel, like so:
public void init(ServletConfig config) throws ServletException { super.init(config);
System.out.println(); System.out.println(Title+" "+Version+" ("+Codename+")"); System.out.println();
ServletContext ctx = config.getServletContext(); String path = ctx.getRealPath("");
if(kernel == null){ File cfg = new File(path, "/WEB-INF/conf/system.xml"); kernel = new org.apache.xindice.server.Kernel(cfg.getAbsolutePath()); }
System.out.println(kernel.toString()); }
My problem is I'm getting a "Please set the openorb.home property".
What is 'openorb.home', and what should it be set to?
Can this just be set in the System.properties of the JVM as opposed to the Environment of the server?
-Mark Diggory
Ok, I set openorb.home in the System.properties such that it points to my xindice home directory(Which is currently modified to be in my servlet web-applications WEB-INF directory).
When I started up i got:
java.io.IOException couldn't find /config/OpenORB.xml so I dug around and found it in the openorb jar file (default.xml as well was being looked for).
Now I startup and it seems the HTTP service starts up ok, no exceptions from the corba service.
now when the API Service starts up I get a java.lang.NullPointer exception and a note after that:
DEBUG> most likely you CORBA NAming Service couldn't be reached.
Any pointers would be helpful.
-Mark Diggory
