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 Matthew Van Horn <ho...@accesstech.com> on 2003/01/28 07:50:03 UTC

Xindice.war- xerces?

I copied my Xindice.war file from one machine to another, and I am 
getting an error during deployment.
The error is javax.servlet.ServletException: XML-RPC support requires 
Xerces.
Root cause is java.lang.ClassNotFoundException: SAX driver not found: 
org.apache.xerces.parsers.SAXParser

The things is, I looked, and the lib secion of the web app has 
xercesImpl-2.1.0.jar, and that jar has a 
org/apache/xerces/parsers/SAXParser.class

Any ideas for me? Do I need xerces somewhere else in my class path?

Thanks for your help.

matt


Re: Xindice.war- xerces?

Posted by Dieter <ba...@q-dsl.de>.
If you are using JDK1.4, then I think this is the way to go. But if you 
want you can also drop Xerces and use the Crimson parser (the XML parser 
contained in the JDK1.4).
I think this topic is also discussed in more detail elsewhere. Try to 
search the web for something like "jdk 1.4 xml parser endorsed"

Matthew Van Horn wrote:
> I think this is it - I copied the lib files to the java ext directory 
> (quick & dirty, I know) and it seems to work.) I guess JBoss/Tomcat is 
> loading the ParserFactory first.
> 
> If this is in fact the case, what is the proper solution, versus my very 
> crude but somewhat effective one?
> 
> Thanks for the help.
> 
> Matt
> 
> On Wednesday, January 29, 2003, at 05:45 AM, Dieter wrote:
> 
>> Hi Matthew,
>> this could be a classloader problem. The problem "could" occur if you 
>> use a ParserFactory which is loaded by a classloader before your 
>> webapp (e.g. JDK1.4, or some libs from tomcats common directory). Then 
>> it's the responsibility of the classloader that loaded the Factory 
>> class to load the desired Implementation class. This classloader 
>> doesn't see any of your webapp libs => ClassNotFound.
>>
>>
>> Matthew Van Horn wrote:
>>
>>> I copied my Xindice.war file from one machine to another, and I am 
>>> getting an error during deployment.
>>> The error is javax.servlet.ServletException: XML-RPC support requires 
>>> Xerces.
>>> Root cause is java.lang.ClassNotFoundException: SAX driver not found: 
>>> org.apache.xerces.parsers.SAXParser
>>> The things is, I looked, and the lib secion of the web app has 
>>> xercesImpl-2.1.0.jar, and that jar has a 
>>> org/apache/xerces/parsers/SAXParser.class
>>> Any ideas for me? Do I need xerces somewhere else in my class path?
>>> Thanks for your help.
>>> matt
>>
>>
>>
> 
> 



Re: Xindice.war- xerces?

Posted by Matthew Van Horn <ho...@accesstech.com>.
I think this is it - I copied the lib files to the java ext directory 
(quick & dirty, I know) and it seems to work.) I guess JBoss/Tomcat is 
loading the ParserFactory first.

If this is in fact the case, what is the proper solution, versus my 
very crude but somewhat effective one?

Thanks for the help.

Matt

On Wednesday, January 29, 2003, at 05:45 AM, Dieter wrote:

> Hi Matthew,
> this could be a classloader problem. The problem "could" occur if you 
> use a ParserFactory which is loaded by a classloader before your 
> webapp (e.g. JDK1.4, or some libs from tomcats common directory). Then 
> it's the responsibility of the classloader that loaded the Factory 
> class to load the desired Implementation class. This classloader 
> doesn't see any of your webapp libs => ClassNotFound.
>
>
> Matthew Van Horn wrote:
>> I copied my Xindice.war file from one machine to another, and I am 
>> getting an error during deployment.
>> The error is javax.servlet.ServletException: XML-RPC support requires 
>> Xerces.
>> Root cause is java.lang.ClassNotFoundException: SAX driver not found: 
>> org.apache.xerces.parsers.SAXParser
>> The things is, I looked, and the lib secion of the web app has 
>> xercesImpl-2.1.0.jar, and that jar has a 
>> org/apache/xerces/parsers/SAXParser.class
>> Any ideas for me? Do I need xerces somewhere else in my class path?
>> Thanks for your help.
>> matt
>
>


Re: Xindice.war- xerces?

Posted by Dieter <ba...@q-dsl.de>.
Hi Matthew,
this could be a classloader problem. The problem "could" occur if you 
use a ParserFactory which is loaded by a classloader before your webapp 
(e.g. JDK1.4, or some libs from tomcats common directory). Then it's the 
responsibility of the classloader that loaded the Factory class to load 
the desired Implementation class. This classloader doesn't see any of 
your webapp libs => ClassNotFound.


Matthew Van Horn wrote:
> I copied my Xindice.war file from one machine to another, and I am 
> getting an error during deployment.
> The error is javax.servlet.ServletException: XML-RPC support requires 
> Xerces.
> Root cause is java.lang.ClassNotFoundException: SAX driver not found: 
> org.apache.xerces.parsers.SAXParser
> 
> The things is, I looked, and the lib secion of the web app has 
> xercesImpl-2.1.0.jar, and that jar has a 
> org/apache/xerces/parsers/SAXParser.class
> 
> Any ideas for me? Do I need xerces somewhere else in my class path?
> 
> Thanks for your help.
> 
> matt
> 
>