problem with xercesImpl.jar  
Author Message
s_machin





PostPosted: 2003-11-4 8:56:00 Top

java-programmer, problem with xercesImpl.jar I'm deploying a simple XML parsing servlet using the latest
2.5.0 xerces jars in it's lib directory.

This servlet runs fine on my local machine, but when I deploy it
to the production server, the JRE throws a java.lang.NoSuchMethodError
for the method
method parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V not found

This method is definitely in the latest xerces jar, so I'm guessing
it's picking up an obsolete jar file somewhere before the current
jar in the classpath.

Unfortunately I have little control over the production server, so
can anyone suggest how I can force xerces to use the actual
latest library?

Thanks,
Sean
 
David Baer





PostPosted: 2003-11-4 22:05:00 Top

java-programmer >> problem with xercesImpl.jar can you manipulate the CLASSPATH-variable of your production server?

make sure the 2.5-version is in the classpath.

d.

sean wrote:

> I'm deploying a simple XML parsing servlet using the latest
> 2.5.0 xerces jars in it's lib directory.
>
> This servlet runs fine on my local machine, but when I deploy it
> to the production server, the JRE throws a java.lang.NoSuchMethodError
> for the method
> method parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V
> not found
>
> This method is definitely in the latest xerces jar, so I'm guessing
> it's picking up an obsolete jar file somewhere before the current
> jar in the classpath.
>
> Unfortunately I have little control over the production server, so
> can anyone suggest how I can force xerces to use the actual
> latest library?
>
> Thanks,
> Sean