I was working with Spring framework and get this error in the applicationcontext.xml (spring-integration-context.xml with Spring-Integration):
Element 'beans' cannot have character [children], because the type's content type is element-only.
So something is wrong with my configuration. In fact, after reading carefully again the xml, I have found that I have added a wrong comment. So if you get this error, just check again your xml tags.
I get also this error :
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int-mqtt:outbound-channel-adapter'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/integration/mqtt/spring-integration-mqtt.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the
document is not.
In fact the problem was that the given xsd address don't exists. By checking, I have found the right one:
http://www.springframework.org/schema/integration/mqtt/spring-integration-mqtt-4.0.xsd
Normally if you use maven you will not get this error.
Element 'beans' cannot have character [children], because the type's content type is element-only.
So something is wrong with my configuration. In fact, after reading carefully again the xml, I have found that I have added a wrong comment. So if you get this error, just check again your xml tags.
I get also this error :
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'int-mqtt:outbound-channel-adapter'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/integration/mqtt/spring-integration-mqtt.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the
document is not
In fact the problem was that the given xsd address don't exists. By checking, I have found the right one:
http://www.springframework.org/schema/integration/mqtt/spring-integration-mqtt-4.0.xsd
Normally if you use maven you will not get this error.
No comments :
Post a Comment