|
Issue Type:
|
Bug
|
Affects Versions:
|
2.4-RC1
|
Assignee:
|
Justin Deoliveira
|
Components:
|
Configuration, Global
|
Created:
|
22/Aug/13 10:37 PM
|
Description:
|
The default distro-releases of tomcat6 in Ubuntu Lucid + Precise both:
- Run Tomcat with a working directory of
/var/lib/tomcat6
- Have a
logs/ dir (symlink) within that
When GlobalSettingsPage.logLevelsAppend() goes searching for available log configurations, it uses GeoServerResourceLoader.find("logs") which ends up finding /var/lib/tomcat6/logs rather than $GEOSERVER_DATA_DIRECTORY/logs .
This leads to (a) being unable to select anything other than the default logging config, and (b) the actual active logging configs being copied to /var/lib/tomcat6/logs (LoggingUtils.initLogging() ) so changes to the data-dir ones don’t have any effect.
Seems that either:
- LoggingUtils & GlobalSettingsPage should pass a parent (data-dir) into
GeoServerResourceLoader.find() ; or
- the resource loader should check baseDirectory before relative paths with respect to the current working dir; or
- Geoserver changes the CWD to data-dir on startup.
Thoughts?
|
Environment:
|
Ubuntu 10.04 + 12.04 with distro Tomcat6
|
Project:
|
GeoServer
|
Priority:
|
Minor
|
Reporter:
|
Robert Coup
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)