Do you have the source code,if you have you can modify the following java file.
which is in Java directory
/java/src/org/apache/xxindice/server/service/APIService.java.
Change
private static final String SINGLETON = "singleton"
to
private static final String SINGLETON = "singletonclass"
and add the following line
System.setProperty("org.omg.CORBA.ORBSingletonClass",
"org.openorb.CORBA.ORBSingleton");
after this line.
orbConfig.put("org.omg.CORBA,ORBSingletoonClass",corba.getAttribute(SINGLETON));
Thanks
Mohan
Umit VARDAR wrote:
> Hello all,
>
> I 've downloaded Xindice 1.0RC1 and tried to run it. I am getting the
> following error:
>
> c:\xindice >startup
> java -classpath
> "c:\Xindice\java\lib\Xindice.jar;c:\Xindice\java\lib\ant-1.4.1.jar;c:\Xindic
> e\java\lib\examples.jar;c:\Xindice\java\lib\infozone-tools.jar;c:\Xindice\ja
> va\lib\openorb-1.2.0.jar;c:\Xindice\java\lib\openorb_tools-1.2.0.jar;c:\Xind
> ice\java\lib\servlet.jar;c:\Xindice\java\lib\xalan-2.0.1.jar;c:\Xindice\java
> \lib\xerces-1.4.3.jar;c:\Xindice\java\lib\xindice.jar;c:\Xindice\java\lib\xm
> l-apis-1.0.jar;c:\Xindice\java\lib\xmldb-sdk.jar;c:\Xindice\java\lib\xmldb-x
> update.jar;c:\Xindice\java\lib\xmldb.jar;c:\jdk1.3.1\lib\tools.jar" -noverif
> y org.apache.xindice.core.server.Xindice c:\Xindice\config\system.xml
>
> Xindice 1.0rc1 (DarkHorse)
>
> Database: 'db' initializing
> Script: 'GET' added to script storage
> Service: 'db' started
> Service: 'GopherServer' started @ gopher://vardar:4070/
> Service: 'HTTPServer' started @ http://vardar:4080/
> Service: 'APIService' started
> DEBUG> APIService: org.omg.CORBA.INITIALIZE: Unable to complete init orb
> singleton is not openorb singleton.
> Please use: System.setProperty("org.omg.CORBA.ORBSingletonClass",
> "org.openorb.CORBA.ORBSingleton");
> As the first statement in your application. minor code: 0 completed: No
> DEBUG>
> org.omg.CORBA.INITIALIZE: Unable to complete init orb singleton is not
> openorb singleton.
> Please use: System.setProperty("org.omg.CORBA.ORBSingletonClass",
> "org.openorb.CORBA.ORBSingleton");
> As the first statement in your application. minor code: 0 completed: No
> at org.openorb.CORBA.kernel.OpenORBLoader.init(OpenORBLoader.java:105)
> at org.openorb.CORBA.ORB.set_parameters(ORB.java:646)
> at org.omg.CORBA.ORB.init(ORB.java:353)
> at org.apache.xindice.server.services.APIService.start(Unknown Source)
> at
> org.apache.xindice.server.standard.StdServiceManager.startServices(Unknown
> Source)
> at org.apache.xindice.server.Kernel.startServices(Unknown Source)
> at org.apache.xindice.server.Kernel.<init>(Unknown Source)
> at org.apache.xindice.server.Xindice.main(Unknown Source)
> DEBUG> Most likely your CORBA naming service couldn't be reached.
> Server Running
>
> Any ideas.
>
> Regards.
> Umit VARDAR