问题描述
我写了一个简单的web服务程序,但我无法在glassfish 4.0 web服务器上测试它。
当我测试Web服务时,我看到以下消息:
请确保服务已成功部署,并且服务器正在运行。
我可以请在Glassfish Web服务器上部署的Web服务列表中查看它。
,然后将此文件添加到\jdk1.8.0\jre\lib以解决问题。
jaxp.properties
javax.xml.accessExternalSchema =全部
但它不起作用
另外我在测试页面的url中看到这个错误:
lineNumber:52; columnNumber:88; schema_reference:无法读取模式文档'xjc.xsd',因为由于accessExternalSchema属性设置的限制,不允许捆绑访问。
预先致谢
这是答案:
您应该直接配置IDE和Glassfish服务器。
特别感谢
I wrote a simple web service program but I can not test it on glassfish 4.0 web server .When I Test Web service I see this message :Make sure the service has been deployed successfully, and the server is running.
I can see it in list of deployed web services on glassfish web server .and I add this file to \jdk1.8.0\jre\lib to fix the problem.
jaxp.properties
javax.xml.accessExternalSchema = All
But it doesn't work
Also I see this error in url of tester page :
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.
Thanks in advance
This is answer :https://netbeans.org/kb/docs/websvc/jax-ws.html#extschemaYou should configure IDE and Glassfish server directly .With special thanks to Pablo
这篇关于无法使用jdk8和netbeans 8打开Web服务测试页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!