【发布时间】:2010-11-09 15:53:06
【问题描述】:
在 spring 文件 applicationConfig.xml 中,JAX-WS 集成需要一些特定的模式。 我最近成功地使用了这些声明:
- 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) 文档的根元素不是。
有没有什么办法可以防止这个错误?
谢谢
【问题讨论】:
-
嘿,我也面临同样的问题。你有解决办法吗?
标签: web-services spring jax-ws