Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 143091 - logging.properties for tomcat-5.5.17
Summary: logging.properties for tomcat-5.5.17
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Lowest trivial (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2006-08-07 07:35 UTC by Massimo Fantin
Modified: 2006-09-04 14:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Fantin 2006-08-07 07:35:51 UTC
In the logging.properties on /etc/tomcat-5.5/ it seem that don't work if the File.Handler.directory is pointed to a symlink directory 

The original file have :

1catalina.org.apache.juli.FileHandler.directory = ${catalina_base}/logs
... and other ....

on /etc/conf.d/tomcat-5.5 
CATALINA_BASE=/var/lib/tomcat-5.5

but /var/lib/tomcat-5.5/logs is a symlink to /var/log/tomcat-5.5

and in this configuration i have no logging 

if i change 
1catalina.org.apache.juli.FileHandler.directory = /var/log/tomcat-5.5 

logging work !!

Why symlink don't work for tomcat ?

Thank You
Massimo
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-08-07 16:17:14 UTC
I am looking into this with upstream. In the mean time, I am wondering if it's because of how we have them in /etc/conf.d/tomcat-5.5

Can you please add a / to the end of both CATALINA_HOME, and _BASE. So it looks like
CATALINA_BASE=/var/lib/tomcat-5.5/

I wonder if the lack of the / is causing it to be interpreted as a file not a dir.

Otherwise might have to go with absolute paths, no symlinks, which I would hope to avoid doing. 
Comment 2 Massimo Fantin 2006-08-07 23:27:11 UTC
(In reply to comment #1)
> I am looking into this with upstream. In the mean time, I am wondering if it's
> because of how we have them in /etc/conf.d/tomcat-5.5
> 
> Can you please add a / to the end of both CATALINA_HOME, and _BASE. So it looks
> like
> CATALINA_BASE=/var/lib/tomcat-5.5/
> 
> I wonder if the lack of the / is causing it to be interpreted as a file not a
> dir.
> 
> Otherwise might have to go with absolute paths, no symlinks, which I would hope
> to avoid doing. 
> 

Yes, Thanks with the "/" work !!

Massimo

Ps.
What resolution i can use for close this bug ? 

Comment 3 Massimo Fantin 2006-08-07 23:30:57 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > I am looking into this with upstream. In the mean time, I am wondering if it's
> > because of how we have them in /etc/conf.d/tomcat-5.5
> > 
> > Can you please add a / to the end of both CATALINA_HOME, and _BASE. So it looks
> > like
> > CATALINA_BASE=/var/lib/tomcat-5.5/
> > 
> > I wonder if the lack of the / is causing it to be interpreted as a file not a
> > dir.
> > 
> > Otherwise might have to go with absolute paths, no symlinks, which I would hope
> > to avoid doing. 
> > 
> 
> Yes, Thanks with the "/" work !!
> 
> Massimo
> 
> Ps.
> What resolution i can use for close this bug ? 
> 

other ps.

in my report of :
1catalina.org.apache.juli.FileHandler.directory = ${catalina_base}/logs
the right is :
1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs

Bye
Comment 4 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-08-08 06:20:25 UTC
Fixed in java experimental overlay, will be committed to tree sometime soon.
Comment 5 William L. Thomson Jr. (RETIRED) gentoo-dev 2006-09-04 14:56:52 UTC
Committed into tree, closing bug.