You said you were using Struts 1.2.7. I'm guessing those 1.1 TLDs are declaring the TEI class Tomcat's failing to load in the old location. Try using the TLDs (and other configuration files) that correspond to the Struts release you're using.

L.

Christian Dionne wrote:

Hi Laurie,

Thanks for your answer.  I did a quick search to find if that
was my problem and unfortunately it isn't.  I don't have any other
copy of struts.jar in any other directory than in my project directory (WEB-INF/lib)...

Here is the struts structure I have:
WEB-INF/struts-bean-1.1.tld
WEB-INF/struts-bean.tld
WEB-INF/struts-html-1.1.tld
WEB-INF/struts-html.tld
WEB-INF/struts-logic-1.1.tld
WEB-INF/struts-logic.tld
WEB-INF/struts-nested-1.1.tld
WEB-INF/struts-nested.tld
WEB-INF/struts-tiles-1.1.tld
WEB-INF/struts-tiles.tld
WEB-INF/lib/struts.jar

I just hope this ok.  Thanks again for helping me.  This is really strange
since I have been able to use struts without any problem on older Tomcat
version.

Thanks,
Christian Dionne

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: August 15, 2005 1:30 PM
To: user@struts.apache.org
Subject: Re: Error: java.lang.ClassCastException:
org.apache.struts.taglib.htm l.MessagesTei

You probably have multiple copies of the struts jar on you application's class path. Make sure that struts.jar only exists in your WEB-INF/lib directory and not elsewhere in whatever application server or servlet container you're using. Assuming you're using Tomcat, look for copies of struts.jar in common/lib, shared/lib, etc.

L.

Christian Dionne wrote:

Hi!

I'm using Tomcat 5.5.9 with Struts 1.2.7.  I am trying to convert my
application that was working
fine with Tomcat 5.0.30.  I mostly fixed everything except that now I am
getting this error.

This occurs when parsing a .jsp file that includes a struts .tld.

Any idea how to fix this?  I saw a lot of similar post on the internet

about

this problem
but no solution.

org.apache.jasper.JasperException: Failed to load or instantiate
TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei
        


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:279

)
        


org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm

pl.java:422)
        


org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja

va:248)
        


org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java

:162)
        
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:1543)
        org.apache.jasper.compiler.Parser.parse(Parser.java:126)
        


org.apache.jasper.compiler.ParserController.doParse(ParserController.java:21

1)
        


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:5

56)
        


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2

93)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause
java.lang.ClassCastException: org.apache.struts.taglib.html.MessagesTei
        


org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoIm

pl.java:420)
        


org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.ja

va:248)
        


org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java

:162)
        
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:1543)
        org.apache.jasper.compiler.Parser.parse(Parser.java:126)
        


org.apache.jasper.compiler.ParserController.doParse(ParserController.java:21

1)
        


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:5

56)
        


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2

93)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Thanks!
Christian Dionne





--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to