struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harippriya Sivapatham <hari_for...@yahoo.com>
Subject Struts2 and tomcat context reloading
Date Thu, 28 Jun 2007 19:29:57 GMT
  
  Hello,
  I've run into the issue where tomcat (5.5.15) is not able to undeploy my webapp after I
incorporated struts2 into my web app. The undeploy deletes all files but the struts2-core-2.0.8.jar
in <CATALINA_HOME>/webapps/myapp/WEB-INF/lib. I am wondering if there is some reference
to this struts jar that tomcat is not able to delete it. 
  As far as configuration goes, I simply followed everything said in the Struts2 Bootstrap
tutorial - copied JARs and struts.xml to right place and edited my app's web.xml to include
the FilterDispatched for struts2. All references to struts is contained inside my webapp and
there is nothing at the tomcat level. Any insights into this would be helpful. I thought I
would check to make sure I am fine on the struts side before posting to the tomcat forum.
   
  Undeploy fails with the exception:
  INFO: Reloading context [/GlobalXMS]
  Jun 28, 2007 11:39:14 AM org.apache.catalina.core.StandardContext stop
  INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/
  GlobalXMS] has not been started
  Jun 28, 2007 11:39:14 AM org.apache.catalina.startup.ContextConfig applicationWe bConfig
  INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].
  StandardHost[localhost].StandardContext[/GlobalXMS]
  Jun 28, 2007 11:39:14 AM org.apache.catalina.loader.WebappClassLoader loadClass
  INFO: Illegal access: this web application instance has been stopped already. C ould not
load org.apache.log4j.spi.VectorWriter. The eventual following stack t race is caused by an
error thrown for debugging purposes as well as to attempt t o terminate the thread which caused
the illegal access, and has no functional im pact.
  java.lang.IllegalStateException
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
  der.java:1238)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
  der.java:1198)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
  at org.apache.log4j.Category.forcedLog(Category.java:372)
  at org.apache.log4j.Category.log(Category.java:864)
  at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:19
  3)
  at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
  t.java:3678)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
  162)
  at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java
  :1085)
  at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1193)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
  503)
  at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
  at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
  Source)
  at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
  at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:
  1377)
  at org.apache.catalina.manager.ManagerServlet.undeploy(ManagerServlet.ja
  va:1299)
  at org.apache.catalina.manager.HTMLManagerServlet.undeploy(HTMLManagerSe
  rvlet.java:491)
  at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServl
  et.java:100)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  icationFilterChain.java:252)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  ilterChain.java:173)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
  alve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
  alve.java:178)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
  torBase.java:524)
  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
  541)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
  ava:126)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
  ava:105)
  at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:288)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
  ve.java:107)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
  a:148)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
  :869)
  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
  rocessConnection(Http11BaseProtocol.java:667)
  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
  int.java:527)
  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
  lowerWorkerThread.java:80)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
  ool.java:684)
  at java.lang.Thread.run(Unknown Source) Jun 28, 2007 11:39:14 AM org.apache.commons.modeler.BaseModelMBean
invoke
  SEVERE: Exception invoking method check
  java.lang.NoClassDefFoundError: org/apache/log4j/spi/VectorWriter
  at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
  at org.apache.log4j.Category.forcedLog(Category.java:372)
  at org.apache.log4j.Category.log(Category.java:864)
  at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:19
  3)
  at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
  t.java:3678)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
  162)
  at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java
  :1085)
  at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1193)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
  503)
  at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
  at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
  Source)
  at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
  at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:
  1377)
  at org.apache.catalina.manager.ManagerServlet.undeploy(ManagerServlet.ja
  va:1299)
  at org.apache.catalina.manager.HTMLManagerServlet.undeploy(HTMLManagerSe
  rvlet.java:491)
  at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServl
  et.java:100)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
  icationFilterChain.java:252)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
  ilterChain.java:173)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
  alve.java:213)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
  alve.java:178)
  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
  torBase.java:524)
  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
  541)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
  ava:126)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
  ava:105)
  at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:288)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
  ve.java:107)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
  a:148)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
  :869)
  at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
  rocessConnection(Http11BaseProtocol.java:667)
  at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
  int.java:527)
  at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
  lowerWorkerThread.java:80)
  at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
  ool.java:684)
  at java.lang.Thread.run(Unknown Source)
  Thanks!
  Priya

 
---------------------------------
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message