1 Reply Latest reply on Oct 26, 2005 3:13 PM by Alec Lanter

    The absolute uri: http://java.sun.com/jstl/fmt cannot be res

    Matt Parker Newbie

      Hi,

      Using JBoss 4.0.2. I'm having a problem with JSTL when I declare my taglibs using the META-INF method. For example, if I have this in my web.xml:-


      <taglib-uri>/security</taglib-uri>
      <taglib-location>/WEB-INF/lib/security-0.1.jar</taglib-location>


      I get the following stack-trace:-

      14:29:20,317 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/fmt cannot be resolved in either web.xml or the jar files deployed with this application
      at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
      at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
      at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
      at org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
      at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:147)

      However, if I declare it the other way:-


      <taglib-uri>/security</taglib-uri>
      <taglib-location>/WEB-INF/tld/security.tld</taglib-location>


      Then everything works fine.

      I'd prefer to use the first method, as it's neater from the point of view of my build process and the fact that I'm developing various utility modules that will be used across various apps.

      Any ideas?

      Matt