cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Proposal] Cocoon.getClassPath and Tomcat4
Date Fri, 15 Mar 2002 08:48:36 GMT


is it posible to add the following 3 lines to

 protected String getClassPath() throws ServletException {
         StringBuffer buildClassPath = new StringBuffer();

         File root = null;
         if (servletContextPath != null) {
            // Old method.  There *MUST* be a better method than this...

+            String classpath =
+            if (classpath != null)
+              return classpath;

Tomcat use this classpath compiling JSP pages.I know, this is only usefull using
Tomcat4, but it fixes a problem in my development environment where I have not
deployed all jar files/classes in WEB-INF/lib (very nice for debugging and
online code changes). I have configured my own Classloder in Tomcat which
extends the normal WebAppLoader. I use the "addRepository(path)" of WebAppLoader
to add extra directories to the WebApp classpath. This allows adding pojects of
my development workbench to add to the WebApp classpath without deploying them
to WEB-INF/classes. I am using Eclipse (

Thanks, Volker

To unsubscribe, e-mail:
For additional commands, email:

View raw message