Basant Kumar kukreja wrote: > On Thu, Sep 18, 2008 at 11:19:54AM +0200, Petr Sumbera wrote: >> Basant Kumar kukreja wrote: >>> Why conf is located in /var/tomcat6/conf? Shouldn't it be /etc/tomcat6/conf? >> Tomcat expects its configuration at CATALINA_BASE/conf directory. It seems >> to be kind of hardwired there. > We can create a patch to remove this hardwired thing. If patch requires too > many changes then here is a alternative approach which I think can work : > * Put the configuration in /etc/tomcat6/conf > * Create the symbolic link in /var/tomcat6 directory e.g > # ln -s /etc/tomcat6/conf /var/tomcat6/conf > > If possible, patching the source code is best choice (and not using symlinks). > That's what Web Stack team is doing for integrating apache and php.
Tomcat is often used by several users/projects on the same server. In such case CATALINA_BASE is set to point to different directory. Moving configuration out of CATALINA_BASE and placing it in /etc wouldn't allow this. Plus patching Tomcat basic functionality can confuse migrating users from other systems. Petr