Thank you Christian - you are correct. A colleague also referred me to:
http://www.systemmobile.com/wp/?p=152 

I had a copy of jsp-api.jar in my app (/WEB-INF/lib/jsp-api.jar)
And Tomcat (both 5.0.28 and 5.5.9) has a copy under
$CATALINA_HOME/common/lib/jsp-api.jar

This makes the copy in my app redundant and it can safely be removed.
By removing it, it resolves the ClassCastException with
org.apache.struts.taglib.html.MessagesTei

But why should this double presence of jsp-api.jar be a problem for
Tomcat 5.5.9 but not for 5.0.28?

Thank you,

Stewart

-----Original Message-----
From: Christian Dionne [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2005 14:14
To: 'Struts Users Mailing List'
Subject: RE: Tomcat 5.5.9 with Struts 1.2.7 -> ClassCastException -
looks like a Tomcat bug

Hi Stewart,

I had the same problem and I received a great answer on this mailing
list
a few days ago.

The problem is caused by either one of these libraries that are
conflicting with Struts: 
        - jsp-api.jar
        - jsp-2.0-api.jar

On my side, removing these libraries from my project (they were not
used)
solved the problem.

Thanks,
Christian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: August 17, 2005 6:24 AM
To: [EMAIL PROTECTED]; user@struts.apache.org
Subject: Tomcat 5.5.9 with Struts 1.2.7 -> ClassCastException - looks
like a
Tomcat bug

Using Struts 1.2.7 with the latest Tomcat 5.5.9 I get the following in 
localhost.<date>.log when I first try to access my web application: 

17-Aug-2005 11:02:02 org.apache.catalina.core.Stand-ardHostValve custom 
SEVERE: Exception Processing 
ErrorPage[exceptionType=java.l-ang.Exception, location=/error.jsp] 
org.apache.jasper.JasperExcept-ion: Failed to load or instantiate 
TagExtraInfo class: org.apache.struts.taglib.html.-MessagesTei 

And in stdout_<date>.log I get: 

ERROR:org.apache.catalina.core-.ApplicationDispatcher.invoke(-Applicatio
nDispatcher.java:704-) 
Servlet.service() for servlet jsp threw exception 
java.lang.ClassCastException: org.apache.struts.taglib.html.-MessagesTei


Through trial and error I have found that this does not happen with 
Tomcat 5.0.28, with all other factors (struts, my application, etc) 
kept the same. 

Thought you all might like to know. 

Stewart 

 


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


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

  • RE: Tomcat 5.5.9 with Struts 1.2.7 -> ClassCastExcept... stewart.cambridge

Reply via email to