WebService Client Generation Error with JDK8

后端 未结 23 2640
既然无缘
既然无缘 2020-11-27 08:50

I need to consume a web service in my project. I use NetBeans so I right-clicked on my project and tried to add a new \"Web Service Client\". Last time I checked, this was t

23条回答
  •  情深已故
    2020-11-27 09:51

    Here is a hint Hint for gradle users without admin rights: add this line to your jaxb-task:

    System.setProperty('javax.xml.accessExternalSchema', 'all')
    

    it will look like this:

    jaxb {
        System.setProperty('javax.xml.accessExternalSchema', 'all')
        xsdDir = "${project.name}/xsd"
        xjc {
            taskClassname = "com.sun.tools.xjc.XJCTask"
            args = ["-npa", "-no-header"]
        }
    }
    

提交回复
热议问题