On Tue, Jun 10, 2008 at 3:42 AM, Sahoo <[EMAIL PROTECTED]> wrote:
> Paul,
>
> Would you mindly briefly telling us what changes you had to do. What class
> loader does the OSGi-ed Struts use to load application specific classes and
> resources?
So far all thats been done has been to use the maven plugin to add the
OSGi manifest entries - so the class loader used is currently
unchanged. From a quick scan of the code the core parts of Struts try
to get the context class loader, but fall back to the current class's
ClassLoader if that is null - something like:
ClassLoader loader = Thread.currentThread().getContextClassLoader();
if (loader == null) {
loader = this.getClass().getClassLoader();
}
There are a few instances of it just using the current class's class
loader in more peripheral functionality
Niall
> Thanks,
> Sahoo
>
> Paul Benedict wrote:
>>
>> At the Struts project, we just OSGified our libraries with the
>> maven-bundle-plugin. We need some verification help though. Is anyone on
>> the
>> Felix team familiar enough with Struts to also look at the SNAPSHOT Struts
>> libraries, maybe load them, and check out their MANIFEST? Since these
>> libraries will be primarily used in a web container, I don't know how that
>> is different than a "regular" library.
>>
>> Thanks,
>> Paul
>>
>>
>