3 Replies Latest reply on Jun 14, 2005 1:38 PM by 800345

    JSTL Exception

    843836
      Hi,
      I have copied the jstl.jsr into my web application's lib. directory. But still i get this exception. please help.

      org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
           at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:194)
           at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
           at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1159)
           at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:755)
           at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:121)
           at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
           at org.apache.jasper.compiler.Parser.parse(Parser.java:1133)
      Thanks in advance,
      Phani
        • 1. Re: JSTL Exception
          800345
          Which version of JSTL did you download?

          That URI you used:
          http://java.sun.com/jsp/jstl/core
          is JSTL 1.1, and should be used with Tomcat 5+.

          If you have JSTL1.0 (which you should have if you have Tomcat 4) then use:
          http://java.sun.com/jstl/core
          See the missing /jsp?

          Anyway, make sure you have the right version for your server, and the right URI for your version.

          (if you are not using Tomcat, then chances are you should use the JSTL 1.0 version, to double check, look in your web.xml. If it uses a DOCTYPE tag to define a 2.3 servlet version, use JSTL1.0. If it uses web-app xmlns:..... to define a 2.4 servlet version use JSTL 1.1. If this is too confusing, assume JSTL 1.0)
          • 2. Re: JSTL Exception
            843836
            Hi Steve,
            Im using Tomcat 4.0.1 and have just downloaded and copied JSTL1.0 to the lid folder of my app.
            and have used <%@ taglib prefix="c" uri="http//java.sun.com/jstl/core" %>
            I still get this error.

            org.apache.jasper.JasperException: File "/http//java.sun.com/jstl/core" not found
                 at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:214)
                 at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)

            Thanks ,
            Phani
            • 3. Re: JSTL Exception
              800345
              Hi Steve,
              Im using Tomcat 4.0.1 and have just downloaded and
              copied JSTL1.0 to the lid folder of my app.
              and have used <%@ taglib prefix="c"
              uri="http//java.sun.com/jstl/core" %>
              I still get this error.

              org.apache.jasper.JasperException: File "/http//java.sun.com/jstl/core" not found
              So why does it have:
              "/http://java.sun.com/jstl/core"
              See that leading /? It shouldn't be there. Check your web.xml, you don't have any taglib definitions in there, do you?

              If this doesn't help, I would start from scratch. Make a new web application, put the jstl.jar and standard.jar from your download into the WEB-INF/lib directory, then start writing the JSPs to test it.

              And don't forget to re-start tomcat.