The first error is probably arising because you have jaxp.jar on your classpath, and this is trying to load Xalan by default. You don't need this on the classpath, Saxon provides its own copies of the classes.
 
The second error is arising because you don't have saxon.jar on the classpath.
 
I'm afraid I don't know iPlanet in detail, so I can't help you configure it correctly.
 
Mike Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net]On Behalf Of Liam McAllister
Sent: 06 September 2001 16:18
To: saxon-help@lists.sourceforge.net
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.