This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts - NoClassDefFoundError" Watch "Struts - NoClassDefFoundError" New topic
Author

Struts - NoClassDefFoundError

Vinod Kumar
Greenhorn

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(ActionServlet.java:769)
at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:431)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.forceDestroy(StrictServletInstance.java:184)
at com.ibm.ws.webcontainer.servlet.ServletInstance.destroy(ServletInstance.java:484)
at com.ibm.ws.webcontainer.servlet.ServletManager.removeServlet(ServletManager.java:153)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.removeServlet(WebAppServletManager.java:410)
at com.ibm.ws.webcontainer.servlet.ServletManager.removeAllServlets(ServletManager.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebApp.destroy(WebApp.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.WebGroup.reload(WebGroup.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.reload(WebContainer.java(Compiled Code))
at com.ibm.ws.runtime.component.WebContainerImpl.reload(WebContainerImpl.java(Compiled Code))
at com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java(Compiled Code))
at com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java(Compiled Code))
at com.ibm.ws.classloader.ClassLoaderManager.access$100(ClassLoaderManager.java(Inlined Compiled Code))
at com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.run(ClassLoaderManager.java(Compiled Code))
at java.util.TimerThread.mainLoop(Timer.java(Compiled Code))
at java.util.TimerThread.run(Timer.java:396)

Thanks,
Vinod.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts - NoClassDefFoundError
 
Similar Threads
log4j:ERROR
WSAD Failed to start EJB: JDBC1PhaseRF
WSIF Exception
log4j:ERROR
WSAD SystemErr