'Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized' is still being thrown from Camel validator

Problem Description

As covered in the Talend Community Knowledge Base (KB) article Exception Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized, this was fixed in Talend ESB 7.

 

However, when a route uses the validator feature in Talend ESB 7, the follow error is thrown:

org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
at org.apache.xerces.jaxp.validation.ValidatorImpl.setProperty(Unknown Source) [?:?]
at org.apache.camel.processor.validation.ValidatingProcessor.doProcess(ValidatingProcessor.java:110) [226:org.apache.camel.camel-core:2.21.2]

 

Root Cause

The validator itself is working in Talend ESB 7. These warnings are harmless and shouldn't affect the functionality of the validator.

 

Solution

To suppress these warnings so that they don't fill up the tesb.log files, edit the RUNTIME-HOME/etc/org.ops4j.pax.logging.cfg file and add the following lines:

log4j2.logger.validatingProcessor.name=org.apache.camel.processor.validation.ValidatingProcessor
log4j2.logger.validatingProcessor.level=ERROR
log4j2.logger.schemaReader.name=org.apache.camel.processor.validation.SchemaReader
log4j2.logger.schemaReader.level=ERROR
Version history
Revision #:
5 of 5
Last update:
‎08-21-2019 05:13 AM
Updated by: