How to specify JAXBContext implementation in weblogic 12.1.3

三世轮回 提交于 2019-12-03 17:23:47

As i was using my code through an EAR I had to put these lines :

<wls:prefer-application-resources>
    <resource-name>META-INF/services/javax.xml.bind.JAXBContext</resource-name>
</wls:prefer-application-resources>  

And create the file in the META-INF directory of my EAR services/javax.xml.bind.JAXBContex which contains only, and it works

com.sun.xml.bind.v2.ContextFactory

I faced the same issue and worked out similar solution which doesn't require creating a new file:

<prefer-application-resources> <resource-name>javax.xml.bind.*</resource-name> </prefer-application-resources>

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!