tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathalie Pult <s9292...@access.unizh.ch>
Subject NoSuchMethodError; a parser issue?
Date Wed, 17 Oct 2001 13:05:42 GMT
Hello
Testing my servlet on tomcat-3.2.3 results in a NoSuchMethodError. 
When testing the program from the commandline (using main), everything works 
fine.
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 
xerces.jar.
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.)

StackTrace:
java.lang.NoSuchMethodError
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.addNode(DOM2DTM.java:262)
at org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(DOM2DTM.java:151)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(ETMManagerDefault.java:189)
at org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode
(DTMMangerDefault.java:438)
at org.apache.xpath.XPathContext.getDTMHandleFromNode(XPathContext.java:195)
at org.apache.xpath.XPathAPI.eval(XPathAPI.java:274)
at org.apache.xpath.XPathAPI.selectNodeIterator(XPathAPI.java:124)
at org.apache.xpath.XPathAPI.selectSingleNode(XPathAPI.java:104)
at NextSide.determineNextSide(NextSide.java:116)
at NextSide.<init>(NextSide.java:99)
at UserInfo.userInfo(UserInfo.java:157)
at ModulServlet.doGet(ModulServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:758)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416(
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)

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

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




Mime
View raw message