0

I am trying to generate Java classes using Maven from XSDs/WSDLs. I have declared all the XSDs in my POM file and using the XJC plugin. When I try to do a clean install, I see these two error messages show up.

[DEBUG] [SchemaGen]: May 02, 2019 5:49:09 PM com.sun.xml.bind.v2.util.XmlFactory allowExternalAccess
CONFIG: Property "http://javax.xml.XMLConstants/property/accessExternalSchema" is not supported by used JAXP implementation.
org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
        at org.apache.xerces.jaxp.validation.XMLSchemaFactory.setProperty(Unknown Source)
        at com.sun.xml.bind.v2.util.XmlFactory.allowExternalAccess(XmlFactory.java:236)
        at com.sun.tools.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:87)


[DEBUG] [SchemaGen]: May 02, 2019 5:49:09 PM com.sun.xml.bind.v2.util.XmlFactory allowExternalDTDAccess
CONFIG: Property "http://javax.xml.XMLConstants/property/accessExternalDTD" is not supported by used JAXP implementation.
org.xml.sax.SAXNotRecognizedException: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
        at org.apache.xerces.jaxp.validation.XMLSchemaFactory.setProperty(Unknown Source)
        at com.sun.xml.bind.v2.util.XmlFactory.allowExternalDTDAccess(XmlFactory.java:267)
        at com.sun.tools.xjc.reader.xmlschema.parser.SchemaConstraintChecker.check(SchemaConstraintChecker.java:110)

I did all the necessary changes in the jaxp.propterties file in my JRE/lib folder. This is the content of the property file. I have stored it in C:\Program Files\Java\jdk1.8.0_181\jre\lib. That is what maven is using.

javax.xml.accessExternalSchema=all
javax.xml.accessExternalDTD=all

Is this actually an error or can be ignored?

hell_storm2004
  • 1,401
  • 2
  • 33
  • 66

0 Answers0