You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Tom Amiro <To...@Sun.COM> on 2002/10/30 17:35:46 UTC

reading output_xml.properties file from an applet

Does anyone know how to set the security permission for 
an applet to enable Xalan to read its output_xml.properties 
file to get around the following problem:

> A DESCRIPTION OF THE PROBLEM :
> I had a problem trying to do a transform from a DOM source
> to a XML file in an Applet.
> In fact, the problem came up makin a new instance of
> javax.xml.transform.Transformer from
> javax.xml.transform.TransformerFactory
> The piece of code is written as follows:
> 
> javax.xml.transform.TransformerFactory
> tf=javax.xml.transform.TransformerFactory.newInstance();
> javax.xml.transform.Transformer trafo=tf.newTransformer();
> javax.xml.transform.dom.DOMSource dos=new
> javax.xml.transform.dom.DOMSource(Document doc);
> javax.xml.transform.stream.StreamResult sr=new
> javax.xml.transform.stream.StreamResult(Writer fout);
> trafo.transform(dos,sr);
> 
> An exception occurs when trying to make a new instance and
> it is like this:
> 
> org.apache.xml.utils.WrappedRuntimeException: Output method
> is xml could not load output_xml.properties (check
> CLASSPATH)
> 	at
> org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties(OutputProperties.java:364)
> 	at

-- 
 Tom Amiro -- SQA Engineer
 Sun XML Technology Development
 voice: 781-442-0589 Fax: 781-442-1437
 eMail: tom.amiro@.sun.com

RE: reading output_xml.properties file from an applet

Posted by Gary L Peskin <ga...@firstech.com>.
Tom --

I'm not sure of your setup or where you're trying to load things from.
But if you're using IE, you should be able to add the site where the
applet lives into the Trusted Sites in the Security tab of Internet
Options to get around this problem.

HTH,
Gary

> -----Original Message-----
> From: Tom.Amiro@Sun.COM [mailto:Tom.Amiro@Sun.COM] 
> Sent: Wednesday, October 30, 2002 8:36 AM
> To: xalan-dev@xml.apache.org
> Subject: reading output_xml.properties file from an applet
> 
> 
> Does anyone know how to set the security permission for 
> an applet to enable Xalan to read its output_xml.properties 
> file to get around the following problem:
> 
> > A DESCRIPTION OF THE PROBLEM :
> > I had a problem trying to do a transform from a DOM source
> > to a XML file in an Applet.
> > In fact, the problem came up makin a new instance of 
> > javax.xml.transform.Transformer from 
> > javax.xml.transform.TransformerFactory
> > The piece of code is written as follows:
> > 
> > javax.xml.transform.TransformerFactory
> > tf=javax.xml.transform.TransformerFactory.newInstance();
> > javax.xml.transform.Transformer trafo=tf.newTransformer(); 
> > javax.xml.transform.dom.DOMSource dos=new 
> > javax.xml.transform.dom.DOMSource(Document doc); 
> > javax.xml.transform.stream.StreamResult sr=new 
> > javax.xml.transform.stream.StreamResult(Writer fout); 
> > trafo.transform(dos,sr);
> > 
> > An exception occurs when trying to make a new instance and
> > it is like this:
> > 
> > org.apache.xml.utils.WrappedRuntimeException: Output method is xml 
> > could not load output_xml.properties (check
> > CLASSPATH)
> > 	at
> > 
> org.apache.xalan.templates.OutputProperties.getDefaultMethodPr
> operties(OutputProperties.java:364)
> > 	at
> 
> -- 
>  Tom Amiro -- SQA Engineer
>  Sun XML Technology Development
>  voice: 781-442-0589 Fax: 781-442-1437
>  eMail: tom.amiro@.sun.com
>