Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 20759 invoked by uid 500); 31 Oct 2001 14:33:04 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 20740 invoked from network); 31 Oct 2001 14:33:04 -0000 Message-ID: From: "Morrison, John" To: "'cocoon-dev@xml.apache.org'" Subject: classDirURL = jndi protocol?! Date: Wed, 31 Oct 2001 14:33:44 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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)); + } + 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(); 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