Hi, Has anyone use jaxb on eclipse PDE/RCP development. I am getting the
typical error.. Unable to locate the jaxb.properties...
javax.xml.bind.JAXBException: Unable to locate jaxb.properties for
package com.dclabs.dcadmin.xml
at
javax.xml.bind.ContextFinder.searchcontextPath(ContextFinder.java:205)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:149)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:281)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:238)
I have read through the older archives and search through the web. Now I
try to modify the newInstace() method.
jaxbContext = JAXBContext.newInstance("com.dclabs.dcadmin.xml",
getClass().getClassLoader());
This seem to able to find the JAXB.properties, but then it seem that the
default classloader is been overwritten and it cannot find the other
classes,
java.lang.NoClassDefFoundError: com/sun/msv/datatype/xsd/XSDatatype
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at java.io.ObjectStreamClass.getPrivateMethod(Unknown Source)
at java.io.ObjectStreamClass.access$1600(Unknown Source)
at java.io.ObjectStreamClass$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
Anyone got any clues? Thanks
Chris