cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <>
Subject Re: Problems trying to implement a SourceFactory
Date Sun, 18 Jul 2004 05:30:26 GMT
 From your comments it sounds like you are running against the latest in 
CVS. Have you tried this with 2.1.5? CocoonSourceResolver doesn't even 
exist in that version so perhaps you have just found a bug.


At 7/17/2004  09:43 PM, you wrote:
> >>>>> "Ralph" == Ralph Goers <> writes:
>     Ralph> I did some searching. CloningInheritableThreadLocal does
>     Ralph> exist as a private class in CocoonComponentManager.  What
>     Ralph> this has to do with what you are doing, I have no idea.
>Hm. Maybe there's more than one. Anyway, it doesn't appear to be that
>Looking carefully at the stack trace again:
>Caused by: java.lang.NoClassDefFoundError: 
>         at 
> org.apache.cocoon.components.source.CocoonSourceResolver.resolveURI(
>Line 53 reads: (this is from CVS head, last updated here a few days ago)
>             final Processor processor 
> =  EnvironmentHelper.getCurrentProcessor();
>There is no call to getCurrentProcessor() in the stack trace.
>This, I think is because EnvironmentHelper contains:
>     /** The environment information */
>     static protected final InheritableThreadLocal environmentStack 
> =   new CloningInheritableThreadLocal();
>which gets called first.
>Now CloningInheritableThreadLocal is indeed a local class within
>EnvironmentHelper. No constructors are defined.
>Exception in thread "main" java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>         at java.lang.reflect.Method.invoke(
>         at Loader.invokeMain(Unknown Source)
>         at Source)
>         at Loader.main(Unknown Source)
>Why the Loader can't find this class, I don't know (I know very little
>about Java, and nothing about reflection).
>Colin Paul Adams
>Preston Lancashire

View raw message