On Friday, March 1, 2002, at 08:44 AM, Anders Conrad wrote:

Hello everyone.
Thanks for the new rc2 release! I upgraded and mostly everything works,
including standalone java programs.
However one strange problem arises in an application running under
Cocoon/Tomcat and accessing Xindice through XSP and the java interface. This
worked with 1.0b4 but fails after the upgrade.
When the Xindice query is activated, I get the following error stack:

It looks like you're either missing a jar, or one of the jars is being loaded by the wrong classloader in Tomcat.



java.lang.NoSuchMethodError
at org.apache.xindice.xml.dom.DOMParser.getSAXParser(Unknown Source)
at org.apache.xindice.xml.dom.DOMParser.<init>(Unknown Source)
at org.apache.xindice.xml.dom.DOMParser.toDocument(Unknown Source)
at org.apache.xindice.xml.SymbolTableSymbols.<init>(Unknown Source)
at org.apache.xindice.xml.SymbolTableSymbols.getInstance(Unknown Source)
at org.apache.xindice.client.corba.SymbolDeserializer.<clinit>(Unknown
Source)
at org.apache.xindice.client.xmldb.CollectionImpl.<init>(Unknown Source)
at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(Unknown
Source)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
at
_opt._jakarta._webapps._cocoon._diplo._xml._5_075.diploQuery(_5_075.java:
43)
etc.
That would be the line from where my program issues the statement
col = DatabaseManager.getCollection("xmldb:xindice:///db/diplo");


If I push the reload button in the browser, I get a slightly different error
stack the second and subsequent times:


java.lang.NoClassDefFoundError
at org.apache.xindice.client.xmldb.CollectionImpl.<init>(Unknown Source)
at org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(Unknown
Source)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:194)
at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:157)
at
_opt._jakarta._webapps._cocoon._diplo._xml._5_075.diploQuery(_5_075.java:
43)


Can anyone give me a hint as to what might be wrong?

I have assumed it to be a classpath problem since the classpath is not
exactly the same under tomcat as when running standalone programs. But
struggling with all possible solution possibilities have been to no help.

Suse Linux 7.3, Tomcat 3.2.3, Cocoon 1.8.2, Xindice 1.0.rc2, Sun JDK 1.3.
1.

Any suggestions highly appreciated!

Anders

Anders Conrad, cand.mag.
Det Danske Sprog- og Litteraturselskab
Christians Brygge 1, 1.
1219 K�benhavn K
Tlf. 33 13 06 60, fax: 33 14 06 08, e-post: [EMAIL PROTECTED]


Kimbro Staken - http://www.kstaken.org - http://www.xmldatabases.org
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org
Senior Technologist (Your company name here)



Reply via email to