Greetings, Reading the jira issue below, it seems that the developers believe this to be a Tomcat classloader issue. I know little (read: nothing) about classloaders, but a few observations I have using Google-fu:
1) Classloaders in Tomcat are "twitchy", and you may be stuck with this behavior. Unless of course you want to master Tomcat classloaders. 2) Servlet.jar missing or in 2 places can cause issues. 3) Struts core jar file in 2 places can cause issues. This looks like this is happening during a cleanup op (i.e., after you have re-deployed) so maybe it's trying to use a class it *thinks* it has but which has already been removed? I'm curious - any reason why you are not deploying using a war file? It might be interesting to see what happens if you deploy it that way. -Ty On Mon, May 17, 2010 at 3:16 PM, Emi Lu <em...@encs.concordia.ca> wrote: > The most similar question I could find is: > > https://issues.apache.org/jira/browse/WW-2921 > > But did not find any solutions? > > Someone knows the solution? > > Thanks a lot! > -- > Lu Ying > > > > > > On 05/17/2010 02:50 PM, Emi Lu wrote: > >> Hi Rebecca, Martin, >> >> Could you be having something going crazy with your build scripts or >>> something where the struts core jar isn't getting put in the right spot? >>> >> >> >> >> check to see if struts2-core-<version>.jar is located in >> YourWebApp/WEB-INF/lib >> >> Yes. it is there. >> >> Tomcat 6.0, jdk1.6, ant-1.6.2. >> >> If I restart tomcat, the error is gone. >> >> The error is shown only when I re-install source codes and did not >> reload tomcat. >> >> Some possible places that I should pay special attention? I am using ant >> 1.6.2. Could this cause some potential problems? How come restart >> tomcat, errors are gone? >> >> Thanks a lot! >> -- >> Lu Ying >> >> >> >> >>> >>> ----- Original Message ---- >>> From: Emi Lu<em...@encs.concordia.ca> >>> To: user@struts.apache.org >>> Sent: Mon, May 17, 2010 10:48:38 AM >>> Subject: "java.lang.NoClassDefFoundError: >>> org/apache/struts2/util/ObjectFactoryDestroyable" >>> >>> Good morning List, >>> >>> Using struts2.1.8.1, when I reinstall my application, I always got the >>> following errors "java.lang.NoClassDefFoundError: >>> org/apache/struts2/util/ObjectFactoryDestroyable" >>> >>> But in struts.jar does contain this class. >>> >>> Could someone help and tell me what cause the problem? >>> >>> Thanks a lot >>> -- >>> Lu Ying >>> >>> >>> >>> >>> SEVERE: Exception invoking periodic operation: >>> java.lang.NoClassDefFoundError: >>> org/apache/struts2/util/ObjectFactoryDestroyable >>> at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:265) >>> at >>> >>> org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:233) >>> >>> at >>> >>> org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:357) >>> >>> at >>> >>> org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3873) >>> >>> at >>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4605) >>> at >>> >>> org.apache.catalina.core.StandardContext.reload(StandardContext.java:3222) >>> >>> at >>> >>> org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:403) >>> >>> at >>> >>> org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309) >>> >>> at >>> >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) >>> >>> at >>> >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) >>> >>> at >>> >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) >>> >>> at >>> >>> org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) >>> >>> at java.lang.Thread.run(Thread.java:619) >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >