While attempting to deploy my web application to our production server I 
encountered an issue, and after looking in the catalina.out log file, the 
following shows up:

SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [/MyApp]
        at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: Failed to process 
either the global, per-host or context-specific context.xml file therefore 
the [/MyApp] Context cannot be started.
        at 
org.apache.catalina.startup.FailedContext.startInternal(FailedContext.java:155)
        at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 11 more

So, to my knowledge, this seems that the issue is the "Failed to process 
either the global, per-host, or context-specific context.xml file".  So I 
have spent hours searching and there seem to be very few people who 
received this error message.  I was hoping that someone could please help 
me because I am completely out of ideas and searching has gotten me 
nowhere.  Additionally, after this exception, the following stack trace is 
printed, but I assume that it is a direct results of the previous error:

Jun 25, 2013 8:30:59 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive 
/usr/local/tomcat/apache-tomcat-7.0.37/webapps/MyApp.war
java.lang.IllegalStateException: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [/MyApp]
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
        at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

After all of these errors, the log file just displays some info about 
starting the server.  I have tried granting permissions to both Apache 
Tomcat and the local Unix on the machine (by changing catalina.policy and 
using chmod), but this hasn't seemed to fix the problem.  I have also 
tried to rollback to a previously working version of the application and 
even this will not work.  For completeness, here is some relevant 
information about the machine and Tomcat that is running:

Using CATALINA_BASE:   /usr/local/tomcat/apache-tomcat-7.0.37
Using CATALINA_HOME:   /usr/local/tomcat/apache-tomcat-7.0.37
Using CATALINA_TMPDIR: /usr/local/tomcat/apache-tomcat-7.0.37/temp
Using JRE_HOME:        /usr/java/jdk1.7.0_17/jre
Using CLASSPATH: 
/usr/local/tomcat/apache-tomcat-7.0.37/bin/bootstrap.jar:/usr/local/tomcat/apache-tomcat-7.0.37/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.37
Server built:   Feb 12 2013 10:44:14
Server number:  7.0.37.0
OS Name:        Linux
OS Version:     2.6.32-279.el6.x86_64
Architecture:   amd64
JVM Version:    1.7.0_17-b02
JVM Vendor:     Oracle Corporation

War files are set to automatically deploy, we copyXML is not set to true. 
Does anyone have any idea how to fix this issue or how to help me?  Thank 
you very much for your time!

Regards,
Nick


Nickalaus A. Painter
IBM Smarter Water Co-op Developer
Clarkson University 2014
B.S. Mathematics and Computer Science
+18454353546

Reply via email to