JSP 2.1 jstl problem with fmt library

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JSP 2.1 jstl problem with fmt library

Rene737
Hello all,

I am having the following problem with a jsp site that uses fmt from the JSTL library.

installed jetty: jetty-6.1.18.jar
Class-Path: ../lib/commons-cli-1.1.jar ../lib/commons-codec-1.3.jar ../lib/commons-io-1.4.jar ../lib/commons-fileupload-1.2.1.jar ../lib/commons-httpclient-3.1.jar ../lib/commons-logging-1.1.jar ../lib/commons-net-2.0.jar ../lib/commons-net-ftp-2.0.jar ../lib/jcommon-0.7.2.jar ../lib/jetty-6.1.18.jar ../lib/jetty-util-6.1.18.jar ../lib/junit-4.5.jar ../lib/log4j-1.2.15.jar ../lib/servlet-api-2.5-20081211.jar ../lib/upnp-stack-1.8.0.jar ../lib/ws-commons-util-1.0.2.jar ../lib/xmlrpc-client-3.1-javadoc.jar ../lib/xmlrpc-client-3.1-sources.jar ../lib/xmlrpc-client-3.1.jar ../lib/xmlrpc-common-3.1-javadoc.jar ../lib/xmlrpc-common-3.1-sources.jar ../lib/xmlrpc-common-3.1.jar ../lib/xmlrpc-server-3.1-javadoc.jar ../lib/xmlrpc-server-3.1-sources.jar ../lib/xmlrpc-server-3.1.jar ../lib/jsp-2.1/ant-1.6.5.jar ../lib/jsp-2.1/core-3.1.1.jar ../lib/jsp-2.1/jsp-2.1-glassfish-9.1.1.B60.25.p0.jar ../lib/jsp-2.1/jsp-2.1-jetty-6.1.18.jar ../lib/jsp-2.1/jsp-api-2.1-glassfish-9.1.1.B60.25.p0.jar

error:
HTTP ERROR 500

Problem accessing /login.jsp. Reason:

    /login.jsp(1,63) PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

Caused by:

org.apache.jasper.JasperException: /login.jsp(1,63) PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

in the jsp site login.jsp

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<jsp:include page="html/general/index.jsp"/>

web.xml:

<web-app
   xmlns="http://java.sun.com/xml/ns/javaee" 
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
   metadata-complete="true"
   version="2.5"> 


 
 
 
  <context-param>
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
    <param-value>locale</param-value>
  </context-param>

....

  <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>MyRealm</realm-name>
       <form-login-config>
           <form-login-page>/login.jsp</form-login-page>
           <form-error-page>/error.jsp</form-error-page>
       </form-login-config>
  </login-config>

  <security-constraint>
    <display-name>ProtectEverything</display-name>
    <web-resource-collection>
        <web-resource-name>ProtectEverything</web-resource-name>
        <url-pattern>*.*</url-pattern>
        <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
        <role-name>admin</role-name>
    </auth-constraint>
  </security-constraint>

  <security-constraint>
    <web-resource-collection>
        <web-resource-name>ExcludeLoginPage</web-resource-name>
        <url-pattern>/login.jsp</url-pattern>
        <url-pattern>/html/css/*</url-pattern>
        <url-pattern>/html/img/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
        <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>
  </security-constraint>

....

Does anyone have a hint on this issue? It would be very appreciated...