Note that there are some explanatory texts on larger screens.

plurals
  1. POgetting ClassCastException in OSGi standalone framework with JAXB
    text
    copied!<p>I am running OSGi framework through CLI by running command as below:</p> <p>java -jar org.eclipse.osgi_3.6.2.R36x_v20110210.jar -console</p> <p>My plugins run fine but while running my plugin that requires JAXB packages of system library (JavaSE1.6.xx) to parse xml file I am getting exception trace as below:</p> <pre><code>Exception in thread "DummyProgram" java.lang.ExceptionInInitializerError at javax.xml.bind.DatatypeConverter.&lt;clinit&gt;(DatatypeConverter.java:78) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:262) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$3.run(JAXBContextImpl.java:260) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.&lt;init&gt;(JAXBContextImpl.java:260) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:202) at javax.xml.bind.ContextFinder.find(ContextFinder.java:376) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) at com.entities.conf.JAXBMTSConfig.unmarshalApps(JAXBMTSConfig.java:113) 20 more.. Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl cannot be cast to javax.xml.datatype.DatatypeFactory at javax.xml.datatype.DatatypeFactory.newInstance(Unknown Source) at javax.xml.bind.DatatypeConverterImpl.&lt;clinit&gt;(DatatypeConverterImpl.java:742) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload