Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 73637 invoked from network); 31 Aug 2000 17:15:54 -0000 Received: from f285.law4.hotmail.com (HELO hotmail.com) (216.33.148.163) by locus.apache.org with SMTP; 31 Aug 2000 17:15:54 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 31 Aug 2000 10:15:54 -0700 Received: from 212.41.34.138 by lw4fd.law4.hotmail.msn.com with HTTP; Thu, 31 Aug 2000 17:15:53 GMT X-Originating-IP: [212.41.34.138] From: "Robin Green" To: cocoon-dev@xml.apache.org Subject: Re: [C2] ClassLoader issues Date: Thu, 31 Aug 2000 18:15:53 BST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 31 Aug 2000 17:15:54.0192 (UTC) FILETIME=[1E978D00:01C0136F] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Stefano Mazzocchi wrote: >Robin Green wrote: > > > > Giacomo Pati wrote: > > >I've never understud why JSP is able to compile and load classes out of > > >WEB-INF/lib but XSP does not? > > > > Funny, I was racking my brains over this just today. Spooky! > > > > It's because XSP compiler gets the classpath from System.getProperty > > ("java.class.path") IIRC, and Tomcat doesn't change the system property >to > > reflect its own internal classpath. Maybe that would be the solution - >but > > I'm not sure whether mucking around with predefined system properties is > > allowed, safe or sensible. > > > > So I would suggest an addition to the Servlet API as a cleaner solution >- > > and I know Stefano is/was on the Servlet expert group, so I'm not >talking to > > thin air! :-) > >Please, give me more precisie indications of what you mean. I mentioned this in another email on C-users: Maybe the Servlet API should have a method to get a classpath from the servlet engine, which would be useful e.g. for XSP compilation and XSP class loader purposes. Perhaps this classpath would be a list of directories and jars on the local filesystem, or perhaps it would be a list of URIs. Or maybe two methods, one for each alternative. The file list would be more useful in the case of javac. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.