Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read custom hazelcast.xml on classpath #14070

Closed
pavasthi1 opened this Issue Nov 6, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@pavasthi1
Copy link

pavasthi1 commented Nov 6, 2018

I am using hazelcast 3.10. My hazelcast.xml file is in my project's resource directory. This is the excerpt from hazelcast.xml.

<hazelcast xmlns="http://www.hazelcast.com/schema/config"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.hazelcast.com/schema/config
           http://www.hazelcast.com/schema/config/hazelcast-config-3.10.xsd">

I get the following error:

Nov 06, 2018 12:02:41 PM com.hazelcast.config.AbstractXmlConfigHelper
WARNING: Name of the hazelcast schema location incorrect using default
2018-11-06 11:49:16,748    INFO  com.bnymellon.ais.anp.core.hazelcast.HazelcastConfiguration - Exception occured
com.hazelcast.config.InvalidConfigurationException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'failure-detector'. One of '{"http://www.hazelcast.com/schema/config":public-address, "http://www.hazelcast.com/schema/config":reuse-address, "http://www.hazelcast.com/schema/config":interfaces, "http://www.hazelcast.com/schema/config":member-address-provider}' is expected.
	at com.hazelcast.config.AbstractXmlConfigHelper.schemaValidation(AbstractXmlConfigHelper.java:186)
	at com.hazelcast.config.XmlConfigBuilder.parseAndBuildConfig(XmlConfigBuilder.java:235)
	at com.hazelcast.config.XmlConfigBuilder.build(XmlConfigBuilder.java:216)
	at com.hazelcast.config.XmlConfigBuilder.build(XmlConfigBuilder.java:209)
@ahmetmircik

This comment has been minimized.

Copy link
Member

ahmetmircik commented Nov 14, 2018

@mmedenjak

This comment has been minimized.

Copy link
Contributor

mmedenjak commented Nov 14, 2018

Related: #13011

@tezc

This comment has been minimized.

Copy link
Contributor

tezc commented Dec 3, 2018

@pavasthi1 XSD files are in sync now, you can try it again. Let us know if there is any problem with that.

@mmedenjak

This comment has been minimized.

Copy link
Contributor

mmedenjak commented Jan 25, 2019

Closing as the XSDs should be in sync. Please open a new issue if you encounter more problems.

@mmedenjak mmedenjak closed this Jan 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.