[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] java.lang.NoClassDefFoundError: javax/xml/namespace/QName

Hi Saminda,

You don't specify whether your bundle imports the javax.xml.namespace
package using its Import-Package statement. Remember, ALL packages
used in your bundle must be imported using Import-Package, with the
exception of java.*.

Regards,
Neil

On 6/20/08, Saminda Abeyruwan <samindaa@xxxxxxxxx> wrote:
> 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
>