Re: Tomcat9 ROOT deploy

2018-08-01 Thread Mark Thomas
On 01/08/18 00:15, Mounika Reddy wrote:
> What I found is when I renamed .xml to ROOT.xml  in
> /conf/Catalina/
> 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
> /deploy folder.

Also as expected.

Mark


> 
> On Tue, Jul 31, 2018 at 2:30 PM, Mounika Reddy  wrote:
>> If I renamed ROOT.xml to .xml in the
>> /conf/Catalina/ then it picked up the file and
>> deployed in to webapps/. How can I make it so that
>> it deploys to the ROOT folder.
>>
>> On Tue, Jul 31, 2018 at 2:09 PM, Mounika Reddy  
>> wrote:
>>> In the same deploy folder where I had my war file.
>>>
>>> On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas  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  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
>>> /conf/Catalina//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:
>>>
>>> >> unpackWARs="true" autoDeploy="true">
>>>
>>> Contents of ROOT.xml
>>>
>>> 
>>> >>   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:
>>>
>>> 
>>>   -- 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-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


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

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


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



Re: Tomcat9 ROOT deploy

2018-07-31 Thread Mounika Reddy
What I found is when I renamed .xml to ROOT.xml  in
/conf/Catalina/
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
/deploy folder.

On Tue, Jul 31, 2018 at 2:30 PM, Mounika Reddy  wrote:
> If I renamed ROOT.xml to .xml in the
> /conf/Catalina/ then it picked up the file and
> deployed in to webapps/. How can I make it so that
> it deploys to the ROOT folder.
>
> On Tue, Jul 31, 2018 at 2:09 PM, Mounika Reddy  wrote:
>> In the same deploy folder where I had my war file.
>>
>> On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas  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  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
>> /conf/Catalina//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:
>>
>> > unpackWARs="true" autoDeploy="true">
>>
>> Contents of ROOT.xml
>>
>> 
>> >   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:
>>
>> 
>>   -- 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-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

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

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

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



Re: Tomcat9 ROOT deploy

2018-07-31 Thread Mounika Reddy
If I renamed ROOT.xml to .xml in the
/conf/Catalina/ then it picked up the file and
deployed in to webapps/. How can I make it so that
it deploys to the ROOT folder.

On Tue, Jul 31, 2018 at 2:09 PM, Mounika Reddy  wrote:
> In the same deploy folder where I had my war file.
>
> On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas  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  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
> /conf/Catalina//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:
>
>  unpackWARs="true" autoDeploy="true">
>
> Contents of ROOT.xml
>
> 
>    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:
>
> 
>   -- 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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


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

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

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



Re: Tomcat9 ROOT deploy

2018-07-31 Thread Mounika Reddy
In the same deploy folder where I had my war file.

On Tue, Jul 31, 2018 at 1:20 PM, Mark Thomas  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  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
 /conf/Catalina//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:

 >>> unpackWARs="true" autoDeploy="true">

 Contents of ROOT.xml

 
 >>>   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:

 
   -- 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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

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

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



Re: Tomcat9 ROOT deploy

2018-07-31 Thread Mark Thomas
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  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
>>> /conf/Catalina//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:
>>>
>>> >> unpackWARs="true" autoDeploy="true">
>>>
>>> Contents of ROOT.xml
>>>
>>> 
>>> >>   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:
>>>
>>> 
>>>   -- 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-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



Re: Tomcat9 ROOT deploy

2018-07-31 Thread Mounika Reddy
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  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
>> /conf/Catalina//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:
>>
>> > unpackWARs="true" autoDeploy="true">
>>
>> Contents of ROOT.xml
>>
>> 
>> >   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:
>>
>> 
>>   -- 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-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

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



Re: Tomcat9 ROOT deploy

2018-07-31 Thread Mark Thomas
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
> /conf/Catalina//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:
> 
>  unpackWARs="true" autoDeploy="true">
> 
> Contents of ROOT.xml
> 
> 
>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:
> 
> 
>   -- 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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



Tomcat9 ROOT deploy

2018-07-31 Thread Mounika Reddy
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
/conf/Catalina//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:



Contents of ROOT.xml




My tomcat folder structure:


  -- 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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org