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 95025 invoked from network); 25 Jan 2001 19:01:32 -0000 Received: from news.iae.nl (HELO news.IAEhv.nl) (root@194.151.64.4) by h31.sny.collab.net with SMTP; 25 Jan 2001 19:01:32 -0000 Received: (from uucp@localhost) by news.IAEhv.nl (8.9.1/8.9.1) with IAEhv.nl id UAA25522 for cocoon-dev@xml.apache.org; Thu, 25 Jan 2001 20:01:33 +0100 (MET) Received: from bowtie.nl (nietzsche.intra.bowtie.nl [192.168.4.16]) by bowtie.nl (8.11.1/8.11.1) with ESMTP id f0PItrM95199 for ; Thu, 25 Jan 2001 19:55:53 +0100 (CET) (envelope-from marc@bowtie.nl) Sender: marc@bowtie.nl Message-ID: <3A7076B9.3B83E04C@bowtie.nl> Date: Thu, 25 Jan 2001 19:55:53 +0100 From: Marc van Kempen Organization: BowTie Technology X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: XSP compilation and classpaths problems References: <20000125121903.2bc3bb42.scarvalho@criticalsoftware.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi All, I have run into a very annoying problem and I hope you can help me. I'm trying to setup Apache jserv 1.2 and Cocoon, to run into different virtual servers. However, I have an application that I want to install into several virtual servers. The application version might differ, but the names will be the same, so I want to completely separate them. I thought I could do that by putting the 'jars that make up the application into the zone repository path. I included cocoon.jar in the repository as well. It works reasonably well, however when I to run an xsp file, I get compilation errors, reporting that the compiler can't find the classes that I put into the repository instead of the classpath. On further reflection and inspection of the source code, this is logical since only the classpath entries are given to the compiler, the compiler never sees the repository entries. I'm speculating that it would work when the class would be generated, on the other hand a separate classloader is instantiated for the xsp generated class, so it might not see them at all. (if I read correctly) But then how am I supposed to get the result I'm looking for, or is this not possible with the current design? Is this a crazy thing that I want? I thought about changing the code for the xsp compiler, but I can't think of a portable way to do it. At best it would be very jserv specific. So, please any suggestions? Regards, Marc.