jaxp.properties and System.getProperty() returning nulls... 2003-01-28 - By ilene@(protected)
Hi Tony,
Having these properties set in your jaxp.properties file does not mean that they will be set in your system properties. When the JAXP code looks up factory implementations it uses a lookup procedure. First, it checks system properties. Next it checks the jaxp.properties file (if it exists.) If that doesn't work, then it uses the jar service provider mechanism. And, finally, if that fails it uses a fallback class name.
Ilene.
"Tony Espy" <espy@(protected)> To: <xalan-j-users@(protected) .apache.org> cc: 01/27/2003 09:55 Subject: jaxp.properties and System.getProperty() returning nulls... PM
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
|
|