[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: Re[2]: [equinox-dev] ClassNotFoundException with org.eclipse.osgi_3.3.0.v20070530

Pavlin is correct. For 3.3 we no longer set the org.osgi.framework.bootdelegation=*

When using the org.eclipse.osgi jar directly (i.e java -jar org.eclipse.osgi_<version>.jar) then the framework is starting in a "strict" mode with respect to boot classpath delegation. You must using Import-Package to get access to any packages your bundle uses outside of the java.* name space like Toni mentioned.

Tom



Inactive hide details for Pavlin Dobrev ---09/19/2007 07:51:41 AM---The old behavior is org.osgi.framework.bootdelegation=*Pavlin Dobrev ---09/19/2007 07:51:41 AM---The old behavior is org.osgi.framework.bootdelegation=*

          Pavlin Dobrev <p.dobrev@xxxxxxxxxxx>
          Sent by: equinox-dev-bounces@xxxxxxxxxxx

          09/19/2007 07:40 AM

          Please respond to
          Pavlin Dobrev <p.dobrev@xxxxxxxxxxx>; Please respond to
          Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To

Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

cc


Subject

Re[2]: [equinox-dev] ClassNotFoundException with org.eclipse.osgi_3.3.0.v20070530

The old behavior is  org.osgi.framework.bootdelegation=*

This is changed because of requirement of the OSGi Release 4
Specification.



-Pavlin


TM> Usually you should import everything other than java.*
TM> (so add javax.xml.xpath, javax.crypto to your Import-Package directive)
TM> Check your org.osgi.framework.bootdelegation property. Usually
TM> equinox delegates everything to the bootclasspath (where javax
TM> resides) for historical reasons. But this behaviour is going to
TM> change and might have changed already in 3.3..

TM> /Toni

TM> -------- Original-Nachricht --------
>> Datum: Wed, 19 Sep 2007 12:47:10 +0200
>> Von: Tony Seebregts <tony.seebregts@xxxxxxxxx>
>> An: equinox-dev@xxxxxxxxxxx
>> Betreff: [equinox-dev] ClassNotFoundException with    org.eclipse.osgi_3.3.0.v20070530

>> Hi,
>>
>> I'm getting a class not found Exception for (some) javax classes when
>> using the latest Equinox release (org.eclipse.osgi_3.3.0.v20070530.jar)
>> - specifically:
>>
>> ERROR: java.lang.NoClassDefFoundError: javax.xml.xpath.XPathFactory
>> ERROR: java.lang.NoClassDefFoundError: javax.crypto.KeyGenerator
>>
>> When I switch back to an earlier (3.2) release the problem goes away -
>> the environment is identical in both cases, all that changes is the
>> org.eclipse.osgi jar file.
>>
>> If anybody has any ideas or can point me in the right direction it would
>> be really appreciated.
>>
>> regards
>>
>> Tony Seebregts
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@xxxxxxxxxxx
>>
https://dev.eclipse.org/mailman/listinfo/equinox-dev
TM> _______________________________________________
TM> equinox-dev mailing list
TM> equinox-dev@xxxxxxxxxxx
TM>
https://dev.eclipse.org/mailman/listinfo/equinox-dev


TM> __________ NOD32 2540 (20070919) Information __________

TM> This message was checked by NOD32 antivirus system.
TM>
http://www.eset.com




_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

GIF image

GIF image

GIF image