generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
My schema references an external DTD, and in quarkus:dev
mode I was able to fix it by adding:
<jvm.args>-Djavax.xml.accessExternalDTD=all -Djavax.xml.accessExternalSchema=all</jvm.args>
to my pom.xml
. However, when I try to run the app in native mode, I get the error:
org.xml.sax.SAXParseExceptionpublicId: resource:/wsdl/w3-xmldsig-core-schema.xsd; systemId: resource:/wsdl/w3-xmldsig-core-schema.xsd; lineNumber: 10; columnNumber: 5; External DTD: Failed to read external DTD '', because 'resource' access is not allowed due to restriction set by the accessExternalDTD property.
at [email protected]/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
at [email protected]/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
at org.apache.ws.commons.schema.XmlSchemaCollection$2.run(XmlSchemaCollection.java:750)
at org.apache.ws.commons.schema.XmlSchemaCollection$2.run(XmlSchemaCollection.java:748)
at [email protected]/java.security.AccessController.executePrivileged(AccessController.java:114)
at [email protected]/java.security.AccessController.doPrivileged(AccessController.java:571)
at org.apache.ws.commons.schema.XmlSchemaCollection.parseDoPriv(XmlSchemaCollection.java:748)
at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:717)
How do I fix it?
Metadata
Metadata
Assignees
Labels
No labels