----- Original Message ----- From: "Giacomo Pati" To: Sent: Wednesday, December 06, 2000 5:04 PM Subject: Re: ClassLoader issues... > Berin Loritsch wrote: > > > > ----- Original Message ----- > > From: "Berin Loritsch" > > To: > > Sent: Wednesday, December 06, 2000 11:39 AM > > Subject: ClassLoader issues... > > > > > My next attempt will be to separate out the XSL pages > > > into their own Jar file, and see if that works. It may > > > be something flaky like the ClassLoader associated with > > > WebSphere does not recognize a package if there are no > > > classes in it. Mayby a Dummy class in each of the > > > packages with XSL sheets will force it to load. > > > > > > Any further insight from those who know? > > > > The Dummy class trick didn't work. It found the class, > > but not the resources. This is frustrating. Basically, > > unless the resources are in a separate archive, and in > > the SystemClassLoader, then Cocoon can't find the resources > > in IBM WebSphere. > > > > What do you guys think? Should we separate out the > > XSP/Sitemap resources into another Jar file, or live with > > EVERYTHING in the System classpath? > > Well, I don't know. I can't see which is producing the problem. Is it > Tomcat or WebSphere which has implemented something incorrect? If it is > WebSphere and we cannt use the war file (because of xml4j) we should > suggest putting all into the System classpath. WebSphere already has identified bugs with it's classloader (i.e. the URL handler for its own "classloader:" protocol). > BTW can't we use XML4j instead of Xerces for C2? Is C2 depandant on > Xerces? XML4J does not have namespace support (hense the problem). > > We might be able to parse the ClassPath setting looking for > > cocoon.jar, and build the URL with the format like this: > > > > jar://path/to/cocoon.jar!/path/to/resource.xsl > > > > It might be the most portable way to do it... The J2SE has support for a couple of protocols built in. One of the protocols is the "jar" protocol. Once you have the jar, you can get resources out of it.