2017-02-09 19 views
1

當我的context.xml正在驗證hazelcast的xsd文件時,出現此問題。其他的xsd文件不會給出錯誤。我瘋了,我該如何解決這個問題?這是錯誤描寫的特徵:通過將文件「IMCP芯-context.xml的」驗證文件 「hazelcast - 彈簧 - 3.1.xsd」時檢測到當在mycontext.xml的上下文中驗證hazelcast-spring-3.1.xsd時發生錯誤

的下面的錯誤。在 大多數情況下,可以通過直接驗證 「hazelcast-spring-3.1.xsd」來檢測這些錯誤。但是, 錯誤只有在 imcp-core-context.xml的上下文中驗證了hazelcast-spring-3.1.xsd後纔會發生。

S4S-ELT字符:非空白字符不是在規劃允許的 元素以外 '的xs:APPINFO' 和 'XS:文檔,' 奪魂鋸 「301永久移動」

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" 
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" 
xmlns:task="http://www.springframework.org/schema/task" xmlns:hz="http://www.hazelcast.com/schema/spring" 
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.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/task http://www.springframework.org/schema/task/spring-task-3.0.xsd 
    http://www.hazelcast.com/schema/spring http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd "> 

而且這是截圖:

enter image description here

回答

1

我找到了一個解決方案,它在這裏 Hazelcast Spring integration issue很簡單的回答。它只是http到https問題。然後不要忘記驗證您的XML文件。