Tomcat Struts ClassCastException - looks like a Tomcat bug

Discussion in 'Java' started by Stewart, Aug 17, 2005.

  1. Stewart

    Stewart Guest

    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.StandardHostValve custom
    SEVERE: Exception Processing
    ErrorPage[exceptionType=java.lang.Exception, location=/error.jsp]
    org.apache.jasper.JasperException: Failed to load or instantiate
    TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei

    And in stdout_<date>.log I get:

    ERROR:eek:rg.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.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
     
    Stewart, Aug 17, 2005
    #1
    1. Advertising

  2. Stewart

    jan V Guest

    You already started this thread a few days ago. Why do you post it again?
    Please don't do that, it kinda undermines the thread-based nature of
    newsgroups.
     
    jan V, Aug 17, 2005
    #2
    1. Advertising

  3. Stewart

    jan V Guest

    > You already started this thread a few days ago. Why do you post it again?
    > Please don't do that, it kinda undermines the thread-based nature of

    newsgroups.

    Please ignore this post. Cheers. My mistake (apparently)
     
    jan V, Aug 17, 2005
    #3
  4. Stewart

    Stewart Guest

    OK. After help from some colleagues (who refered me to:
    http://www.systemmobile.com/wp/?p=152) and the struts users mailing
    list, and some experimenting of my own...

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

    This is a problem for Tomcat 5.5.9 but not for 5.0.28.
    By removing my copy of jsp-api.jar (no loss because Tomcat has it
    anyway) my app runs just fine with Tomcat 5.5.9.

    Problem solved, but it does leave the mystery of why it's a problem for
    5.5.9 and not for 5.0.28...
     
    Stewart, Aug 18, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michele Simionato

    this looks like a bug in generator comprehension

    Michele Simionato, Nov 12, 2004, in forum: Python
    Replies:
    1
    Views:
    440
  2. Victor Kryukov
    Replies:
    8
    Views:
    507
    Gabriel Genellina
    May 17, 2007
  3. AAaron123
    Replies:
    11
    Views:
    1,164
    AAaron123
    Nov 27, 2008
  4. RichardOnRails
    Replies:
    6
    Views:
    198
    RichardOnRails
    May 11, 2011
  5. George Mpouras

    This looks like a Perl bug

    George Mpouras, Apr 18, 2013, in forum: Perl Misc
    Replies:
    18
    Views:
    403
    Xho Jingleheimerschmidt
    Apr 22, 2013
Loading...

Share This Page