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