https://issues.apache.org/bugzilla/show_bug.cgi?id=49619
Summary: taglib statement is not causing a stack trace Product: Tomcat 6 Version: 6.0.28 Platform: PC OS/Version: Linux Status: NEW Severity: major Priority: P2 Component: Jasper AssignedTo: dev@tomcat.apache.org ReportedBy: ez...@ieee.org Created an attachment (id=25786) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25786) This zip file contains an example webapp that causes a stack trace when I run it with tomcat6 I'm relatively new to programming with JSP, but I'm an experienced programmer. I think it is more likely that my configuration on my PC is wrong than this is a bug, but I'm stuck because I can not read the standard tag libraries properly. I have read and reread as much documentation as I can and everything looks like it should run ok. I have been working with an experienced JSP programmer at the Javaranch website and after looking at my problem with me over the past 2 weeks, he is also stumped. A bit of history. The webapp that I'm trying to run is an example from "Java Server Pages, 3rd edition" It used to run ok on the laptop I had last year. I was taken away from JSP programming for roughly a year. My old laptop died and when I recently installed the webapp on my new laptop, I ran into this problem.The old laptop had tomcat6 running and had been downloaded and installed by me. The new laptop has tomcat6 downloaded and installed by the adept package manager. I have attached a zip file which contains a minimal webapp that reproduces my problem. This zip file should be placed in /var/lib/tomcat6/webapps and then unzipped. It creates an app "bad". Note that this has some older jar files in the WEB-INF/lib directory, but as far as I know tomcat6 should be backward compatible with these jar file. >From the browser I enter an address: http://bad/ch5/easy.jsp and I get the stack trace. If I edit the easy.jsp file an comment out the 2nd line which is a tablib file, it eliminates the stack trace. The stace trace is: 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:429) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1439) org.apache.jasper.compiler.Parser.parse(Parser.java:137) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170) org.apache.jasper.compiler.Compiler.compile(Compiler.java:332) org.apache.jasper.compiler.Compiler.compile(Compiler.java:312) org.apache.jasper.compiler.Compiler.compile(Compiler.java:299) 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) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:616) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Subject.java:537) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) Regards, Jim Anderson -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org