cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Re: Class loading problems with custom components
Date Tue, 21 Oct 2003 12:24:23 GMT
Tuomo L wrote:

> Hi,
> I used to have all my custom components in WEB-INF/classes which worked
> fine, but now that my project grows, I packed them up in a jar and dropped
> the whole thing in WEB-INF/lib. It just doesn't work anymore. I tried using
> ParanoidServlet and that init-classloader parameter too.
> Here's what appears in cocoon error.log:
> ERROR   (2003-10-21) 12:23.02:465   [core.manager] (Unknown-URI)
> Unknown-thread/ExcaliburComponentSelector: The component instance for hint
> [my-component] has an invalid class name
> (
> I have in this component's java file:
> package;
> And by extracting the jar the class file is there, under a right dir.
> (bar/foo/components/modules/input/CustomInputModule.class)
> Tomcat seems to deploy the jar just fine, by looking at its log.
> Any ideas there?

The INTERFACES must be in the WEB-INF/classes or WEB-INF/libs direrctories.
The implementations can be anywhere, but the interfaces are what the ECM
needs to share.  Otherwise it is impossible to share those components.
That is one of the reasons the Avalon components are starting to split up
interface JARs from implementation JARs.


"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin

View raw message