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
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.
(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 ?
(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
Fixed in java experimental overlay, will be committed to tree sometime soon.
Committed into tree, closing bug.