Subject: Re: Strange intermittent exceptions from Xalan
From: Johannes Döbler <jd@xxxxxxxxxxxxxx>
Date: Mon, 19 Mar 2001 17:06:14 +0100
|
Seems to be a problem with your Webserver when the xsl file is read via a
http connection. Do you really need to access the XSL file via that sort of
connection. Perhaps it is on the same machine as the application - in that
case you just can read it locally (create a StreamSource and pass the file
path to its constructor).
Johannes
At 15:16 19.03.01 +0000, you wrote:
Hi,
I've been developing a Java application that uses XSL transformations. This
is hosted within a servlet on BEA Weblogic 5.1. I'm using Xalan for Java 2
(v2.0.0)
The problem is intermittent, and I haven't a clue as to why it would happen.
I am still trying to narrow if its a Weblogic problem or a Xalan problem,
and I wondered if any other XSL developers had come across anything similar.
I wouldn't mind, but its the sheer fact that it transforms sometimes, but
then fails.
The exception is:
javax.xml.transform.TransformerConfigurationException: Connection refused:
no further information
at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transformer
FactoryImpl.java:650)
The code is as follows:
URL xslURL = new URL("http://mymachine/servlet/xsl/testXSL.xsl");
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new
StreamSource(xslURL.toString()));
Has anyone else encountered the above exception, and was it also
intermittent?
Regards,
Peter
******************************************************************************
Check us out at http://www.syntegra.com
***********************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|