Xalan and jstl 1.1 problem with transform tag 2006-10-26 - By Valeria P.
Hi Henry,
thank you very much for going so deeply into the possible cause of this error. I will try re-compiling the class (I have to download the sources because I only have the jars) and I will let you know what happens.
After trying everything to be sure no other package would override the TransformerFactory, I thought I had succeeded in that because the error message came from Xalan, which means the system know that it has to use Xalan's TransformerFactory, and because the CheckEnvironment() method, called from within the jsp page, showed that I was using the correct version of Xalan. But what you says sounds quite convincing and I think I have to go in that direction.
Thank you very much,
Valeria
----- Original Message ----- From: "Henry Zongaro" <zongaro@(protected)> To: "Valeria P." <valeriapesce@(protected)> Cc: "Erin Harris" <eharris@(protected)>; <xalan-j-users@(protected)> Sent: Tuesday, October 24, 2006 4:59 PM Subject: Fw: Xalan and jstl 1.1 problem with transform tag
> Hi, Valeria. > > Henry Zongaro/Toronto/IBM wrote on 2006-10-24 10:50:05 AM: >> There's something fishy about the error message in your note. >> >> > javax.xml.transform.TransformerFactoryConfigurationError: Provider >> > org.apache.xalan.transformer.TransformerImpl could not be > instantiated: >> > java.lang.InstantiationException: >> > org.apache.xalan.transformer.TransformerImpl >> >> That message would ordinarily be reported when the >> TransformerFactory.newInstance() method fails to create an instance >> of the TransformerFactory implementation class, but in this case >> it's reporting the name of the Transformer implementation class >> instead. Perhaps some component is overriding the javax.xml. >> transform.TransformerFactory system property with this wrong value. >> I know that probably doesn't help you resolve the problem, but maybe >> we can narrow it down further. > > There is a debug flag in the javax.xml.transform.FactoryFinder class (in > xml-commons). If you're inclined to try, one thing you might do is > recompile that file with the debug flag set to true, and replace the > version of that class in xml-apis.jar. That might give a clue as to where > the faulty setting for javax.xml.transform.TransformerFactory comes from. > > Thanks, > > Henry > ------------------------------------------------------------------ > Henry Zongaro XSLT Processors Development > IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044 > mailto:zongaro@(protected) >
|
|