2014-06-12 45 views
1

我試圖按照這裏的步驟實現Web服務代理。 http://forum.spring.io/forum/spring-projects/integration/114641-how-to-implement-the-web-service-proxy-patternSpring-WS和Spring集成:獲取SAXParseException:smartLifeCycleAttributeGroup

彈簧WS-config.xml中:

<int-ws:inbound-gateway id="proxy" request-channel="toOutbound"/> 

<int:channel id="toOutbound" /> 

<int-ws:outbound-gateway id="out" request-channel="toOutbound" uri="http://localhost:8080/helloproxy" /> 

獲取此異常,同時部署代理服務。

org.xml.sax.SAXParseException; systemId:http://www.springframework.org/schema/integration/ws/spring-integration-ws.xsd; lineNumber:274; columnNumber:72; src- 解決方法:無法將名稱'integration:smartLifeCycleAttributeGroup'解析爲 (n)'屬性組'組件。

有人可以幫我解決這個問題嗎?在spring-ws-config xml中是否還需要添加其他內容?

感謝, 斯里蘭卡

回答

1

或者你有彈簧集成版本的jar(SI-WS是一個版本,但SI-核心是另一個),或者它只是你的IDE的問題的混合。

Spring Nature(STS)應該有助於解決所有XSD驗證問題。

+0

謝謝。錯過了春季整合核心。添加最新版本有助於解決此問題。 – sri