A couple more suggestions ... 1. Make sure your web.xml file uses the servlet version 2.4 or later schema (supported in tomcat 5.0 and later) 2. Make sure your jstl.jar and standard.jar are from version 1.1 of the standard and jstl taglibs
Post the real, earliest log files related to your request with minimal editing and definitely show the entire stack including any and all root causes to the first related exception in the logs. --Davidi David Smith wrote: > I'm guessing there's another error regarding a problem with header.jsp. > You didn't include the exception in your subject in the details below so > it's anyone's guess. I can say that from at least tomcat 5.5 onwards, > you don't need to add anything to web.xml to use the tag libs in > standard.jar and jstl.jar. Just drop them in WEB-INF/lib, restart your > webapp and go. Tomcat will find the tld files in the jar file's > META-INF folder. What do you have in the earliest point in the jars > related to this error? > > I've used the c:import tag many times without any problem at all, so I > think the error is a compile error compiling header.jsp. > > --David > > > Gmail User wrote: > >> OK, perhaps someone can help me figure this one out before I go bald. >> >> I am, yet again, attempting to upgrade my existing app from Tomcat >> 5.5.15 to Tomcat 6.0.18. Everything worked alright under Tomcat >> 5.5.15, however for Tomcat 6, I had to make sure that appBase != >> docBase. Still, I cannot resolve the situation described below. >> >> My application structure is basically (JSP pages are in their own >> folders, outside WEB-INF): >> >> ROOT (/) -- index.jsp >> -- folder1 -- index.jsp >> -- include -- header.jsp >> -- footer.jsp >> -- WEB-INF -- ... >> >> >> I have a configured a ROOT app for my virtual host. If I access >> "http://host/index.jsp", it works alright. The "http://host/index.jsp" >> uses JSTL tag to include a file, <c:import url="/include/header.jsp" >> />, same for the footer. However, if I were to access >> "http://host/include/header.jsp" directly or >> "http://host/folder1/index.jsp" (also imports header.jsp and >> footer.jsp), I am receiving the alternating errors referenced below. >> >> I have jstl.jar and standard.jar in WEB-INF/lib and they have taglib >> url that matches declarations in JSP files (both have >> ../jsp/jstl/...). As an experiment, I also referenced them from >> web.xml to WEB-INF/tld (if I renamed c.tld, Tomcat barfed, so I know >> it finds the 'tld' file). >> >> I am running Tomcat 6.0.18 binary distribution from apache.org, >> running it i as a root so permissions should no be a problem, I would >> think. >> >> Am I not allowed to have directory structure when developing for >> Tomcat 6 or am I missing something else? >> >> Anyone has encountered this situation and successfully resolved it? >> For the sake of my mane, please! :-) >> >> >> TIA, >> >> Ed >> >> >> >> ERRORS: >> >> 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:51) >> >> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) >> >> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) >> >> org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315) >> >> org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148) >> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431) >> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494) >> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444) >> org.apache.jasper.compiler.Parser.parse(Parser.java:138) >> >> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) >> >> org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) >> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154) >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:315) >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) >> org.apache.jasper.compiler.Compiler.compile(Compiler.java:282) >> >> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> >> AND >> >> >> org.apache.jasper.JasperException: org.apache.jasper.JasperException: >> Unable to load class for JSP >> >> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> >> root cause >> org.apache.jasper.JasperException: Unable to load class for JSP >> >> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:620) >> >> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> root cause >> java.lang.ClassNotFoundException: org.apache.jsp.header_jsp >> java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> java.security.AccessController.doPrivileged(Native Method) >> java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134) >> org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66) >> >> org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618) >> >> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144) >> >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329) >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> >> > > > -- David Smith Programmer/Analyst College of Agriculture and Life Sciences Cornell University B32 Morrison Hall Ithaca, NY 14853 Phone: (607) 255-4334 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org