-
Sub-task
-
Resolution: Delivered
-
P4
-
23
Future JDK releases will continue to move towards making XML processing more restrictive by default. In order to help developers prepare for these changes, this release includes a <a href="https://docs.oracle.com/en/java/javase/23/docs/api/java.xml/module-summary.html#Conf">JAXP Configuration File</a> template, `$JAVA_HOME/conf/jaxp-strict.properties.template`, specifying more restrictive XML processing settings.
The following steps may be used to test an application with the JAXP Configuration file template:
- Copy the template file to a location outside of `$JAVA_HOME/conf`:
`cp $JAVA_HOME/conf/jaxp-strict.properties.template. /<my_path>/jaxp-strict.properties`
- Run the application specifying the system property `java.xml.config.file` to the path where the JAXP configuration file template was copied in order to override the default JAXP configuration:
`java -Djava.xml.config.file=/<my_path>/jaxp-strict.properties myApp`
The following steps may be used to test an application with the JAXP Configuration file template:
- Copy the template file to a location outside of `$JAVA_HOME/conf`:
`cp $JAVA_HOME/conf/jaxp-strict.properties.template. /<my_path>/jaxp-strict.properties`
- Run the application specifying the system property `java.xml.config.file` to the path where the JAXP configuration file template was copied in order to override the default JAXP configuration:
`java -Djava.xml.config.file=/<my_path>/jaxp-strict.properties myApp`