geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: TCCL in doStart
Date Sat, 29 Oct 2005 18:39:36 GMT

On Oct 29, 2005, at 11:34 AM, Davanum Srinivas wrote:

> here's a log snippet from my GBean's doStart:
>
> 14:31:15,843 INFO  [AxisHTTPBean] TCCL 
> :sun.misc.Launcher$AppClassLoader@53ba3d
> 14:31:15,843 INFO  [AxisHTTPBean] GBean ClassLoader:
> [org.apache.geronimo.kernel.config.MultiParentClassLoader
> id=org/apache/axis2]
>
> Please note that i don't have the addAttribute with "classLoader" in
> my GBEAN_INFO like all the other gbeans. (since i did not know how to
> create the GBean programatically with a class loader and load it into
> the kernel in my junit test case)


You create the gbeanInfo, set the attributes you know about, and the 
kernel will take care of setting the magic classLoader attribute for 
you.  Be sure to declare the classLoader attribute non-persistent.

david jencks

>
> thanks,
> dims
>
> On 10/29/05, Dain Sundstrom <dain@iq80.com> wrote:
>> Now I'm confused.  I thought these would be the exact same
>> classloader.  I thought there would only be one. Maybe David Jencks
>> can help here.
>>
>> -dain
>>
>> On Oct 29, 2005, at 10:58 AM, Davanum Srinivas wrote:
>>
>>> The class loader that loaded the GBean. Sorry, i forgot to mention
>>> that.
>>>
>>> thanks,
>>> dims
>>>
>>> On 10/29/05, Dain Sundstrom <dain@iq80.com> wrote:
>>>
>>>> On Oct 29, 2005, at 10:11 AM, Davanum Srinivas wrote:
>>>>
>>>>
>>>>> DJ mentioned that this is because the TCCL is set to the
>>>>> configurations' classloader. So i had to forcibly set the context
>>>>> class loader myself.
>>>>>
>>>>
>>>> What did you forcibly set it to?
>>>>
>>>> -dain
>>>>
>>>>
>>>
>>>
>>> --
>>> Davanum Srinivas : http://wso2.com/blogs/
>>>
>>
>>
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>


Mime
View raw message