[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [equinox-dev] java.lang.NoClassDefFoundError: javax/xml/namespace/QName
|
Sorry if this has already been answered.
When launching the equinox framework this way the class loading delegation is strict WRT boot delegation and the OSGi specification. In OSGi you only get classes/resources in java.* for free from the boot class loader. All other packages you must import. Try adding an Import-Package: javax.xml.namespace to your bundle manifest.
Tom
"Saminda Abeyruwan" ---06/20/2008 05:20:59 AM---Hi All, I need to QName class from J2SE1.5. When I call this through my bundle I get
![]()
From: | ![]()
"Saminda Abeyruwan" <samindaa@xxxxxxxxx> |
![]()
To: | ![]()
"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx> |
![]()
Date: | ![]()
06/20/2008 05:20 AM |
![]()
Subject: | ![]()
[equinox-dev] java.lang.NoClassDefFoundError: javax/xml/namespace/QName |
Hi All,
I need to QName class from J2SE1.5. When I call this through my bundle I get thejava.lang.NoClassDefFoundError: javax/xml/namespace/QName exception. I have set the Bundle-RequiredExecutionEnvironment: J2SE and I am using J2SE 1.5_08. I am using org.eclipse.osgi_3.3.2.R33x_v20080105.
I managed get this the bundle work in a embedded environment but not standalone. I even tried
java -jar $JAVA_OPTS -Dorg.osgi.service.http.port=8080 -Dosgi.parentClassloader=ext -Dosgi.contextClassLoaderParent=ext org.eclipse.osgi_3.3.2.R33x_v20080105.jar -console
but it didn't work.
Is there any particular reason why Equinox treated QName class differently.
Thank you!
Saminda
Thank you!
Saminda
--
Saminda Abeyruwan
Senior Software Engineer
WSO2 Inc. - www.wso2.org _______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev

