且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Java 1.6 中为 JAX-WS 提供不同版本的 JAXB

更新时间:2023-09-27 17:41:34

我被这个问题困住了,但通过设置一个像这样的系统属性:

I was stuck on this problem but was able to use the "work around" listed in this forum Q&A by setting a system property like so:

System.setProperty("javax.xml.bind.JAXBContext", 
                   "com.sun.xml.internal.bind.v2.ContextFactory");