Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts - NoClassDefFoundError

 
Vinod Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic