Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: ClassCastException in org.apache.jasper.compiler.TagLibraryInfoImpl
(Tomcat5.5)

Kevin A. Burton

2004-11-28

Replies:

Kevin A. Burton wrote:

> Whats up with this?
>
>> java.lang.ClassCastException
>> org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo (TagLibraryInfoImpl.java:420)
>>
>> org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD (TagLibraryInfoImpl.java:248)
>>
>

If I reduce my webapp down to just this:

> <%@(protected)" %>


Then I get:

>
> org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld"
> from JAR file
> "file:/usr/local/jakarta-tomcat-5.5.4/webapps/rojo/ROOT/WEB-INF/lib/standard.jar":
> org.apache.jasper.JasperException: Failed to load or instantiate
> TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
> 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:179)
> org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
> org.apache.jasper.compiler.Parser.parseTaglibDirective (Parser.java:418)
> org.apache.jasper.compiler.Parser.parseDirective (Parser.java:483)
> org.apache.jasper.compiler.Parser.parseElements (Parser.java:1539)
> 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:146)
> org.apache.jasper.compiler.Compiler.compile (Compiler.java:286)
> org.apache.jasper.compiler.Compiler.compile (Compiler.java:267)
> org.apache.jasper.compiler.Compiler.compile (Compiler.java:255)
> org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:556)
> org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:296)
> org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295)
> org.apache.jasper.servlet.JspServlet.service (JspServlet.java:245)
> javax.servlet.http.HttpServlet.service (HttpServlet.java:802)

But the standard.jar I'm using is the SAME one from Tomcat 5.5 and even
the md5sum is the same (so its not corrupt).

The insane parse is that everytime I reload the page I get a diff error
(FUN!)

>java.lang.ClassNotFoundException: org.apache.jsp.pagelet.taglibs_jsp
>  java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>  java.security.AccessController.doPrivileged(Native Method)
>  java.net.URLClassLoader.findClass (URLClassLoader.java:187)
>  org.apache.jasper.servlet.JasperLoader.loadClass (JasperLoader.java:156)
>  org.apache.jasper.servlet.JasperLoader.loadClass (JasperLoader.java:69)
>  org.apache.jasper.JspCompilationContext.load (JspCompilationContext.java:589)
>  org.apache.jasper.servlet.JspServletWrapper.getServlet (JspServletWrapper.java:137)
>  org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:308)
>  org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295)
>  org.apache.jasper.servlet.JspServlet.service (JspServlet.java:245)
>  javax.servlet.http.HttpServlet.service (HttpServlet.java:802)
>
BTW. Throughout this ENTIRE process Tomcat has been swallowing the real
error. Not very professional :-/ Makes me wonder what other fun little
secrets Tomcat has in store for me in the future.

Kevin

--

Use Rojo (RSS/Atom aggregator). Visit http://rojo.com. Ask me for an
invite! Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html

If you're interested in RSS, Weblogs, Social Networking, etc... then you
should work for Rojo! If you recommend someone and we hire them you'll
get a free iPod!
 
Kevin A. Burton, Location - San Francisco, CA
    AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.