You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mounika Reddy <sp...@gmail.com> on 2018/07/31 15:44:43 UTC

Tomcat9 ROOT deploy

Hi all,

I'm trying to deploy a war file in tomcat and publish to root context.
I have created a ROOT.xml file in
<TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
not picking up war file or neither exploding war file into a
directory. But if I unpack war file into a folder then it's picking up
properly. War file name is cas##1.0.0.war

Host definition in server.xml:

<Host name="sso.mysite.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

Contents of ROOT.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context
  docBase="../deploy/cas"
/>

My tomcat folder structure:

<CATALINA_HOME>
  -- bin
  -- conf
  -- deploy
       -- cas##1.0.0.war
  -- logs
  -- lib
  -- temp
  -- webapps
  -- work

Versions:
Tomcat 9.0.1
Java 9.0.1
Windows Server 2012

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mark Thomas <ma...@apache.org>.
On 01/08/18 00:15, Mounika Reddy wrote:
> What I found is when I renamed <appname>.xml to ROOT.xml  in
> <TOMCAT_HOME>/conf/Catalina/<host>
> then war file exploded in to the ROOT directory in tomcat web apps
> folder. Is this the expected behavior??

Yes. You have unpackWARs configured so that is what Tomcat does. It
unpacks to the appBase to avoid potential conflicts.

> Because when I used
> as an exploded folder then it referred to it from the same
> <CATALINA_HOME>/deploy folder.

Also as expected.

Mark


> 
> On Tue, Jul 31, 2018 at 2:30 PM, Mounika Reddy <sp...@gmail.com> wrote:
>> If I renamed ROOT.xml to <appname>.xml in the
>> <TOMCAT_HOME>/conf/Catalina/<host> then it picked up the file and
>> deployed in to webapps/<appname>. How can I make it so that
>> it deploys to the ROOT folder.
>>
>> On Tue, Jul 31, 2018 at 2:09 PM, Mounika Reddy <sp...@gmail.com> wrote:
>>> In the same deploy folder where I had my war file.
>>>
>>> On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas <ma...@apache.org> wrote:
>>>> On 31/07/18 17:13, Mounika Reddy wrote:
>>>>> I tried first with the name as the war file name and didn't even pick
>>>>> my change but somehow it shows deployment is completed. I don't see
>>>>> the
>>>>> exploded war file.
>>>>
>>>> Where did you look?
>>>>
>>>> Mark
>>>>
>>>>
>>>>>
>>>>> 31-Jul-2018 12:10:15.342 INFO [main]
>>>>> org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
>>>>> configuration descriptor
>>>>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml]
>>>>> 31-Jul-2018 12:10:16.921 INFO [main]
>>>>> org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
>>>>> configuration descriptor
>>>>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml] has finished in
>>>>> [1,563] ms
>>>>>
>>>>> On Tue, Jul 31, 2018 at 11:52 AM, Mark Thomas <ma...@apache.org> wrote:
>>>>>> On 31/07/18 16:44, Mounika Reddy wrote:
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I'm trying to deploy a war file in tomcat and publish to root context.
>>>>>>> I have created a ROOT.xml file in
>>>>>>> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
>>>>>>> not picking up war file or neither exploding war file into a
>>>>>>> directory. But if I unpack war file into a folder then it's picking up
>>>>>>> properly. War file name is cas##1.0.0.war
>>>>>>>
>>>>>>> Host definition in server.xml:
>>>>>>>
>>>>>>> <Host name="sso.mysite.com"  appBase="webapps"
>>>>>>>             unpackWARs="true" autoDeploy="true">
>>>>>>>
>>>>>>> Contents of ROOT.xml
>>>>>>>
>>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>>> <Context
>>>>>>>   docBase="../deploy/cas"
>>>>>>> />
>>>>>>
>>>>>> The docBase above does not match the file structure below.
>>>>>>
>>>>>> It looks like you need docBase="../deploy/cas##1.0.0.war"
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> My tomcat folder structure:
>>>>>>>
>>>>>>> <CATALINA_HOME>
>>>>>>>   -- bin
>>>>>>>   -- conf
>>>>>>>   -- deploy
>>>>>>>        -- cas##1.0.0.war
>>>>>>>   -- logs
>>>>>>>   -- lib
>>>>>>>   -- temp
>>>>>>>   -- webapps
>>>>>>>   -- work
>>>>>>>
>>>>>>> Versions:
>>>>>>> Tomcat 9.0.1
>>>>>>> Java 9.0.1
>>>>>>> Windows Server 2012
>>>>>>>
>>>>>>> Thanks.
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mounika Reddy <sp...@gmail.com>.
What I found is when I renamed <appname>.xml to ROOT.xml  in
<TOMCAT_HOME>/conf/Catalina/<host>
then war file exploded in to the ROOT directory in tomcat web apps
folder. Is this the expected behavior?? Because when I used
as an exploded folder then it referred to it from the same
<CATALINA_HOME>/deploy folder.

On Tue, Jul 31, 2018 at 2:30 PM, Mounika Reddy <sp...@gmail.com> wrote:
> If I renamed ROOT.xml to <appname>.xml in the
> <TOMCAT_HOME>/conf/Catalina/<host> then it picked up the file and
> deployed in to webapps/<appname>. How can I make it so that
> it deploys to the ROOT folder.
>
> On Tue, Jul 31, 2018 at 2:09 PM, Mounika Reddy <sp...@gmail.com> wrote:
>> In the same deploy folder where I had my war file.
>>
>> On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas <ma...@apache.org> wrote:
>>> On 31/07/18 17:13, Mounika Reddy wrote:
>>>> I tried first with the name as the war file name and didn't even pick
>>>> my change but somehow it shows deployment is completed. I don't see
>>>> the
>>>> exploded war file.
>>>
>>> Where did you look?
>>>
>>> Mark
>>>
>>>
>>>>
>>>> 31-Jul-2018 12:10:15.342 INFO [main]
>>>> org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
>>>> configuration descriptor
>>>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml]
>>>> 31-Jul-2018 12:10:16.921 INFO [main]
>>>> org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
>>>> configuration descriptor
>>>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml] has finished in
>>>> [1,563] ms
>>>>
>>>> On Tue, Jul 31, 2018 at 11:52 AM, Mark Thomas <ma...@apache.org> wrote:
>>>>> On 31/07/18 16:44, Mounika Reddy wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> I'm trying to deploy a war file in tomcat and publish to root context.
>>>>>> I have created a ROOT.xml file in
>>>>>> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
>>>>>> not picking up war file or neither exploding war file into a
>>>>>> directory. But if I unpack war file into a folder then it's picking up
>>>>>> properly. War file name is cas##1.0.0.war
>>>>>>
>>>>>> Host definition in server.xml:
>>>>>>
>>>>>> <Host name="sso.mysite.com"  appBase="webapps"
>>>>>>             unpackWARs="true" autoDeploy="true">
>>>>>>
>>>>>> Contents of ROOT.xml
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <Context
>>>>>>   docBase="../deploy/cas"
>>>>>> />
>>>>>
>>>>> The docBase above does not match the file structure below.
>>>>>
>>>>> It looks like you need docBase="../deploy/cas##1.0.0.war"
>>>>>
>>>>>
>>>>>>
>>>>>> My tomcat folder structure:
>>>>>>
>>>>>> <CATALINA_HOME>
>>>>>>   -- bin
>>>>>>   -- conf
>>>>>>   -- deploy
>>>>>>        -- cas##1.0.0.war
>>>>>>   -- logs
>>>>>>   -- lib
>>>>>>   -- temp
>>>>>>   -- webapps
>>>>>>   -- work
>>>>>>
>>>>>> Versions:
>>>>>> Tomcat 9.0.1
>>>>>> Java 9.0.1
>>>>>> Windows Server 2012
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mounika Reddy <sp...@gmail.com>.
If I renamed ROOT.xml to <appname>.xml in the
<TOMCAT_HOME>/conf/Catalina/<host> then it picked up the file and
deployed in to webapps/<appname>. How can I make it so that
it deploys to the ROOT folder.

On Tue, Jul 31, 2018 at 2:09 PM, Mounika Reddy <sp...@gmail.com> wrote:
> In the same deploy folder where I had my war file.
>
> On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas <ma...@apache.org> wrote:
>> On 31/07/18 17:13, Mounika Reddy wrote:
>>> I tried first with the name as the war file name and didn't even pick
>>> my change but somehow it shows deployment is completed. I don't see
>>> the
>>> exploded war file.
>>
>> Where did you look?
>>
>> Mark
>>
>>
>>>
>>> 31-Jul-2018 12:10:15.342 INFO [main]
>>> org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
>>> configuration descriptor
>>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml]
>>> 31-Jul-2018 12:10:16.921 INFO [main]
>>> org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
>>> configuration descriptor
>>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml] has finished in
>>> [1,563] ms
>>>
>>> On Tue, Jul 31, 2018 at 11:52 AM, Mark Thomas <ma...@apache.org> wrote:
>>>> On 31/07/18 16:44, Mounika Reddy wrote:
>>>>> Hi all,
>>>>>
>>>>> I'm trying to deploy a war file in tomcat and publish to root context.
>>>>> I have created a ROOT.xml file in
>>>>> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
>>>>> not picking up war file or neither exploding war file into a
>>>>> directory. But if I unpack war file into a folder then it's picking up
>>>>> properly. War file name is cas##1.0.0.war
>>>>>
>>>>> Host definition in server.xml:
>>>>>
>>>>> <Host name="sso.mysite.com"  appBase="webapps"
>>>>>             unpackWARs="true" autoDeploy="true">
>>>>>
>>>>> Contents of ROOT.xml
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <Context
>>>>>   docBase="../deploy/cas"
>>>>> />
>>>>
>>>> The docBase above does not match the file structure below.
>>>>
>>>> It looks like you need docBase="../deploy/cas##1.0.0.war"
>>>>
>>>>
>>>>>
>>>>> My tomcat folder structure:
>>>>>
>>>>> <CATALINA_HOME>
>>>>>   -- bin
>>>>>   -- conf
>>>>>   -- deploy
>>>>>        -- cas##1.0.0.war
>>>>>   -- logs
>>>>>   -- lib
>>>>>   -- temp
>>>>>   -- webapps
>>>>>   -- work
>>>>>
>>>>> Versions:
>>>>> Tomcat 9.0.1
>>>>> Java 9.0.1
>>>>> Windows Server 2012
>>>>>
>>>>> Thanks.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mounika Reddy <sp...@gmail.com>.
In the same deploy folder where I had my war file.

On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas <ma...@apache.org> wrote:
> On 31/07/18 17:13, Mounika Reddy wrote:
>> I tried first with the name as the war file name and didn't even pick
>> my change but somehow it shows deployment is completed. I don't see
>> the
>> exploded war file.
>
> Where did you look?
>
> Mark
>
>
>>
>> 31-Jul-2018 12:10:15.342 INFO [main]
>> org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
>> configuration descriptor
>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml]
>> 31-Jul-2018 12:10:16.921 INFO [main]
>> org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
>> configuration descriptor
>> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml] has finished in
>> [1,563] ms
>>
>> On Tue, Jul 31, 2018 at 11:52 AM, Mark Thomas <ma...@apache.org> wrote:
>>> On 31/07/18 16:44, Mounika Reddy wrote:
>>>> Hi all,
>>>>
>>>> I'm trying to deploy a war file in tomcat and publish to root context.
>>>> I have created a ROOT.xml file in
>>>> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
>>>> not picking up war file or neither exploding war file into a
>>>> directory. But if I unpack war file into a folder then it's picking up
>>>> properly. War file name is cas##1.0.0.war
>>>>
>>>> Host definition in server.xml:
>>>>
>>>> <Host name="sso.mysite.com"  appBase="webapps"
>>>>             unpackWARs="true" autoDeploy="true">
>>>>
>>>> Contents of ROOT.xml
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <Context
>>>>   docBase="../deploy/cas"
>>>> />
>>>
>>> The docBase above does not match the file structure below.
>>>
>>> It looks like you need docBase="../deploy/cas##1.0.0.war"
>>>
>>>
>>>>
>>>> My tomcat folder structure:
>>>>
>>>> <CATALINA_HOME>
>>>>   -- bin
>>>>   -- conf
>>>>   -- deploy
>>>>        -- cas##1.0.0.war
>>>>   -- logs
>>>>   -- lib
>>>>   -- temp
>>>>   -- webapps
>>>>   -- work
>>>>
>>>> Versions:
>>>> Tomcat 9.0.1
>>>> Java 9.0.1
>>>> Windows Server 2012
>>>>
>>>> Thanks.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mark Thomas <ma...@apache.org>.
On 31/07/18 17:13, Mounika Reddy wrote:
> I tried first with the name as the war file name and didn't even pick
> my change but somehow it shows deployment is completed. I don't see
> the
> exploded war file.

Where did you look?

Mark


> 
> 31-Jul-2018 12:10:15.342 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
> configuration descriptor
> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml]
> 31-Jul-2018 12:10:16.921 INFO [main]
> org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
> configuration descriptor
> [C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml] has finished in
> [1,563] ms
> 
> On Tue, Jul 31, 2018 at 11:52 AM, Mark Thomas <ma...@apache.org> wrote:
>> On 31/07/18 16:44, Mounika Reddy wrote:
>>> Hi all,
>>>
>>> I'm trying to deploy a war file in tomcat and publish to root context.
>>> I have created a ROOT.xml file in
>>> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
>>> not picking up war file or neither exploding war file into a
>>> directory. But if I unpack war file into a folder then it's picking up
>>> properly. War file name is cas##1.0.0.war
>>>
>>> Host definition in server.xml:
>>>
>>> <Host name="sso.mysite.com"  appBase="webapps"
>>>             unpackWARs="true" autoDeploy="true">
>>>
>>> Contents of ROOT.xml
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <Context
>>>   docBase="../deploy/cas"
>>> />
>>
>> The docBase above does not match the file structure below.
>>
>> It looks like you need docBase="../deploy/cas##1.0.0.war"
>>
>>
>>>
>>> My tomcat folder structure:
>>>
>>> <CATALINA_HOME>
>>>   -- bin
>>>   -- conf
>>>   -- deploy
>>>        -- cas##1.0.0.war
>>>   -- logs
>>>   -- lib
>>>   -- temp
>>>   -- webapps
>>>   -- work
>>>
>>> Versions:
>>> Tomcat 9.0.1
>>> Java 9.0.1
>>> Windows Server 2012
>>>
>>> Thanks.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mounika Reddy <sp...@gmail.com>.
I tried first with the name as the war file name and didn't even pick
my change but somehow it shows deployment is completed. I don't see
the
exploded war file.

31-Jul-2018 12:10:15.342 INFO [main]
org.apache.catalina.startup.HostConfig.deployDescriptor Deploying
configuration descriptor
[C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml]
31-Jul-2018 12:10:16.921 INFO [main]
org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of
configuration descriptor
[C:\QA\tomcat9_cas\conf\Catalina\mysite.com\ROOT.xml] has finished in
[1,563] ms

On Tue, Jul 31, 2018 at 11:52 AM, Mark Thomas <ma...@apache.org> wrote:
> On 31/07/18 16:44, Mounika Reddy wrote:
>> Hi all,
>>
>> I'm trying to deploy a war file in tomcat and publish to root context.
>> I have created a ROOT.xml file in
>> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
>> not picking up war file or neither exploding war file into a
>> directory. But if I unpack war file into a folder then it's picking up
>> properly. War file name is cas##1.0.0.war
>>
>> Host definition in server.xml:
>>
>> <Host name="sso.mysite.com"  appBase="webapps"
>>             unpackWARs="true" autoDeploy="true">
>>
>> Contents of ROOT.xml
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <Context
>>   docBase="../deploy/cas"
>> />
>
> The docBase above does not match the file structure below.
>
> It looks like you need docBase="../deploy/cas##1.0.0.war"
>
>
>>
>> My tomcat folder structure:
>>
>> <CATALINA_HOME>
>>   -- bin
>>   -- conf
>>   -- deploy
>>        -- cas##1.0.0.war
>>   -- logs
>>   -- lib
>>   -- temp
>>   -- webapps
>>   -- work
>>
>> Versions:
>> Tomcat 9.0.1
>> Java 9.0.1
>> Windows Server 2012
>>
>> Thanks.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat9 ROOT deploy

Posted by Mark Thomas <ma...@apache.org>.
On 31/07/18 16:44, Mounika Reddy wrote:
> Hi all,
> 
> I'm trying to deploy a war file in tomcat and publish to root context.
> I have created a ROOT.xml file in
> <TOMCAT_HOME>/conf/Catalina/<host_name>/ROOT.xml. The issue is tomcat
> not picking up war file or neither exploding war file into a
> directory. But if I unpack war file into a folder then it's picking up
> properly. War file name is cas##1.0.0.war
> 
> Host definition in server.xml:
> 
> <Host name="sso.mysite.com"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true">
> 
> Contents of ROOT.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <Context
>   docBase="../deploy/cas"
> />

The docBase above does not match the file structure below.

It looks like you need docBase="../deploy/cas##1.0.0.war"


> 
> My tomcat folder structure:
> 
> <CATALINA_HOME>
>   -- bin
>   -- conf
>   -- deploy
>        -- cas##1.0.0.war
>   -- logs
>   -- lib
>   -- temp
>   -- webapps
>   -- work
> 
> Versions:
> Tomcat 9.0.1
> Java 9.0.1
> Windows Server 2012
> 
> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org