tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wesley Acheson <wesley.ache...@gmail.com>
Subject Re: Host Manager.
Date Sun, 12 Sep 2010 18:48:49 GMT
On Sun, Sep 12, 2010 at 5:38 PM, Martin Gainty <mgainty@hotmail.com> wrote:
>
> could you configure
> public static void writeXml( Node n, OutputStream os )         throws TransformerException
>  of org.apache.tomcat.util.DomUtil to trap TransformerFactoryConfigurationError
> http://cupi2.uniandes.edu.co/site/images/recursos/javadoc/j2se/1.5.0/docs/api/javax/xml/transform/TransformerFactory.html#newTransformer%28javax.xml.transform.Source%29
>
> 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/jaxp.properties" 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 jaxp.properties
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 jaxp.properties 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.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48674

Your way sounds better though :(

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message