This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: SaxonServlet


This problem is caused because you have an implementation of JAXP 1.0 on
your classpath, ahead of the JAXP 1.1 code. Find it and remove it, or move
Saxon to the front of the classpath.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Eamonn Neylon
> Sent: 08 February 2002 13:12
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] SaxonServlet
>
>
> Hi ListMembers
>
> I hope this isn't off-topic. I've got a problem running SaxonServlet
> (distributed with Saxon) and am wondering if anyone here
> knows how to fix
> it. When I call:
>
> http://127.0.0.1:8100/servlet/SaxonServlet?source=books.xml&st
> yle=books.xsl&
> x=y
>
> I get the message:
>
> null
> java.lang.NoSuchMethodError
> 	at
> com.icl.saxon.TransformerFactoryImpl.getStyleParser(Transforme
> rFactoryImpl.j
> ava:521)
> 	at
> com.icl.saxon.TransformerFactoryImpl.getSAXSource(TransformerF
> actoryImpl.jav
> a:196)
> 	at
> com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerF
> actoryImpl.jav
> a:126)
> 	at SaxonServlet.tryCache(SaxonServlet.java:126)
> 	at SaxonServlet.apply(SaxonServlet.java:79)
> 	at SaxonServlet.service(SaxonServlet.java:44)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
> 	at
> allaire.jrun.session.JRunSessionService.service(../session/JRu
> nSessionServic
> e.java:1082)
> 	at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
> 	at
> allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JR
> unNamedDispatc
> her.java:39)
> 	at
> allaire.jrun.servlet.Invoker.service(../servlet/Invoker.java:84)
> 	at
> allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
> 	at
> allaire.jrun.session.JRunSessionService.service(../session/JRu
> nSessionServic
> e.java:1082)
> 	at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
> 	at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/
> JRunRequestDis
> patcher.java:89)
> 	at
> allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
> 	at
> allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
> 	at
> allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext
> .java:364)
> 	at
> allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
> 	at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
> 	at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
>
> I've seached using google and seen the suggestion
> (http://www.geocrawler.com/archives/3/13378/2001/7/50/6102443/
) to move
Saxon to the start of the classpath (which I have done but that doesn't fix
the problem) The servlet seems to be working OK if I use:

http://127.0.0.1:8100/servlet/SaxonServlet?clear-stylesheet-cache=yes

when it returns:

	No style parameter supplied

Which would imply that it hasn't loaded anything into cache yet.

Thanks for any insights you may have.

Eamonn

Eamonn Neylon
Manifest Solutions
John Eccles House, Oxford Science Park
Oxford, OX4 4GP, United Kingdom
T: +44 1865 338033; F: +44 1865 338100
http://www.manifestsolutions.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]