[jdom-interest] JDOM, TOMCAT and SAXON
Steven Shand
steven at sferics.com
Thu May 17 05:46:54 PDT 2001
Mmmm.. not sure about that one. I'm not too familiar with Saxon so I'd
suggest that my solution was making this worse rather than better. I'll
have a look at my configuration and if I come up with anything I'll let
you know. I also think you might do better checking on the tomcat
mailing list for problem like this. (tomcat-user-
info at jakarta.apache.org).
Cheers.
Steven Shand
On Thursday, May 17, 2001, at 01:16 PM, Abhishek Srivastava wrote:
>
> Hello Steve,
>
> Thanks for your reply. I renamed the jaxp.jar and teh parser.jar files
> in
> the tomcat lib directory.
> Now as soon as I start tomcat I get the exception
>
> FATAL: configuration error
> javax.xml.parsers.ParserConfigurationException: AElfred parser is
> namespace-awar
> e
> at
> com.icl.saxon.aelfred.SAXParserFactoryImpl.newSAXParser(SAXParserFact
> oryImpl.java:37)
> at
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:213)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> regards,
> Abhishek.
>
>>>> -----Original Message-----
>>>> From: Steven Shand [mailto:steven at sferics.com]
>>>> Sent: Thursday, May 17, 2001 5:43 PM
>>>> To: Abhishek Srivastava
>>>> Subject: Re: [jdom-interest] JDOM, TOMCAT and SAXON
>>>>
>>>>
>>>> Try removing the jaxp.jar and parser.jar files from the Tomcat libs
>>>> folder. Simply removing them from the classpath in the tomcat.bat
>>>> file
>>>> won't work as any jar files in the libs folder are picked up and
>>>> automatically added (Unless you're on Windows where this doesn't
>>>> work!).
>>>> If you don't want to remove these jar files then you could try
>>>> renaming
>>>> them so they're added at the end of the classpath. Good luck.
>>>>
>>>> Hope this helps.
>>>>
>>>> Steven Shand.
>>>>
>>>>
>>>> On Thursday, May 17, 2001, at 12:55 PM, Abhishek Srivastava wrote:
>>>>
>>>>> 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(ContextMana
>>>> ger.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.
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> To control your jdom-interest membership:
>>>>> http://lists.denveronline.net/mailman/options/jdom-
>>>>> interest/youraddr at yourhost.com
>>>>>
>>>>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-
> interest/youraddr at yourhost.com
>
More information about the jdom-interest
mailing list