File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts - NoClassDefFoundError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - NoClassDefFoundError" Watch "Struts - NoClassDefFoundError" New topic

Struts - NoClassDefFoundError

Vinod Kumar

Joined: Jan 27, 2004
Posts: 3
Hello all,

I am using Struts 1.1 and everything compiles, deploys and runs fine. (I'm using WAS 5.0) It's when I do a second deploy that I get the following error message. I then need to restart the server in order to redeploy. Yes, I have commons-collections.jar in the WEB-INF/lib directory. Any ideas?

[12/4/04 21:08:24:746 EST] 48b67c1b ServletInstan E SRVE0058E: Did not realize destroy() exception thrown by servlet action: java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap$KeySet
at org.apache.commons.collections.FastHashMap.keySet(Unknown Source)
at org.apache.struts.action.ActionServlet.destroyDataSources(
at org.apache.struts.action.ActionServlet.destroy(
at Code))
at Code))
at Code))
at Code))
at Code))
at$ApplicationNotifier.classChanged( Code))
at Code))
at$100( Compiled Code))
at$ Code))
at java.util.TimerThread.mainLoop( Code))

I agree. Here's the link:
subject: Struts - NoClassDefFoundError
It's not a secret anymore!