2014-04-01 1 views
0

Hazelcast 2.5를 사용하고있었습니다. 최근 우리 프로덕션 서버에서 "APPART DEADLOCK"문제가 발생했습니다. 어딘가에 Hazelcast 3.0 이상으로 업그레이드하면 문제가 해결 될 수 있습니다. 이제 3.1로 업그레이드하려고 할 때 ApplicationContext.xml에서 다음과 같은 오류가 발생하고 더 이상 "hz"네임 스페이스를 인식하지 못합니다. 3.1로 업그레이드하기 전에Hazelcast를 2.5에서 3.1로 업그레이드

의 ApplicationContext - hazelcast.xml 내용 (일부 네임 스페이스를 제거) 3.1로 업그레이드 한 후

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:cache="http://www.springframework.org/schema/cache" 
    xmlns:hz="http://www.hazelcast.com/schema/spring" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd 
     http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd 
     http://www.hazelcast.com/schema/spring http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd"> 

오류 메시지를

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:cache="http://www.springframework.org/schema/cache" 
    xmlns:hz="http://www.hazelcast.com/schema/spring" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd 
     http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd 
     http://www.hazelcast.com/schema/spring http://www.hazelcast.com/schema/spring/hazelcast-spring-2.5.xsd"> 

의 ApplicationContext - hazelcast.xml 내용 (일부 네임 스페이스를 제거) :

Multiple annotations found at this line: 
    - schema_reference.4: Failed to read schema document 'http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) 
    the root element of the document is not <xsd:schema>. 
    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'hz:hazelcast'. 

어떻게하면됩니까?

답변

1

3.1 XSD를 다운로드하는 데 문제가있는 것 같습니다. hazelcast-spring-3.1을 사용하려고하면 HTTP 403이 발생합니다.

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626) 
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:637) 
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189) 
at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:582) 
at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:685) 
at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530) 
at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2175) 
... 31 more 

내가 hazelcast - 스프링 3.2 모두를 사용하여 업그레이드

나를 위해 작동하고 나는 봄 콩을 통해 Hazelcast 인스턴스를 얻을 수 있습니다. 3.2 버전으로 업그레이드하여 문제가 해결되는지 알려주십시오. 그동안 저는 github.com/hazelcast에서 3.1 문제에 대한 문제를 제기 할 것입니다.