在Spring文件applicationConfig.xml中,JAX-WS集成需要一些特定的模式。 我最近成功地使用这些声明:Spring和Jax-WS:哪里有xsd模式?
- https://jax-ws.dev.java.net/spring/core.xsd
- HTTPS jax-ws.dev.java.net/spring/servlet.xsd
[我必须删除所有网址(因为这是我的第一个问题)
该文件以那些声明开头:
<beans xmlns="http www.springframework.org/schema/beans" xmlns:xsi="http www.w3.org/2001/XMLSchema-instance" xmlns:aop="http www.springframework.org/schema/aop" xmlns:tx="http www.springframework.org/schema/tx" xmlns:context="http www.springframework.org/schema/context" xmlns:ws="http jax-ws.dev.java.net/spring/core" xmlns:wss="http jax-ws.dev.java.net/spring/servlet" xsi:schemaLocation="http www.springframework.org/schema/beans http www.springframework.org/schema/beans/spring-beans.xsd http www.springframework.org/schema/aop http www.springframework.org/schema/aop/spring-aop.xsd http www.springframework.org/schema/tx http www.springframework.org/schema/tx/spring-tx.xsd http www.springframework.org/schema/context http www.springframework.org/schema/context/spring-context.xsd http jax-ws.dev.java.net/spring/core https jax-ws.dev.java.net/spring/core.xsd http jax-ws.dev.java.net/spring/servlet https jax-ws.dev.java.net/spring/servlet.xsd">
(...)
<ws:service id="myService" bean="#myWS" />
<wss:binding url="/services/myws" service="#myService" />
现在,迁移时对网站jax-ws.dev.java.net。这些文件都没有找到,我已经在使用Tomcat和Eclipse下的一些错误:
org.xml.sax.SAXParseException:schema_reference.4:无法读取模式文档“https://jax-ws.dev。 java.net/spring/core.xsd',因为1)找不到文档; 2)文件无法阅读; 3)文档的根元素不是。
有没有解决方案或什么来防止这个错误?
谢谢
嘿,我面临同样的问题。你有没有得到任何解决方案? – 2013-02-06 10:18:54