hazelcast-spring.xsd doesn't work

339 views
Skip to first unread message

Karsten Rage

unread,
Oct 9, 2017, 1:25:25 AM10/9/17
to Hazelcast
Since the hazelcast-spring.xsd is at https://hazelcast.com/schema/spring/hazelcast-spring-3.9.xsd but the namespace is http://www.hazelcast.com/schema/spring you can't get it to load.

If you try to load it all with http you get:

org.xml.sax.SAXParseException; systemId: http://hazelcast.com/schema/spring/hazelcast-spring-3.9.xsd; lineNumber: 2; columnNumber: 35; s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.

If you try to load it all with https you get:

org.xml.sax.SAXParseException; systemId: https://hazelcast.com/schema/spring/hazelcast-spring-3.9.xsd; lineNumber: 23; columnNumber: 47; TargetNamespace.1: Expecting namespace 'https://www.hazelcast.com/schema/spring', but the target namespace of the schema document is 'http://www.hazelcast.com/schema/spring'.

If you try and mix them i.e.
and 

Then you get:

org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.hazelcast.com/schema/spring]




Peter Veentjer

unread,
Oct 9, 2017, 7:20:33 AM10/9/17
to haze...@googlegroups.com
Can you create a bugreport?

https://github.com/hazelcast/hazelcast

Seems like something that needs to be fixed in the 3.9 release.

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+unsubscribe@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/f9464d0d-1e1f-4dde-b9ab-4de913273106%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gugl...@hazelcast.com

unread,
Oct 9, 2017, 8:18:53 AM10/9/17
to Hazelcast
Hello Karsten,

I think you need to have hazelcast-spring.jar (or hazelcast-all.jar) in your classpath.

I can reproduce your error exactly if I run this code sample:


without the `hazelcast-spring.jar` in my classpath.


Cheers
Reply all
Reply to author
Forward
0 new messages