Thanks for that...
 
But its the first thing executed in the service method of the SaxonServlet.
 
:-(
 
L.
 
----- Original Message -----
From: Carmelo Montanez
To: Liam McAllister
Sent: Thursday, September 06, 2001 6:34 PM
Subject: Re: [saxon] SaxonServlet in iPlanet environment using wrong processor

Liam:
 
    Make sure that the "System.setProperty( .... " statement is executed before
the    "TransformerFactory tFactory = ..." statement.  Also if you are using
tomcat make sure that the SAXON classes are under the "lib"
directory where "tomcat" is installed.  tomcat will be looking there and not to
the classpath to find the SAXON (and XALAN) stuff.   Hope this helps a bit.
 
Greetings,
Carmelo Montanez
----- Original Message -----
From: Liam McAllister
To: saxon-help@lists.sourceforge.net
Sent: Thursday, September 06, 2001 11:18 AM
Subject: [saxon] SaxonServlet in iPlanet environment using wrong processor

Hi
 
I have looked through the archives - but haven't been able to find any solution to this.
 
The saxon servlet works fine (as we all know) as long as there are no other parsers around.
When ever I deploy it in the iPlanet environment (which is using its own parser) I get the following error:
 
[06/Sep/2001:11:14:51] info (26627): Internal Info: loading servlet /servlets/SaxonServlet
[06/Sep/2001:11:14:52] info (26627): /servlets/SaxonServlet: init
[06/Sep/2001:11:14:52] failure (26627): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: javax.xml.transform.TransformerFactoryConfigurationError: java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl
        at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
        at SaxonServlet.tryCache(SaxonServlet.java:130)
        at SaxonServlet.apply(SaxonServlet.java:84)
        at SaxonServlet.service(SaxonServlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:887)
        at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
So I know its picking up the org.apache.xalan.processor.TransformerFactoryImpl classes.
I looked in the archives and someone suggested this line. (I put it at the start of service method in the SaxonServlet)
 
System.setProperty("javax.xml.transform.TransformerFactory",
           "com.icl.saxon.TransformerFactoryImpl");
 
Now when I run the servlet I get the following error:
 
[06/Sep/2001:11:22:47] info (26651): /servlets/SaxonServlet: init
[06/Sep/2001:11:22:47] failure (26651): Internal error: Unexpected error condition thrown (unknown exception,no description), stack: javax.xml.transform.TransformerFactoryConfigurationError: java.lang.ClassNotFoundException: com.icl.saxon.TransformerFactoryImpl
        at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:121)
        at SaxonServlet.tryCache(SaxonServlet.java:130)
        at SaxonServlet.apply(SaxonServlet.java:84)
        at SaxonServlet.service(SaxonServlet.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:887)
        at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:453)
I'm really stuck on this one, and have been for about a week! Any help is appreciated (and needed)!!
 
Thanks
 
Liam.