org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'propertyPlaceholder'
Environment
- Red Hat Fuse
- 6.3.x
Issue
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a:
Invalid content was found starting with elementpropertyPlaceholder
- Error while deploying a route with xml transfrom
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'propertyPlaceholder'. One of '
"http://camel.apache.org/schema/blueprint":onException, "http://camel.apache.org/schema/blueprint":onCompletion, "http://camel.apache.org/schema/blueprint":intercept, "http://camel.apache.org/schema/blueprint":interceptFrom, "http://camel.apache.org/schema/blueprint":interceptSendToEndpoint, "http://camel.apache.org/schema/blueprint":restConfiguration, "http://camel.apache.org/schema/blueprint":rest, "http://camel.apache.org/schema/blueprint":route}' is expected.
Resolution
- Mappings are being done using fuse tooling transformation wizard and endpoints are getting added as first statement inside `camelcontext'
- Moving
propertyplacehoder' statement as first statement inside
camelcontext` fixes the issue
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments