cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: Class loading problems with custom components
Date Tue, 21 Oct 2003 12:02:13 GMT
Tuomo L wrote:
> Answering to my own question: I had an error in the build file, and the
> jar file was constructed with a wrong directory sctructure. It's ok now.
> Sorry for this! :|

Also don't forget that classes/ is loaded before lib/ so be sure to 
remove your old versions from WEB-INF/classes or your old versions will 
be loaded and used by mistake.

Geoff


>>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
>>(bar.foo.components.modules.input.CustomInputModule).
>>
>>I have in this component's java file:
>>
>>package bar.foo.components.modules.input;
>>
>>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?
>>
>>-Tuomo
>>
>>
>>Cocoon-2.1
>>Tomcat 4.1.24
>>
> 
> 
> 
> 



Mime
View raw message