[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - jsp jstl problem
cooperbry
do-not-reply at jboss.com
Thu Sep 28 10:49:54 EDT 2006
Hi Everyone,
I'm trying to run the hello1 jsp example application that comes with the javaee tutorial. I war up the directory and I get the following error in JBoss-4.0.4.GA when I run it. Any help would be appreciated!
| HTTP Status 500 -
|
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| org.apache.jasper.JasperException: 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
| org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| org.apache.jasper.JasperException: 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
| org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
| org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
| org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
| org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
| org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:147)
| org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
| org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552)
| org.apache.jasper.compiler.Parser.parse(Parser.java:126)
| org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
| org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
| org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
| org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
|
Shouldn't this work out of the box? Here's the hello1.jsp code:
| <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
| <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
| <html>
| <head><title>Hello</title></head>
| <body bgcolor="white">
| <img src="duke.waving.gif">
|
| <h2>Hello, my name is Duke. What's yours?</h2>
| <form method="get">
| <input type="text" name="username" size="25">
| <p></p>
| <input type="submit" value="Submit">
| <input type="reset" value="Reset">
| </form>
|
| <c:if test="${fn:trim(param.username) > \"\"}" >
| <%@include file="response.jsp" %>
| </c:if>
| </body>
| </html>
|
My war file is structured as follows:
index.jsp
response.jsp
duke.waving.gif
meta-inf/manifest.mf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974908#3974908
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974908
More information about the jboss-user
mailing list