tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22477] New: - Modifying classes in WEB-INF/classes causes Exception
Date Sat, 16 Aug 2003 00:21:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22477>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22477

Modifying classes in WEB-INF/classes causes Exception

           Summary: Modifying classes in WEB-INF/classes causes Exception
           Product: Tomcat 4
           Version: 4.1.27
          Platform: Sun
               URL: http://localhost:8080/examples/jsp/num/numguess.jsp
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: apbuteau@cc.usu.edu


When modifying a class in WEB-INF/classes that is used in a jsp that resides in 
a reloadable context, Tomcat will report an internal server error.  

To recreate the problem:
1) Install Tomcat 4.1.27 and use the default installation
2) Request a page in the examples context (which uses reloadable="true")
    For example http://localhost:8080/examples/jsp/num/numguess.jsp
3) *touch* the class file used in the requested jsp
     For example:
       %> cd $CATALINA_HOME/webapps/examples/WEB-INF/classes/num
       %> touch NumberGuessBean.class
4) View logfiles to verify WebappClassLoader has found the modified class
5) Request the same jsp page again without restarting Tomcat
6) Witness the bug

This problem is not specific to the examples context that ships with Tomcat.  I 
ran into it working on my own webapp trying to take advantage of the 
reloadable="true" feature of Tomcat.  While developing, I recompile often and 
it's handy not to have to restart Tomcat after every change.  I havn't testing 
this with 4.1.24, so I don't know if this bug has just recently been introduced.

Mime
View raw message