Peter Shi
2009-03-11 23:53:07 UTC
I am developing a module which is dependent upon the jaxb 2.1 libraries on NB
6.5. Here is my problems:
(1) If I create a library wrapper module which includes the jaxb-api,
jaxb-impl etc. jars, at the run-time, I run into a
SEVERE [global]
javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory
not found
- with linked exception:
[java.lang.ClassNotFoundException: Will not load class
com.sun.xml.bind.v2.ContextFactory arbitrarily from one of
org.netbeans.StandardModule$***@869470[org.netbeans.libs.jaxb]
and
org.netbeans.StandardModule$***@b524aa[com.xxxx.test.lib];
see http://wiki.netbeans.org/DevFaqModuleCCE]
if I remove the jaxb-api,jaxb-impl etc jars from the library wrapper module,
the library wrapper module only contain my stub classes, at the run-time, I
got another ClassCastException:
SEVERE [global]
java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl
cannot be cast to javax.xml.bind.JAXBContext
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:150)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at com.xxxx.runtime.holders.JaxBHuskHolder.getJAXBContext(Unknown
Source)
at com.xxxx.runtime.util.WSUtil.serialize(Unknown Source)
at com.xxxx.runtime.WebServiceProxyImpl.dispatchRequest(Unknown Sour
How do I solve the dilemma?
(2) I looked the jabx library module in the NB6.5, Actually it is friend
package, no public API are exposed. Could I dynamically register my libarary
as a friend package to jaxb library module ?
Any help is appreciated.
Thanks
6.5. Here is my problems:
(1) If I create a library wrapper module which includes the jaxb-api,
jaxb-impl etc. jars, at the run-time, I run into a
SEVERE [global]
javax.xml.bind.JAXBException: Provider com.sun.xml.bind.v2.ContextFactory
not found
- with linked exception:
[java.lang.ClassNotFoundException: Will not load class
com.sun.xml.bind.v2.ContextFactory arbitrarily from one of
org.netbeans.StandardModule$***@869470[org.netbeans.libs.jaxb]
and
org.netbeans.StandardModule$***@b524aa[com.xxxx.test.lib];
see http://wiki.netbeans.org/DevFaqModuleCCE]
if I remove the jaxb-api,jaxb-impl etc jars from the library wrapper module,
the library wrapper module only contain my stub classes, at the run-time, I
got another ClassCastException:
SEVERE [global]
java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl
cannot be cast to javax.xml.bind.JAXBContext
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:150)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at com.xxxx.runtime.holders.JaxBHuskHolder.getJAXBContext(Unknown
Source)
at com.xxxx.runtime.util.WSUtil.serialize(Unknown Source)
at com.xxxx.runtime.WebServiceProxyImpl.dispatchRequest(Unknown Sour
How do I solve the dilemma?
(2) I looked the jabx library module in the NB6.5, Actually it is friend
package, no public API are exposed. Could I dynamically register my libarary
as a friend package to jaxb library module ?
Any help is appreciated.
Thanks
--
View this message in context: http://www.nabble.com/How-do-I-sovle-the-%22java.lang.ClassNotFoundException%22-problem-tp22467153p22467153.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/How-do-I-sovle-the-%22java.lang.ClassNotFoundException%22-problem-tp22467153p22467153.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.