geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: OSGifying org.apache.geronimo.specs
Date Sat, 20 Oct 2007 00:03:46 GMT
I'm not sure that would work for javamail.  Javamail has a strange  
discovery system where implementation of protocols, such as smtp, are  
loaded directly from the application class loader.  I believe that if  
you hide the geronimo protocol implementations, javamail won't work.

-dain

On Oct 19, 2007, at 8:19 AM, Guillaume Nodet wrote:

> So the question is wether these classes are meant to be seen by other
> jars or if they are only used by the javax.mail package.  If they are
> to be exported, then it should be
>
>    <geronimo.osgi.export.pkg>javax.mail*,org.apache.geronimo.mail*</ 
> geronimo.osgi.export.pkg>
>
> but if they should be of private use, we need to add the following  
> property
>
>    <geronimo.osgi.private.pkg>org.apache.geronimo.mail*</ 
> geronimo.osgi.private.pkg>
>
> I'm leaning toward the second option
>
> On 10/19/07, Rick McGuire <rickmcg@gmail.com> wrote:
>> Guillaume,
>>
>> I'm working on a project that requires the latest javamail specs, and
>> I've discovered that the OSGI changes have caused the org.apache.*
>> classes to be ommitted from the jar file, which essentially  
>> renders this
>> package inoperable.  I was able to get those classes included by
>> changing the <geronimo.osgi.export.pkg> definition to "*".  Is  
>> that the
>> correct fix, or is something else more appropriate?
>>
>> Rick
>>
>
>
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/


Mime
View raw message