我编写了一个简单的 Web 服务程序,但无法在 glassfish 4.0 Web 服务器上对其进行测试。当我测试 Web 服务时,我看到此消息:确保服务已成功部署,并且服务器正在运行。
我可以在 glassfish 网络服务器上部署的网络服务列表中看到它。我将此文件添加到 \jdk1.8.0\jre\lib 以解决问题。
jaxp.properties
javax.xml.accessExternalSchema = All
但它不起作用
我也在测试页面的 url 中看到了这个错误:
lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'bundle' access is not allowed due to restriction set by the accessExternalSchema property.
提前致谢