2 Replies Latest reply on Sep 23, 2004 5:21 AM by gioalhaz

    JSTL problem with x:out

    khem Newbie

      Hi all :

      I have an xml file in /test.xml which looks like this :

      <recordset>
      <record begin="20040701 00" count="114" end="20040702 00" />
      <record begin="20040702 00" count="107" end="20040703 00" />
      </recordset>
      


      and I tried to render it by using the xml jstl tag. So my jsp looks like :
      <%@ page session="false"%>
      <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
      <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
      <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
      <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>
      <c:import var="xmlfile"
      url="/test.xml" />
      <x:parse var="doc" xml="${xmlfile}" />
      Test : <br>
      <x:out select="$doc/recordset/record" />
      

      but when I test my jsp, I ve the following error :
      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: org/jaxen/dom/DOMXPath
       org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
       org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
       org.apache.jsp.test_jsp._jspService(test_jsp.java:80)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      
      root cause
      
      java.lang.NoClassDefFoundError: org/jaxen/dom/DOMXPath
       org.apache.taglibs.standard.tag.common.xml.XPathUtil.valueOf(XPathUtil.java:237)
       org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(ExprSupport.java:102)
       org.apache.taglibs.standard.tag.el.xml.ExprTag.doStartTag(ExprTag.java:103)
       org.apache.jsp.test_jsp._jspx_meth_x_out_0(test_jsp.java:139)
       org.apache.jsp.test_jsp._jspService(test_jsp.java:70)
       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
      Apache Tomcat/5.0.26
      


      I ve in my lib directory the jstl.jar and standard.jar ...

      Can anyone knows how to fix my problem?

      thx for any helps! :)