[jdom-interest] JDOM, TOMCAT and SAXON

Abhishek Srivastava abhisheks at india.hp.com
Thu May 17 04:55:17 PDT 2001


Hello All,

I am trying to use JDOM (beta .6) on a JSP Engine (Tomcat 3.2.1). I query a
DB, then I build JDOM tree from resultset. and I apply my xsl stylesheet to
it. (I am using SAXON 6.3 for XSLT)

If I execute this program from the console... every thing works fine and I
get my html in a file.

But when I use my program as a java bean from a JSP
I get the following exception

java.lang.NoSuchMethodError
	at
com.icl.saxon.TransformerFactoryImpl.getStyleParser(TransformerFactoryImpl.j
ava:500)
	at
com.icl.saxon.TransformerFactoryImpl.getSAXSource(TransformerFactoryImpl.jav
a:184)
	at
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav
a:124)
	at
com.icl.saxon.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.j
ava:77)
	at test2.renderJDom(test2.java:72)
	at
_0002ftest_00032_0002ejsptest2_jsp_0._jspService(_0002ftest_00032_0002ejspte
st2_jsp_0.java:67)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)

Has anyone else also tried this ? What is going wrong.


    *****     *****     Abhishek Srivastava
    ***  /_  __ ***     Hewlett-Packard - Solutions Organization
    **  / / /_/  **     19 Cunningham Road. Bangalore -560052.
    ***    /    ***     phone +91 80 2251554 Extn:1532
    *****     *****     mailto:abhisheks at india.hp.com
      i n v e n t

         The most exciting phrase in science, the one which heralds
         new discoveries, is not Eureka!! but 'That's Funny'
                                       -- Issac Asimov.





More information about the jdom-interest mailing list