Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2F9B17947 for ; Fri, 10 Jul 2015 11:21:17 +0000 (UTC) Received: (qmail 11932 invoked by uid 500); 10 Jul 2015 11:21:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11872 invoked by uid 500); 10 Jul 2015 11:21:14 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 11861 invoked by uid 99); 10 Jul 2015 11:21:14 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 11:21:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id ECF0B1A6D14 for ; Fri, 10 Jul 2015 11:21:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 8kipvhIUgTLj for ; Fri, 10 Jul 2015 11:21:12 +0000 (UTC) Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [207.82.80.151]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B975E20C07 for ; Fri, 10 Jul 2015 11:21:11 +0000 (UTC) Received: from amlnotes02.airmiles.co.uk (mailhostMTB.airmiles.co.uk [83.244.225.144]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-2-QC7X_Ys_QuWQx1z3Rw58FA-1; Fri, 10 Jul 2015 12:21:04 +0100 To: users@tomcat.apache.org MIME-Version: 1.0 Subject: Tomcat 8 - Manager Deploy X-KeepSent: 35A7F77D:297A084F-80257E7E:003E48AD; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 March 28, 2013 Message-ID: From: Theo.Sweeny@avios.com Date: Fri, 10 Jul 2015 12:21:04 +0100 X-MIMETrack: Serialize by Router on AMLNOTES02/LGW/MILEAGE(Release 8.5.3FP1|March 07, 2012) at 10/07/2015 12:21:04, Serialize complete at 10/07/2015 12:21:04 X-MC-Unique: QC7X_Ys_QuWQx1z3Rw58FA-1 Content-Type: multipart/alternative; boundary="=_alternative 003E5A9880257E7E_=" --=_alternative 003E5A9880257E7E_= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello - currently I'm running a multi instance Tomcat 8 server and wish to= =20 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=20 path not being recognised. Here is an example of the command -=20 curl -v -X PUT=20 http://user:password@localhost:10080/manager/text/deploy?path=3D/address-in= formation-ds-1.0&war=3Dfile:/usr/share/tomcat/deployments/20150706/address-= information-ds-1.0 FAIL - Deployed application at context path /address-information-ds-1.0=20 but context failed to start Now check the list of installed webapps -=20 $ 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 -=20 [10/Jul/2015:11:07:54 +0100] 127.0.0.1 - tcsct PUT=20 /manager/text/deploy?path=3D/address-information-ds-1.0 HTTP/1.1 - \ - - = -=20 \ - ?path=3D/address-information-ds-1.0 200 111 - 31 26 127.0.0.1=20 [10/Jul/2015:11:07:54 +0100] Catanlina.log 10-Jul-2015 11:20:54.560 INFO [localhost-startStop-1]=20 org.apache.catalina.startup.HostConfig.deployWAR Deploying web application= =20 archive /opt/tomcat/webapps/address-information-ds-1.0.war /logs/catalina.2015-07-10.log:10-Jul-2015 11:20:54.568 SEVERE=20 [localhost-startStop-1]=20 org.apache.catalina.startup.ContextConfig.beforeStart Exception fixing=20 docBase for context [/address-information-ds-1.0] org.apache.catalina.LifecycleException: Failed to start component=20 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/address-= information-ds-1.0]] 10-Jul-2015 11:20:54.572 SEVERE [localhost-startStop-1]=20 org.apache.catalina.startup.HostConfig.deployWAR Error deploying web=20 application archive /opt/tomcat/webapps/address-information-ds-1.0.war java.lang.IllegalStateException: ContainerBase.addChild: start:=20 org.apache.catalina.LifecycleException: Failed to start component=20 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/address-= information-ds-1.0]] 10-Jul-2015 11:20:54.573 INFO [localhost-startStop-1]=20 org.apache.catalina.startup.HostConfig.deployWAR Deployment of web=20 application archive /opt/tomcat/webapps/address-information-ds-1.0.war has= =20 finished in 13 ms Any advice or pointer would be much appreciated. ---------------------------------------------------------------------------= -------------------------------------------------------------- The Mileage Company Limited is a limited company registered in England unde= r 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 s= ystem manager. This footnote also confirms that this email message has been swept by Mimec= ast for the presence of computer viruses.=20 ---------------------------------------------------------------------------= -------------------------------------------------------------- --=_alternative 003E5A9880257E7E_=--