Re: context doesnt pick up

2016-02-22 Thread Mark Thomas
On 22/02/2016 08:53, Me Self wrote:
>>> Hi All
>>>
>>> When I put the context in server.xml it works fine, but if I put the same
>>> context tag in a xml file under /conf/Catalina/localhost/test.xml then
>>> tomcat doesn't pick it up. I would rather want to use the latter.
> 
>> You need to set deployOnStartup="true" for that to work.
> 
> And for that to work I would have to grant write access on the webapps
> folder for tomcat user?

Only if you want Tomcat to expand a WAR file in the appBase. There are
several ways you can avoid that:
- expand the WAR manually before Tomcat starts
- only place the expanded directory in the appBase
- set unpackWARs="false" on the host

Personally, I'd go with the second option.

Mark


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



Re: context doesnt pick up

2016-02-22 Thread Me Self
>> Hi All
>>
>> When I put the context in server.xml it works fine, but if I put the same
>> context tag in a xml file under /conf/Catalina/localhost/test.xml then
>> tomcat doesn't pick it up. I would rather want to use the latter.

>You need to set deployOnStartup="true" for that to work.

And for that to work I would have to grant write access on the webapps
folder for tomcat user?


On Sun, Feb 21, 2016 at 5:43 PM, Mark Thomas  wrote:

> On 20/02/2016 22:40, Me Self wrote:
> > Hi All
> >
> > When I put the context in server.xml it works fine, but if I put the same
> > context tag in a xml file under /conf/Catalina/localhost/test.xml then
> > tomcat doesn't pick it up. I would rather want to use the latter.
>
> You need to set deployOnStartup="true" for that to work.
>
> Mark
>
>
> >
> > The test.xml is
> > 
> > 
> >
> > Its a set up where the tomcat user has no write access to /webapps only
> > read. The war has been exploded to /webapps/test. Auto deployment is
> > disabled. In server.xml I have autoDeploy="false"
> deployOnStartup="false",
> > unpackWARS="false". The tomcat user only has read access to
> > /conf/Catalina/localhost/test.xml. Its tomcat 8 on linux.
> >
> > What Am I missing?
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: context doesnt pick up

2016-02-21 Thread Mark Thomas
On 20/02/2016 22:40, Me Self wrote:
> Hi All
> 
> When I put the context in server.xml it works fine, but if I put the same
> context tag in a xml file under /conf/Catalina/localhost/test.xml then
> tomcat doesn't pick it up. I would rather want to use the latter.

You need to set deployOnStartup="true" for that to work.

Mark


> 
> The test.xml is
> 
> 
> 
> Its a set up where the tomcat user has no write access to /webapps only
> read. The war has been exploded to /webapps/test. Auto deployment is
> disabled. In server.xml I have autoDeploy="false" deployOnStartup="false",
> unpackWARS="false". The tomcat user only has read access to
> /conf/Catalina/localhost/test.xml. Its tomcat 8 on linux.
> 
> What Am I missing?
> 


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



Re: context doesnt pick up

2016-02-21 Thread George Sexton



On 2/20/2016 4:28 PM, Me Self wrote:

I already tried an empty Context tag and no Context tag, makes no
difference. Catalina.out has not error. I tried setting logging level FINE
to see if there were anything related to how it scans
conf/Catalina/localhost/ but nothing.


Have you carefully checked your permissions on the context xml, and the 
actual directory where the application is deployed? I mean really carefully?





On Sun, Feb 21, 2016 at 12:11 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:


From: Me Self [mailto:wmso...@gmail.com]
Subject: context doesnt pick up
When I put the context in server.xml it works fine, but if I put the same
context tag in a xml file under /conf/Catalina/localhost/test.xml then
tomcat doesn't pick it up. I would rather want to use the latter.
The test.xml is


What Am I missing?

Reading the doc, which for the docBase attribute states:
"The value of this field must not be set unless the Context element is
defined in server.xml or the docBase is not located under the Host's
appBase."

http://tomcat.apache.org/tomcat-8.0-doc/config/context.html

I suspect that if you examined the logs you would find an error message
related to deployment of the test webapp.

If all you have in the  element is the docBase and your webapp is
located in the 's appBase directory, you don't need a 
element at all.

  - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail and
its attachments from all computers.


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




--
George Sexton
*MH Software, Inc.*
Voice: 303 438 9585
http://www.connectdaily.com


Re: context doesnt pick up

2016-02-21 Thread tomcat

On 20.02.2016 23:40, Me Self wrote:

Hi All

When I put the context in server.xml it works fine, but if I put the same
context tag in a xml file under /conf/Catalina/localhost/test.xml then
tomcat doesn't pick it up. I would rather want to use the latter.

The test.xml is



Its a set up where the tomcat user has no write access to /webapps only
read. The war has been exploded to /webapps/test. Auto deployment is
disabled. In server.xml I have autoDeploy="false" deployOnStartup="false",
unpackWARS="false". The tomcat user only has read access to
/conf/Catalina/localhost/test.xml. Its tomcat 8 on linux.

What Am I missing?


Maybe also : if it is really like above, then your test.xml is invalid XML.
The  tag is not closed.


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



RE: context doesnt pick up

2016-02-20 Thread Caldarale, Charles R
> From: prashant sharma [mailto:pacificmist.0...@gmail.com] 
> Subject: Re: context doesnt pick up

> I thing you need to place the web app outside tomcat lets say in
> /users/myfolder/test
> And then  set docbase path in /conf/Catalina/localhost/test.xml
> to 
> and then stop start tomcat.

That doesn't help when both deployOnStartup and autoDeploy are set to false.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: context doesnt pick up

2016-02-20 Thread prashant sharma
On Sat, Feb 20, 2016 at 11:28 PM, Me Self  wrote:

> I already tried an empty Context tag and no Context tag, makes no
> difference. Catalina.out has not error. I tried setting logging level FINE
> to see if there were anything related to how it scans
> conf/Catalina/localhost/ but nothing.
>
> I thing you need to place the web app outside tomcat lets say in
/users/myfolder/test
And then  set docbase path in /conf/Catalina/localhost/test.xml
to 
and then stop start tomcat.


> On Sun, Feb 21, 2016 at 12:11 AM, Caldarale, Charles R <
> chuck.caldar...@unisys.com> wrote:
>
> > > From: Me Self [mailto:wmso...@gmail.com]
> > > Subject: context doesnt pick up
> >
> > > When I put the context in server.xml it works fine, but if I put the
> same
> > > context tag in a xml file under /conf/Catalina/localhost/test.xml then
> > > tomcat doesn't pick it up. I would rather want to use the latter.
> >
> > > The test.xml is
> > > 
> > > 
> >
> > > What Am I missing?
> >
> > Reading the doc, which for the docBase attribute states:
> > "The value of this field must not be set unless the Context element is
> > defined in server.xml or the docBase is not located under the Host's
> > appBase."
> >
> > http://tomcat.apache.org/tomcat-8.0-doc/config/context.html
> >
> > I suspect that if you examined the logs you would find an error message
> > related to deployment of the test webapp.
> >
> > If all you have in the  element is the docBase and your webapp
> is
> > located in the 's appBase directory, you don't need a 
> > element at all.
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> > received this in error, please contact the sender and delete the e-mail
> and
> > its attachments from all computers.
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>


Re: context doesnt pick up

2016-02-20 Thread Me Self
OK thanks.

On Sun, Feb 21, 2016 at 12:25 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
> > Subject: RE: context doesnt pick up
>
> > If all you have in the  element is the docBase and your webapp
> is located
> > in the 's appBase directory, you don't need a  element at
> all.
>
> Sorry, since you have both deployOnStartup and autoDeploy set to false,
> you will need the  element inside server.xml - that's the only way
> to get a webapp going when you have disabled all the other mechanisms.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: context doesnt pick up

2016-02-20 Thread Me Self
I already tried an empty Context tag and no Context tag, makes no
difference. Catalina.out has not error. I tried setting logging level FINE
to see if there were anything related to how it scans
conf/Catalina/localhost/ but nothing.


On Sun, Feb 21, 2016 at 12:11 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:

> > From: Me Self [mailto:wmso...@gmail.com]
> > Subject: context doesnt pick up
>
> > When I put the context in server.xml it works fine, but if I put the same
> > context tag in a xml file under /conf/Catalina/localhost/test.xml then
> > tomcat doesn't pick it up. I would rather want to use the latter.
>
> > The test.xml is
> > 
> > 
>
> > What Am I missing?
>
> Reading the doc, which for the docBase attribute states:
> "The value of this field must not be set unless the Context element is
> defined in server.xml or the docBase is not located under the Host's
> appBase."
>
> http://tomcat.apache.org/tomcat-8.0-doc/config/context.html
>
> I suspect that if you examined the logs you would find an error message
> related to deployment of the test webapp.
>
> If all you have in the  element is the docBase and your webapp is
> located in the 's appBase directory, you don't need a 
> element at all.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


RE: context doesnt pick up

2016-02-20 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
> Subject: RE: context doesnt pick up

> If all you have in the  element is the docBase and your webapp is 
> located 
> in the 's appBase directory, you don't need a  element at all.

Sorry, since you have both deployOnStartup and autoDeploy set to false, you 
will need the  element inside server.xml - that's the only way to get 
a webapp going when you have disabled all the other mechanisms.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



RE: context doesnt pick up

2016-02-20 Thread Caldarale, Charles R
> From: Me Self [mailto:wmso...@gmail.com] 
> Subject: context doesnt pick up

> When I put the context in server.xml it works fine, but if I put the same
> context tag in a xml file under /conf/Catalina/localhost/test.xml then
> tomcat doesn't pick it up. I would rather want to use the latter.

> The test.xml is
> 
> 

> What Am I missing?

Reading the doc, which for the docBase attribute states:
"The value of this field must not be set unless the Context element is defined 
in server.xml or the docBase is not located under the Host's appBase."

http://tomcat.apache.org/tomcat-8.0-doc/config/context.html

I suspect that if you examined the logs you would find an error message related 
to deployment of the test webapp.

If all you have in the  element is the docBase and your webapp is 
located in the 's appBase directory, you don't need a  element 
at all.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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