On 1/10/06, Sriram Narayanan <[EMAIL PROTECTED]> wrote:
> On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote:
>
> > >
> > > What you could do is to write your own WebAppClassLoader that'd add
> > > these folders to its lookup list.
> >
> > Hmm. interesting. How can I let such a class loader implementation to be
> > used instead of tomcat's WebAppClassLoader ?
> >
>
> The following links should help
> http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html
> http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/loader/WebappLoader.html
> http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
>

I wrote something that works for me:
http://issues.apache.org/bugzilla/show_bug.cgi?id=38223

Essentially: You need to
1. Place a class in CATALINA_HOME/server/classes
2. Place a context.xml for your web app at CATALINA_HOME/conf/Catalina/localhost
3. Place a myclasses.properties file at some location and edit the
context.xml to point to this file.
4. Edit the myclasses.properties file to contain a list of all the
folders that contain your classes.
5. Start Tomcat and use your Web App. Your WebApp need not have all
the classes in WEB-INF/classes. They can be at the locations specified
in the myclasses.properties file.

Let me know if you find this useful

-- Sriam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to