使CXF Web服务在没有internet连接的情况下工作



我有一个SOAP CXF Web服务,当没有互联网连接时,它不会启动。

完成其中一项测试时的错误如下

caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/types/xs:schema/xsd:schema/schema): faultCode=PARSER_ERROR: Problem parsing 'file:/C:/<tomcat_instance>/webapps/cxfws/xsd/xmldsig-core-schema.xsd'.: java.net.SocketException: Permission denied: connect
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2198) ~[wsdl4j-1.6.3.jar:1.6.3]

找到链接https://users.cxf.apache.narkive.com/z0jMuziG/running-cxf-on-a-server-that-don-t-have-an-internet-connection但其中的建议并不能帮助我解决问题尝试定义带行的META-INF下的spring.schemashttp://www.w3.org/2000/09/xmldsig#/xmldsig-核心架构.xsd=xsd/xmldsig-core-schema.xd但这无助于解决问题。

有什么建议吗?还有弹簧手柄的用途是什么?这也是必需的吗?

能够通过从cxf-beans.xml以及SOAP服务实现类中的@javax.jws.WebService注释中删除wsdlLocation来解决产品启动时的解析错误

最新更新