cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject classDirURL = jndi protocol?!
Date Wed, 31 Oct 2001 14:33:44 GMT
Hi folks!

I updated my source this morning and discovered that I couldn't get anything
to work!  The sitemap was failing to compile (it couldn't find an Avalon
component).  Curious.  I opened the log to view the classpath cocoon was
working on and found:

Classpath =
jndi:/localhost/cocoon/WEB-INF/classes;..\bin\bootstrap.jar;d:\wrkfile2\java
\jdk1.3\lib\tools.jar;

This was caused by the change in CocoonServlet.java on Tuesday by cziegeler:

  +        try {
  +            classDirURL =
this.servletContext.getResource("/WEB-INF/classes");
  +        } catch (java.net.MalformedURLException me) {
  +            this.log.warn("Unable to add WEB-INF/classes to the
classpath", me);
  +        }
  +        try {
  +            libDirURL = this.servletContext.getResource("/WEB-INF/lib");
  +        } catch (java.net.MalformedURLException me) {
  +            this.log.warn("Unable to add WEB-INF/lib to the classpath",
me);
  +        if (libDirURL != null &&
libDirURL.toExternalForm().startsWith("file:")) {
  +            root = new File(libDirURL.toExternalForm().substring(5));
  +        }
<snip/>
  +        if(classDirURL != null) {
  +            buildClassPath.append(classDirURL.toExternalForm());
   
               if (this.addClassDirs) {
                   try {
  +                    classLoader.addURL(classDirURL);
                   } catch (Exception e) {
  +                    log.debug("Could not add directory " + classDirURL,
e);
                   }
               }
           }
   
  +        if (root != null && root.isDirectory()) {
               File[] libraries = root.listFiles();
<snip/>

my URL's are returned as:

libDirURL: jndi:/localhost/cocoon/WEB-INF/lib
classDirURL: jndi:/localhost/cocoon/WEB-INF/classes

These obviously arn't files, what can I do to get this jndi protocol to work
and add the jar's to the classpath?

Help...?! :)

Oh, using JSDK 1.3.0, W2K, TC 4.0.1, latest cvs up of 20_branch.

J. 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message