r u sure your jar file is being conflicted with servlet.jar, coz thats only concerned with the servlets and not with XML. I had a similar problem, but it was with jaxp.jar and xerces.jar. The problem arises since the jar files have some common classes in them. When your server starts, all the jar files are loaded in the order of occurence.
 
The parsers implementors should see that the jar files should not contradict each other.
 
Sol: We had to delete jaxp.jar so that xerces.jar files could be included.
 
regards,
Vikram.
-----Original Message-----
From: Seema Kumar [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 14, 2002 9:43 PM
To: [EMAIL PROTECTED]
Subject: Problem faced when both xerces.jar and servlet.jar are in Classpath

Hi all,
 
I am facing a problem when both servlet.jar and xerces.jar are present together in my classpath. The problem being while parsing an XML file using the xerces parser, the jvm throws a noSuchMethod exception for a the DOM class.
 
This problem was worked around by adding xerces at the beginning of the classpath, before servlet.jar. However, when this is done for a web based application, tomcat by default includes all the .jar files in the lib directory in alphabetical order, wherein, servlet.jar comes in before xerces.jar and the parsing fails. I found a temporary workaround by renaming xerces.jar to a_xerces.jar.
But could somebody suggest a more sensible solutiong to this problem ?
 
Thanks in advance
Seema

Reply via email to