jaxp.properties and System.getProperty() returning nulls... 2003-01-27 - By Tony Espy
I've been having troubles lately with my Xalan/Xerces configuration under JDK1.4.
I have a jaxp.properties file in $JAVA_HOME/jre/lib setup as follows (minus the line breaks):
javax.xml.transform.TransformerFactory= org.apache.xalan.processor.TransformerFactoryImpl javax.xml.parsers.DocumentBuilderFactory= org.apache.xerces.jaxp.DocumentBuilderFactoryImpl javax.xml.parsers.SAXParserFactory= org.apache.xerces.jaxp.SAXParserFactoryImpl
How come these values are not returned by System.getProperty() calls with the corresponding keys?
eg. System.getProperty("javax.xml.transform.TransformerFactory")
The above call returns null, although I've confirmed that the correct transformer and parsers are configured.
If I set the corresponding property via a -D arg to the JVM everything works just fine.
I'm fairly new to Java, so I may be missing something completely obvious. Any help would be much appreciated.
thanks, /tony
|
|