tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinny <xaym...@gmail.com>
Subject Re: jspc taglib handling different between 5.5.4 and 5.5.7
Date Wed, 02 Feb 2005 20:13:23 GMT
I am having the same issue. My absolute uri'd  tld are not getting resolved.
Also I am getting this error when I try running my struts app:

ERROR: 2005-02-02 14:45:27,578: ApplicationDispatcher:
Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException
        at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:420)
        at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
        at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
        at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
        at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
        at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
        at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
        at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



On Tue, 1 Feb 2005 09:55:12 -0600, Jason Schuchert <lists@codebarn.com> wrote:
> i upgraded to 5.5.7 this weekend and noticed that my ant jsp precompile task was failing
for .jsp files that were referencing taglibs.  it gave a message like:
> 
> org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql
cannot be resolved in either web.xml or the jar files deployed with this application
> 
> the line in the offending jsp looks like:
> 
> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
> 
> if i go into the jstl taglib jar file and grab the sql.tld file and put it into my WEB-INF
then the jspc task works.
> 
> in 5.5.4 this worked without having the sql.tld file in WEB-INF (it was just found in
the .jar file of the tag library)
> 
> anybody hitting similar issues?  was there a change in the jspc code that intentionally
makes this not work in 5.5.7?
> 
> thanks!
> 
> -jason
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message