cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject [C2] ClassLoader bug in serializers (fwd)
Date Wed, 25 Jul 2001 13:19:15 GMT
Hi All,

	One of our FOP developers, Keiron Liddle has come across the following
	bug/feature to do with classloaders and serializers. Below is a
	summary of what is happening. Any comments ?

	Cheers,

	Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:

---------- Forwarded message ----------
Date: Wed, 25 Jul 2001 13:17:51 +0200
From: Keiron Liddle <keiron@aftexsw.com>
To: Marcus Crafter <crafterm@fztig938.bank.dresdner.net>
Subject: ClassLoader bug in serializers

Hi,

I have encountered a problem with the class loader when using a serializer.

The serializer in question is the FOPSerializer.

The class has the following class loader when add as a component from the
sitemap (in the method addSitemapComponent).
org.apache.tomcat.loader.AdaptiveClassLoader12

This eventually (through a convoluted path) leads to FOP itself being
loaded with the same class loader. This happens when the
org.apache.fop.app.Driver class is instantiated (or possibly some other
place, loading config).

The problem is that I want to load a class (from FOP) that is in another
jar file. The jar file in question is correctly placed into WEB-INF/lib/.

Due to the class loader being incorrect it cannot find the classes (files)
in the other jar file.

Does the Serializer have the correct class loader?
If so, Can FOP be loaded using the correct class loader (the one that
contains the WEB-INF/lib/*.jar)?

Tomcat: v 3.2.2
Cocoon: Current CVS (also older versions)




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


Mime
View raw message