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 Anders Conrad <ac...@dsl.dk> on 2002/03/01 16:44:58 UTC

Application problem after upgrading

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:

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: ac@dsl.dk


Re: Application problem after upgrading

Posted by Anders Conrad <ac...@dsl.dk>.
Thank you for the suggestion! The problem was incompabilities with an older
Xerces version that came with Cocoon. Copying the Xerces jar from Xindice to
Tomcat seems to work for both Xindice and Cocoon (a bit of luck required
sometimes).

I appreciate that you have worked on fixing the indexing problems in rc2 and
I am looking forward to see the results.

Anders
----- Original Message -----
From: "Kimbro Staken" <ks...@xmldatabases.org>
To: <xi...@xml.apache.org>
Sent: Monday, March 04, 2002 5:55 AM
Subject: Re: Application problem after upgrading



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: ac@dsl.dk
>
>
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)


Re: Application problem after upgrading

Posted by Kimbro Staken <ks...@xmldatabases.org>.
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: ac@dsl.dk
>
>
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)