1

This is how we enable Tomcat Manager in a vanilla Tomcat 8.

I have a hardened Tomcat 8 that is split into CATALINA_HOME AND CATALINA_BASE which I was unable to deploy Tomcat Manager on, without having the following error:

org.apache.catalina.core.ContainerBase addChildInternal SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [/manager]

and

SEVERE: The web application with context path [/manager] was not deployed because it contained a deployment descriptor [\webapps\manager\META-INF\context.xml] which may include configuration necessary for the secure deployment of the application but processing of deployment descriptors is prevented by the deployXML setting of this host. An appropriate descriptor should be created at [\conf\Catalina\localhost\manager.xml] to deploy this application.

Similar posts (to list a few 1, 2, 3, 4) suggested solutions but did not help.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
George
  • 6,006
  • 6
  • 48
  • 68
  • I'd to edit catalina.policy then copy the context.xml to `%CATALINA_BASE%\conf\Catalina\localhost\manager.xml` to make it work. thanks for the suggestion. – Ponns Apr 27 '17 at 03:14

2 Answers2

2

Here's how it was fixed:

After Tomcat Manager is set up, copy %CATALINA_BASE%\webapps\manager\META-INF\context.xml to %CATALINA_BASE%\conf\Catalina\localhost\manager.xml

If you have another webapp other than manager, just replace the file name accordingly.

George
  • 6,006
  • 6
  • 48
  • 68
2

Another solution is to add deployXML="true" to the Host element in server.xml. Explanation.

jeff3s
  • 21
  • 3