Matt --
I don't know too much about applets but this does ring a bell. Check
the security stuff since I think that that's where there may be a
problem in loading the .properties file.
Gary
Matt Freestone wrote:
>
> I have a Java app where I'm saving some XML data that may have to be
> transformed. So I'm currently doing something like:
>
> TransformerFactory tranFactory = TransformerFactory.newInstance();
> Transformer transformer = null;
> try
> {
> transformer = tranFactory.newTransformer();
> transformer.transform( new DOMSource(
> documentMsgData.getDocumentElement() ), new StreamResult( writer ));
> }
> catch( TransformerException e)
> {
> System.out.println(e.getMessage());
> e.printStackTrace();
> return false;
> }
>
> This works fine in the app, but when I run the same code from an applet, I
> get an exception as follows:
> org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not
> load output_xml.properties (check CLASSPATH)
> at
> org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties(Outpu
> tProperties.java:365)
> at
> org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.java:128
> )
> at
> org.apache.xalan.transformer.TransformerIdentityImpl.<init>(TransformerIdent
> ityImpl.java:104)
> at
> org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
> FactoryImpl.java:741)
>
> Can anyone help me make it work? I'm using xalan 2.1.0, Java 1.3.0.
>
> thanks a lot,
> Matt
>
> ********
>
> Mercator - The e-business transformation company - find out more at
>http://www.mercator.com
>
> The information in this email is confidential and is intended solely for the
>addressee(s). Access to this email by anyone else is unauthorised. If you are not an
>intended recipient, you must not read, use or disseminate the information contained
>in the email.
> Any views expressed in this message are those of the individual sender, except where
>the sender specifically states them to be the views of Mercator Software Ltd.
> Email to and from Mercator may be monitored.
>
> ********