tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: MySQL DBCP Connection Example?
Date Sat, 18 Oct 2008 18:26:33 GMT
Martin Gainty wrote:
> getting tired ot correcting these emails..david i

Chris is correct in this case. It is you who is in error Martin.

>> From:
>> To:
>> Subject: Re: MySQL DBCP Connection Example?
> David,
> David Smith wrote:
>>>> As an alternative to storing webapps in tomcat's webapps directory, you
>>>> could place a <Context ... > ... </Context> xml fragment in a
file in
>>>> conf/Catalina/localhost with docBase and path properly set.
> docBase:yes
> path:no
> It is illegal to set the path of a <Contect> unless the context is
>> MG>Perfectly LEGAL

No. Chris is 100% correct. Path should only ever be used in a Context
element when defined in server.xml and defining contexts in server.xml
is a bad idea (as is made clear in the docs).

>> comment out your manager context in /conf/Catalina/localhost
>> <!--Context docBase="${catalina.home}/server/webapps/manager"  privileged="true"
antiResourceLocking="false" antiJARLocking="false" -->
>>   <!--ResourceLink name="users" global="UserDatabase" type="org.apache.catalina.UserDatabase"/
>> <!-- /Context -->
>> and look at what I see in the log
>> DEBUG main org.apache.catalina.session.ManagerBase - No persisted data file found
>> and you get 404 when accessing the manager app
> defined in server.xml, which you shouldn't do. Tomcat will use the name
> of the XML file as the context path (unless it's called ROOT, in which
> case the context path with be "").
> -(dumbkopf) chris

There is no need for name calling even if Chris was wrong (which he
isn't). Lets try and keep it professional. An apology would be a good
place to start.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message