On 7/3/2016 5:21 PM, Paul Roubekas wrote:
> On 7/3/2016 4:41 PM, Mark Thomas wrote:
>> On 03/07/2016 18:37, Paul Roubekas wrote:
>>
>>> Changes that need to be made to the server.xml file
>>> The below list of changes are for the conf/server.xml file. A new XML
>>> element needs to be added to the <Host> XML stanza.
>>> Within the <Host> element stands a <Context> element needs to be added.
>>> The path= attribute for the <Context> element needs to be blank.
>>> The docbase= attribute needs to be equal to the .WAR file root
>>> directory. In this example Abc_Website03. I'm not sure
>>> the debug= attribute needs to be in the context element. But I wasn't
>>> going to spend time testing it. I am also not sure
>>> if the reloadable= attribute is required. But once again in the interest
>>> of saving time it was not tested with the reloadable= attribute removed.
>>> .
>>> .
>>> .
>>> <Host name="localhost" appBase="webapps"
>>> unpackWARs="true" autoDeploy="true">
>>>
>>> <Context path="" docBase="Abc_Website03" debug="0"
>>> reloadable="true"></Context>
>> That is very bad advice. It will result in double deployment of that web
>> application.
>>
>> If you want to deploy a web application as the default web application,
>> name it ROOT.war (ROOT if a directory) as per the docs. [1]
>>
>> If you want to retain some version identified in the name, use a Context
>> Version, e.g. ROOT##my-version-string.war
>>
>> Mark
>>
>>
>> [1] http://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Naming
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
> Thank you very much for the correction Mark. I will change my
> implementation and notes. I did not run across the link you gave me
> during my research.
>
>
After making the above suggested changes the desired behavior goes
away. Now instead of my application's landing page I get the tomcat
welcome page. I am using Eclipse Mars.2 Is it possible I simply
implemented the suggestions incorrectly? Below is what eclipse did to
the server.xml file.
<Context docBase="C:\apache-tomee-plume\wtpwebapps\ROOT##000"
path="/ROOT##000" reloadable="true"
source="org.eclipse.jst.jee.server:ROOT##000">
--
The people that bring you Usque <http://Usque.software/>.