Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xindice problems...

843834Feb 8 2002 — edited Feb 11 2002
I have been plowing through the WSDP tutorial this afternoon and I am having problem running xindice. This problem has two parts which I must explain before stating what my problem. After running starting the tomcat server, I tried running running the xindice-startup batch file (on Windows 2000) as the tutorial indicates. I got an error stating the following:

[java] javax.xml.parsers.FactoryConfigurationError: java.lang.ClassNotFound
Exception: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
[java] at javax.xml.parsers.DocumentBuilderFactory.newInstance(Document
BuilderFactory.java:149)
[java] at org.apache.xindice.server.Kernel.<init>(Unknown Source)
[java] at org.apache.xindice.server.Xindice.main(Unknown Source)
[java] Exception in thread "main"
[java] Java Result: 1

BUILD SUCCESSFUL


I never really resolved the issue. I managed to get the xindice database running by mapping the commands in the xindice.xml file to the command prompt. The commandline ended up as follows:

java -Xms16m -Dxindice.home=C:\jwsdp-1_0-ea1\tools\xindice -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl org.apache.xindice.server.Xindice

My classpath contains all the jar files located in directories c:\jwsdp-1_0-ea1\common\lib and c:\jwsdp-1_0-ea1\tools\xindice\java\lib. The database seemingly runs fine. I get the following output:


Xindice 1.0rc1 (DarkHorse)

Database: 'db' initializing
Script: 'GET' added to script storage
Service: 'db' started
Service: 'GopherServer' started @ gopher://FlatBug:4070/
Service: 'HTTPServer' started @ http://FlatBug:4080/
Service: 'APIService' started

Server Running


When I tried running indri to test the xindice database, I get the following error:


ERROR: org.xmldb.api.base.XMLDBException while connecting: A connection to the Database instance 'db' could not be created. Error: http://localhost:4080/db_boot
strap.ior
error in storing document: failed to initialize DB: aborting connection attempt.

java.lang.RuntimeException: failed to initialize DB: aborting connection attempt
.



Does anyone have any ideas why I would be getting this exception? Is this error related somehow to the problem I am having running the xindice-start.bat file?

One thing that puzzles me is that a couple of my co-workers have been able to execute these commands without any problems on their machines. Any help would greatly be appreciated.

-Kyle
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2002
Added on Feb 8 2002
3 comments
190 views