[ https://issues.apache.org/jira/browse/KARAF-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom Pines closed KARAF-2940. ---------------------------- Resolution: Not a Problem code was missing an import > jsp with jstl taglib not working in karaf 3.0.1 (works in karaf 2.3.4) > ---------------------------------------------------------------------- > > Key: KARAF-2940 > URL: https://issues.apache.org/jira/browse/KARAF-2940 > Project: Karaf > Issue Type: Bug > Components: karaf-webcontainer > Affects Versions: 3.0.1 > Environment: Windows 7; Java build 1.7.0_51-b13; apache-maven-3.2.1 > clean install of karaf-3.0.1 > Reporter: Tom Pines > > Accessing a web page in a war installed within karaf that specifies a tablib > causes the following exception to be written to karaf.log: > "org.apache.jasper.JasperException: /include.jsp(2,62) 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." This is not an issue in > karaf 2.3.4. > -- > To reproduce using a clean install of karaf 3.0.1: > karaf@root()> feature:install war > [[ Drop the war noted below in karaf's deploy folder]] > karaf@root()> web:list > ID | State | Web-State | Level | Web-ContextPath | Name > ------------------------------------------------------------------------------------ > 108 | Active | Deployed | 80 | /hello-jsp | Simple Hello JSP > (0.0.1) > karaf@root()> > ---- > From a browser enter: http://localhost:8181/hello-jsp/index.jsp > -- > Browser output: > HTTP ERROR 500 > Problem accessing /hello-jsp/index.jsp. Reason: > Server Error > Caused by: > org.apache.jasper.JasperException: /include.jsp(2,62) 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 > at > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89) > ----- > war contents: > web.xml > ----------- > <?xml version="1.0" encoding="UTF-8"?> > <web-app> > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > </web-app> > index.jsp > ------------ > <jsp:forward page="home.jsp"/> > home.jsp > ------------ > <jsp:include page="include.jsp"/> > <!DOCTYPE html> > <html> > <body> > <h1>Hello, world!</h1> > </body> > </html> > include.jsp > -------------- > <%-- JSP tag libs --%> > <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> > <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -- This message was sent by Atlassian JIRA (v6.2#6252)