aspose file tools
The moose likes Servlets and the fly likes tomcat-3.2.3: NoSuchMethodError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat-3.2.3: NoSuchMethodError" Watch "tomcat-3.2.3: NoSuchMethodError" New topic

tomcat-3.2.3: NoSuchMethodError

Liza Boa

Joined: Aug 16, 2001
Posts: 23
I developped a piece of code and would like to wrap it in a servlet. When testing the program from the commandline (using main), everything works fine. But whet I test it from the servlet, I get a NoSuchMethodError.
I'm wondering if this could be a classpath-issue, due to the fact that tomcat uses it's own jars?
Thanx for every hint!
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$
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16759

Yep, I'd check out the CLASSPATH. The rules on what gets into a JSP/servlet's CLASSPATH change from Tomcat 3 to Tomcat 4, and I believe that conflicts with different DOM classes may have been one of the reasons why!

Customer surveys are for companies who didn't pay proper attention to begin with.
Nata Van

Joined: Aug 06, 2001
Posts: 3
move xerces.jar into the tomcat's lib directory and delete the dom1 parsers parser.jar and jaxp.jar (or rename them in z_parser.jar and z_jaxp.jar., but tomcat-3.x should only use one xml parser.
I agree. Here's the link:
subject: tomcat-3.2.3: NoSuchMethodError