Hi Mark


Following your instructions, I get the following in my browser. It is not 
running the WAR application.



Kind regards

Mark





[cid:image001.png@01D40EB5.F2046230]



Mark Sandels |Senior Systems Analyst/Programmer|IM & T Services – Integration 
Services Team |Manor House Annexe Room G22, Oxford University Hospitals NHS 
Trust , Headley Way, Headington, Oxford OX3 9RR |Phone:  01865 (5) 72103 | 
Email: mark.sand...@ouh.nhs.uk NHS colleagues can visit the OUH IM&T Services 
intranet site at http://ouhimt.oxnet.nhs.uk



-----Original Message-----
From: Mark Thomas [mailto:ma...@apache.org]
Sent: 27 June 2018 15:52
To: Tomcat Users List
Subject: Re: Apache http via tomcat WAR or Directory URL syntax (tomcat 
server.xml) for WAR application not working



On 27/06/18 15:44, Sandels Mark (RTH) OUH wrote:

> Thanks Chris

>

> Point taken. I have looked at the correct version of the Tomcat documentation 
> - the text is the same for the relevant section but thanks for pointing out 
> that I should check this.

>

> https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL

>

> Here is the other information you asked for:

>

> 1. Provide the name and location of your WAR file on the disk

>

> C:\Program Files (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war



Stop Tomcat.



If they exist, move C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\ROOT.war and C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\ROOT to a C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps-backup (or any suitable back-up location).



Rename C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war to C:\Program Files

(x86)\apache-tomcat-9.0.6\webapps\ROOT##OracleStatus.war



<snip/>



> server.xml contents



<snip/>



>             <Context path="/"

>             WAR or Directory URL="file:C:\Program Files 
> (x86)\apache-tomcat-9.0.6\webapps\OracleStatus.war" />

>             </Context>



I feared as much.



Remove this entire <Context .../> element from you server.xml



Start Tomcat.



Done (assuming your app works and doesn't require additional resources).





To repeat. You are mixing up configuration of a <Context .../> element

(which shouldn't be in server.xml) with using the Manager web

application to deploy a new webapp.



You were reading this:

https://tomcat.apache.org/tomcat-9.0-doc/html-manager-howto.html#Deploy_a_Directory_or_WAR_by_URL



You should have been reading this:

http://tomcat.apache.org/tomcat-9.0-doc/config/host.html#Automatic_Application_Deployment



Mark



---------------------------------------------------------------------

To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

For additional commands, e-mail: users-h...@tomcat.apache.org


Reply via email to