WebService Client Generation Error with JDK8

后端 未结 23 2649
既然无缘
既然无缘 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:37

    If you are getting this problem when converting wsdl to jave with the cxf-codegen-plugin, then you can solve it by configuring the plugin to fork and provide the additional "-Djavax.xml.accessExternalSchema=all" JVM option.

            
                org.apache.cxf
                cxf-codegen-plugin
                ${cxf.version}
                
                    
                        generate-sources
                        generate-sources
                        
                            always
                            
                                -Djavax.xml.accessExternalSchema=all
                            
    

提交回复
热议问题