在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