I am able to put classes in the <CATALINA_HOME>\shared\classes and have all of my hosts access a common class. Is there a way to set a user directory as a shared webapp like that?
Not unless you modify the startup scripts. I'd avoid this since that will be one more thing you have to maintain.
I am trying to move all of my webapps outside of the installed directories. I have a directory F:\www\common\classes and I want to make all classes in that directory shared by all hosts. Can that be done?
Keep in mind that if you shared classes/libraries between apps, you have to look out for static variables. If one app sets a static variable, all the other apps will be affected by the change. This can make debugging pretty difficult. That is why even if you have to duplicate libraries, you should supply these in WEB-INF/lib or WEB-INF/classes of each webapp. This is much safer and makes the apps more portable. If you need to move one app to another server, but not the other apps, the only thing you have to do is send the .war file and you won't have to worry about libraries external to the .war being required to set up on the other server.
But, if you want to forgo that advice, modify Tomcat's startup scripts to suit your needs.
Jake
Thanks,
Keith
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]