You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Stavrinides <p....@albourne.com> on 2008/02/13 15:38:55 UTC

Configuring the manager application for Tomcat 6

Hi all,

This may be a trivial problem for most, but here goes... I am upgrading 
my Tomcat 5 server to Tomcat 6, which has gone pretty smoothly except 
for one problem with the manager application.

A copy of the manager application is running on my server instance, I am 
also using a JDBC realm with basic authentication to authenticate for 
the manager application. The caveat is that I require the postgres 
driver on my classpath, so I placed it in $CATALINA_BASE/lib but the 
manager app  still can't authenticate and I get JDBC related errors in 
the logs (it can't find the driver?), but when I place the driver in 
$CATALINA_HOME/lib instead everything works.

Ideally I don't want to mix proprietary libraries with the Tomcat 
libraries in $CATALINA_HOME/lib, I would like to leave the default 
binaries alone to simplify upgrades, everything should be run in my 
instance. So I need to find out how to configure the manager application 
to look in the correct place for the driver. I realize that there have 
been major changes to the classloader, and I have also seen the 
documentation for configuring <GlobalNamingResources> and realize this 
might be what I need, is it? If so how do I configure a <Resource> for 
my JDBC realm and driver. Why is it that placing the library in 
$CATALINA_HOME/lib just works? and the manager app knows how to find it 
there.

Thanks a lot for your help,
Peter

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


Re: Configuring the manager application for Tomcat 6

Posted by Mark Thomas <ma...@apache.org>.
Caldarale, Charles R wrote:
> The documentation in RUNNING.txt is incorrect for Tomcat 6.  In
> particular, there is no $CATALINA_BASE/lib, as you can tell by looking
> in the conf/catalina.properties file.  The common.loader is defined to
> use ${catalina.home}/lib.

Thanks for the heads up. Trunk has been fixed. Patch proposed for 6.0.x

Mark


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


Re: Configuring the manager application for Tomcat 6

Posted by Peter Stavrinides <p....@albourne.com>.
Wow it works that was easy!... thanks so much Charles!!! would have 
taken me forever to find this.

Peter

Caldarale, Charles R wrote:
>> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com] 
>> Subject: Configuring the manager application for Tomcat 6 
>>
>> Why is it that placing the library in $CATALINA_HOME/lib 
>> just works? and the manager app knows how to find it 
>> there.
>>     
>
> The documentation in RUNNING.txt is incorrect for Tomcat 6.  In
> particular, there is no $CATALINA_BASE/lib, as you can tell by looking
> in the conf/catalina.properties file.  The common.loader is defined to
> use ${catalina.home}/lib.
>
> You might want to enable the shared.loader in conf/catalina.properties,
> targeting ${catalina.base}/lib, and put your JDBC driver there.
>
> Note that RUNNING.txt claims that *every* Tomcat directory can be under
> $CATALINA_BASE, which, of course, makes no sense, since that would leave
> nothing under $CATALINA_HOME.  Looks like this file wasn't updated for
> the revised directory structure.
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   

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


RE: Configuring the manager application for Tomcat 6

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter Stavrinides [mailto:p.stavrinides@albourne.com] 
> Subject: Configuring the manager application for Tomcat 6 
> 
> Why is it that placing the library in $CATALINA_HOME/lib 
> just works? and the manager app knows how to find it 
> there.

The documentation in RUNNING.txt is incorrect for Tomcat 6.  In
particular, there is no $CATALINA_BASE/lib, as you can tell by looking
in the conf/catalina.properties file.  The common.loader is defined to
use ${catalina.home}/lib.

You might want to enable the shared.loader in conf/catalina.properties,
targeting ${catalina.base}/lib, and put your JDBC driver there.

Note that RUNNING.txt claims that *every* Tomcat directory can be under
$CATALINA_BASE, which, of course, makes no sense, since that would leave
nothing under $CATALINA_HOME.  Looks like this file wasn't updated for
the revised directory structure.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org