You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Mark Diggory <md...@latte.harvard.edu> on 2002/02/22 21:01:39 UTC

openorb.home ...

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







Re: openorb.home ...

Posted by Mark Diggory <md...@latte.harvard.edu>.

Mark Diggory wrote:

> 
> 
> 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
> 

I think I got it. xindice.home was not set in my System.properties.

Everything seems to have started, db_bootstrap.ior is present and found 
in my docs directory.

-Mark





Re: openorb.home ...

Posted by Mark Diggory <md...@latte.harvard.edu>.

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