On Sep 19, 2008, at 10:53 AM, Petr Sumbera wrote:

> 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.

One other consideration is how should (and will) this work with  
NetBeans? When you install NetBeans through the installer, it also  
includes Tomcat: http://download.netbeans.org/netbeans/6.5/beta/. But  
when you download NetBeans via OpenSolaris packages, then the right  
thing would be to use the installation of Tomcat that comes with  
webstack. At the same time, when Tomcat is started from NetBeans, it  
should probably use a separate configuration dir (CATALINA_BASE),  
because in NetBeans you are using Tomcat for *development*, and you  
probably don't want your development environment to clash with the  
"production" environment. This is what NetBeans already does - it  
creates its own CATALINA_BASE at $HOME/.netbeans/<nbversion>/ 
tomcat_base.

So, will this be possible with the Tomcat included with webstack?  
Will NetBeans be able to specify its own Tomcat configuration  
directory under the .netbeans dir?

Petr


>
> Plus patching Tomcat basic functionality can confuse migrating users
> from other systems.
>
> Petr
> _______________________________________________
>
>
> webstack-discuss mailing list
> webstack-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/webstack-discuss


Reply via email to