Craig R. McClanahan wrote: > > > > Is anybody else using SOAP and tomcat 4? If so, have you run into a need to > > share classes across contexts, and if so, how did you do it? I'd like to > > improve on my copy-on-startup approach. > > > > In general, it's really easy to share classes across webapps -- simply put > them in a JAR in the $CATALINA_HOME/common/lib subdirectory. This is > documented on the general discussion of how class loading works in Tomcat: > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html > > The only potential complexity is if such a shared class tries to load a > class that is in the webapp's /WEB-INF/classes or /WEB-INF/lib directory
...which is exactly the case I'm describing. > -- this will not be possible unless the shared class takes special > measures to use the thread context class loader. Yes, but we're talking about SOAP, so I'd prefer not to customize it. In large scale apps I believe there is a need for .war-deployable shared classes. Perhaps it could be accomplished with nested webapps? Just something for you to think about for a future version. - Glenn -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>