Bug 16226

Summary: XPath in JSTL1.0.3 causes exceptions
Product: Taglibs Reporter: Prasad Subramanian <prasad.subramanian>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED INVALID    
Severity: critical    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Prasad Subramanian 2003-01-17 22:20:00 UTC
While using XPATH with JSTL Tags the following error is thrown :
</pre></p><p><b>root cause</b> <pre>java.lang.NoSuchMethodError: org.jaxen.BaseX
Path.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
      at org.jaxen.dom.DOMXPath.<init>(DOMXPath.java:101)
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil.parse(XPathUtil.
java:285)
      at org.apache.taglibs.standard.tag.common.xml.XPathUtil.booleanValueOf(X
PathUtil.java:246)
      at org.apache.taglibs.standard.tag.common.xml.IfTag.condition(IfTag.java
:93)
      at javax.servlet.jsp.jstl.core.ConditionalTagSupport.doStartTag(Conditio
nalTagSupport.java:122)
      at org.apache.jsp.status_0005freview_0005fproj_0005fxml$jsp._jspService(
status_0005freview_0005fproj_0005fxml$jsp.java:270)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:201)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
81)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:646)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:483)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:646)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:471)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:644)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:483)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2349)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:646)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:644)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:171)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:644)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:483)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:646)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
469)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:644)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:483)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:405)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:376)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:508)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:518)
      at java.lang.Thread.run(Thread.java:536)
</pre></p><HR size="1" noshade><h3>Java Web Services Developer Pack/1.1-fcs</h3>
</body></html>]]>

============

To get a test case contact prasad.subramanian@sun.com

This happens when a XPath expression is used with XML tags
Comment 1 Pierre Delisle 2003-01-21 21:38:13 UTC
Jar files conflicts created that problem. If jar files in the webapp
have priority, then everything works fine.