tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathalie Pult <>
Subject NoSuchMethodError; a parser issue?
Date Wed, 17 Oct 2001 13:05:42 GMT
Testing my servlet on tomcat-3.2.3 results in a NoSuchMethodError. 
When testing the program from the commandline (using main), everything works 
This makes my think that it could be a matter of not using the appropriate 
parser, since tomcat-3.2.3 uses parser.jar, but I developped the code with 
I'm not sure if this really is the problem, but if it is, is there a 
possibility to load xerces.jar before the DOM-level-1 parser? I tried to put 
xerces.jar in the classes directory under ROOT/WEB-INF, since it seems that 
tomcat loads this directory before it's internal jars, but it didn't work.

Thanx for every hint!

(Please send answers directly to my email-adress, since I'm not on the list.)

at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode
at org.apache.xpath.XPathContext.getDTMHandleFromNode(
at org.apache.xpath.XPathAPI.eval(
at org.apache.xpath.XPathAPI.selectNodeIterator(
at org.apache.xpath.XPathAPI.selectSingleNode(
at NextSide.determineNextSide(
at NextSide.<init>(
at UserInfo.userInfo(
at ModulServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServletWrapper.doService(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ContextManager.internalService
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
at org.apache.tomcat.service.TcpWorkerThread.runIt(
at org.apache.tomcat.util.ThreadPool$

The "non-existing" Method:
		if (XPathAPI.selectSingleNode(Document d_file, String 
s).hasChildNodes()) {}

and further down:
	    	if (Node n_pair.hasAttributes()) {}				

View raw message