I'm wondering whether Xindice can be started from within a Java program,
as opposed to just running a .bat file?
There is a bizzare reason why I want to do this, but it's too
complicated to include here...

The startup.bat xindice 1.0 distribution file 'loads' (to use old
Spectrum/Commodore 64 terms!) Xindice in a DOS window (java console),
with the following command:

...
java -Xms16m -Xmx128m -Dxindice.home=%XINDICE_HOME% -classpath
"%LOCALCLASSPATH%" -noverify org.apache.xindice.server.Xindice
%XINDICE_HOME%\config\system.xml
...

Can one not just 'load' Xindice server by the following Java
statements?:

        String [] s = new String[1];
        s[0] = "%XINDICE_HOME%..\\config\\system.xml";
        org.apache.xindice.server.Xindice.main(s);
        

Where %XINDICE_HOME%.. is an absolute path to the system.xml file.
Assuming Xindice is installed properly...

When I try it it gives me the following nasty error:


Xindice 1.0 (Birthday)

Database: 'db' initializing
ERROR: Couldn't create log file 'null/./logs/Xindice.log'
Script: 'GET' added to script storage
Service: 'db' started
ERROR: Could not start service 'HTTPServer'
DEBUG> APIService: org.omg.CORBA.INITIALIZE: can't instantiate default
ORB imple
mentation org.openorb.CORBA.ORB  vmcid: 0x0  minor code: 0  completed:
No
DEBUG>
org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
org.openo
rb.CORBA.ORB  vmcid: 0x0  minor code: 0  completed: No
        at org.omg.CORBA.ORB.create_impl(ORB.java:308)
        at org.omg.CORBA.ORB.init(ORB.java:345)
        at
org.apache.xindice.server.services.APIService.start(APIService.java:1
87)
        at
org.apache.xindice.server.standard.StdServiceManager.startServices(St
dServiceManager.java:131)
        at
org.apache.xindice.server.Kernel.startServices(Kernel.java:464)
        at org.apache.xindice.server.Kernel.<init>(Kernel.java:158)
        at org.apache.xindice.server.Kernel.<init>(Kernel.java:117)
        at org.apache.xindice.server.Xindice.main(Xindice.java:96)
        at xest.webinterface.utilities.Engine.main(Engine.java:181)
DEBUG> Most likely your CORBA naming service couldn't be reached.
Service: 'APIService' started
ERROR: Could not start service 'HTTPServer4080'
FATAL ERROR: Service manager could not be started
Press any key to continue...

cheers

Reply via email to