xml - How to specify JAXBContext implementation in weblogic 12.1.3 -


i have created mdb in java using jaxb parse xml content. mdb working long time (about 3 years) on 10.3.4 weblogic server.

now i've migrate on weblogic 12.1.3 server, , reason i'm not knowing yet, implemention choose weblogic isn't same want. can't figure out how set it.

right code init code :

private jaxbcontext getjaxbcontext() throws jaxbexception {     if (v1jaxbcontext == null) {        v1jaxbcontext = jaxbcontext.newinstance(myclass.class);     }     system.out.println("jaxbcontext : "+v1jaxbcontext.getclass().getname());     return v1jaxbcontext; } 

myclass.java generated jaxb xsd.

on eclipse output com.sun.xml.internal.bind.v2.runtime.jaxbcontextimpl

on weblogic side ouput org.eclipse.persistence.jaxb.jaxbcontext

as using code through ear had put these lines :

<wls:prefer-application-resources>     <resource-name>meta-inf/services/javax.xml.bind.jaxbcontext</resource-name> </wls:prefer-application-resources>   

and create file in meta-inf directory of ear services/javax.xml.bind.jaxbcontex contains only, , works

com.sun.xml.bind.v2.contextfactory 

Comments