Hello - currently I'm running a multi instance Tomcat 8 server and wish to 
use Manager to deploy war files via its HTTP API command line interface.

When attempting to deploy there is a continuous issue with the context 
path not being recognised.

Here is an example of the command - 

curl -v -X PUT 
http://user:password@localhost:10080/manager/text/deploy?path=/address-information-ds-1.0&war=file:/usr/share/tomcat/deployments/20150706/address-information-ds-1.0
FAIL - Deployed application at context path /address-information-ds-1.0 
but context failed to start

Now check the list of installed webapps - 

$ curl -X GET http://tcsct:cbiw2PXB@localhost:10080/manager/text/list
OK - Listed applications for virtual host localhost
/manager:running:0:manager
/:running:0:ROOT
/address-information-ds-1.0:stopped:0:address-information-ds-1.0.war
/host-manager:running:0:host-manager

Localaccess.log - 

[10/Jul/2015:11:07:54 +0100] 127.0.0.1 - tcsct PUT 
/manager/text/deploy?path=/address-information-ds-1.0 HTTP/1.1 - \   - - - 
\   - ?path=/address-information-ds-1.0 200 111 - 31 26 127.0.0.1 
[10/Jul/2015:11:07:54 +0100]

Catanlina.log
10-Jul-2015 11:20:54.560 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application 
archive /opt/tomcat/webapps/address-information-ds-1.0.war
/logs/catalina.2015-07-10.log:10-Jul-2015 11:20:54.568 SEVERE 
[localhost-startStop-1] 
org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing 
docBase for context [/address-information-ds-1.0]
 org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/address-information-ds-1.0]]
10-Jul-2015 11:20:54.572 SEVERE [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Error deploying web 
application archive /opt/tomcat/webapps/address-information-ds-1.0.war
 java.lang.IllegalStateException: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component 
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/address-information-ds-1.0]]
10-Jul-2015 11:20:54.573 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployWAR Deployment of web 
application archive /opt/tomcat/webapps/address-information-ds-1.0.war has 
finished in 13 ms

Any advice or pointer would be much appreciated.

-----------------------------------------------------------------------------------------------------------------------------------------
The Mileage Company Limited is a limited company registered in England under 
company number 2260073 whose registered office address is at
Astral Towers, Betts Way, London Road, Crawley, West Sussex, RH10 9XY.

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify the 
system manager.

This footnote also confirms that this email message has been swept by Mimecast 
for the presence of computer viruses. 
-----------------------------------------------------------------------------------------------------------------------------------------

Reply via email to