You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/07/08 22:44:26 UTC

DO NOT REPLY [Bug 10565] New: - shutdown hook problem: java.lang.NoClassDefFoundError: java/util/Iterator

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=10565>.
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=10565

shutdown hook problem:  java.lang.NoClassDefFoundError: java/util/Iterator

           Summary: shutdown hook problem:  java.lang.NoClassDefFoundError:
                    java/util/Iterator
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: clark.updike@jhuapl.edu


I have a class that sets up a shutdown hook to close resources when the JVM is 
shutting down.  It works fine when I run the class outside of Tomcat.  But when 
it runs from within Tomcat, I get a "java.lang.NoClassDefFoundError: 
java/util/Iterator" from the shutdown hook thread.  Javadoc for this error 
states "... The searched-for class definition existed when the currently 
executing class was compiled, but the definition can no longer be found."  I 
have no idea why the java.util package would be unavailable.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>