Re: Missing xpath method error from some classpath disaster or another
Santiago Pericas-Geertsen <[email protected]>
| Newsgroups | gmane.text.xml.xalan.java.user |
|---|---|
| Message-ID | <[email protected]> |
Benson, This could happen if Tomcat is bundling a different version of Xalan than the one you used to compile your webapp. You should check that. You can always bundle your own version of Xalan if classloading is set to support that in Tomcat. The Tomcat user list may be able to help you with that. -- Santiago On Nov 4, 2009, at 8:34 AM, Benson Margulies wrote: > I can provoke the following by trying to use Xalan inside of a Webapp > inside of Tomcat after using the JAXP 1.4 explicit newInstance to > obtain my factory. Confused doesn't begin to describe my reaction. Can > anyone give me a clue? Or a diagnostic procedure? > > java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V > org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207) > org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281) > org.apache.mtomcatbug.Serviette.doGet(Serviette.java:58) > javax.servlet.http.HttpServlet.service(HttpServlet.java:627) > javax.servlet.http.HttpServlet.service(HttpServlet.java:729)