aspose file tools*
The moose likes Struts and the fly likes Error when I deploy my Strut application on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error when I deploy my Strut application on Tomcat" Watch "Error when I deploy my Strut application on Tomcat" New topic
Author

Error when I deploy my Strut application on Tomcat

Sajan Patel
Ranch Hand

Joined: Oct 25, 2004
Posts: 77
Hi All,
I am getting below error in logs when I try to deploy my Struts Application to Tomcat 5.0.19

Can anyone help me

Thanks in Advance

Sajan Patel


StandardContext[/myAppName]Servlet action threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet action threw exception
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1283)
at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1595)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3094)
at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:693)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4443)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:995)
at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:659)
at org.apache.catalina.core.StandardHost.remove(StandardHost.java:980)
at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.java:865)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1075)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:372)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:843)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1671)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1651)
at java.lang.Thread.run(Thread.java:534)
----- Root Cause -----
java.lang.NullPointerException
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1817)
at org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:961)
at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1179)
at org.apache.struts.util.PropertyMessageResources.loadLocale(PropertyMessageResources.java:297)
at org.apache.struts.util.PropertyMessageResources.getMessage(PropertyMessageResources.java:192)
at org.apache.struts.util.MessageResources.getMessage(MessageResources.java:220)
at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:427)
at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1270)
at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1595)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3094)
at org.apache.catalina.startup.ContextConfig.stop(ContextConfig.java:693)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:255)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4443)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:995)
at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDeployer.java:659)
at org.apache.catalina.core.StandardHost.remove(StandardHost.java:980)
at org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.java:865)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1075)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:372)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:843)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1671)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1651)
at java.lang.Thread.run(Thread.java:534)

Kerry Wilson
Ranch Hand

Joined: Oct 29, 2003
Posts: 254
I have read that this may be caused by MySQL Driver, are you using MySQL Driver with Struts Datasource?


http://www.goodercode.com
SCJP 1.4
Sajan Patel
Ranch Hand

Joined: Oct 25, 2004
Posts: 77
NO I dont use MySQL but I use SQL Server and I dont use Data Source also. I use normal Connection class to connect to server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error when I deploy my Strut application on Tomcat
 
Similar Threads
Exception while using struts 1.3 with myeclipse 6.0.1
error in console
error in console
SEVERE: Error configuring application listener when deploying IDM WAR on Tomcat
Not Able to Deploy War Files in Tomcat 6