tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wesley Acheson <>
Subject Re: Host Manager.
Date Sun, 12 Sep 2010 18:48:49 GMT
On Sun, Sep 12, 2010 at 5:38 PM, Martin Gainty <> wrote:
> could you configure
> public static void writeXml( Node n, OutputStream os )         throws TransformerException
>  of org.apache.tomcat.util.DomUtil to trap TransformerFactoryConfigurationError
> it seems at minumum one of these conditions to be satisifed to properly newInstance the
TransformerFactory ?
> Use the javax.xml.transform.TransformerFactory system property.
> Use the properties file "lib/" in the JRE directory. This configuration
file is in standard java.util.Properties format and contains the fully qualified name of the
implementation class with the key being the system property defined above. The
file is read only once by the JAXP implementation and it's values are then cached for future
use. If the file does not exist when the first attempt is made to read from it, no further
attempts are made to check for its existence. It is not possible to change the value of any
property in after it has been read for the first time.
> Use the Services API (as detailed in the JAR specification), if available, to determine
the classname. The Services API will look for a classname in the file META-INF/services/javax.xml.transform.TransformerFactory
in jars available to the runtime.
> Platform default TransformerFactory instance.
> ?
> Martin Gainty

So far my attempt is here now.

Your way sounds better though :(

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message