Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error when I deploy my Strut application on Tomcat

 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read that this may be caused by MySQL Driver, are you using MySQL Driver with Struts Datasource?
 
Sajan Patel
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic