Hi Wahab,
I hope you've solved this problem by now.
If not, maybe you can try copying all the JAR files you're using (e.g.
xalan.jar, xerces.jar, fop.jar, batik.jar, etc.) into the
<JAVA_HOME>/jre/lib/ext directory, where <JAVA_HOME> is the JDK installation
directory. This should solve your problem, especially if your JDK version is
1.2 or higher.
'Hope this helps,
Ken
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>From: "Abdul Wahab" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: Re: No Such Method Error - in DOM2Helper class
>Date: Thu, 12 Jul 2001 11:17:43 +0800
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>
>Hi Keiron!
>
>I verified my classpath and files. Everything is correct. But still its
>coming. What to do!!
>If you dont mind, could u pls send me ur working Jar files.
>
>Thanks
>Wahab.
>
>----- Original Message -----
>From: "Keiron Liddle" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, July 10, 2001 4:06 PM
>Subject: Re: No Such Method Error - in DOM2Helper class
>
>
>>
>> This sort of error means either:
>> - the java libraries in the runtime classpath are different to the compile
>> time
>> - the java libraries you are using are incompatible
>>
>> So make sure your classpath contains only the jars you need and ones that
>> are compatible.
>> I would suggest using the xalan and xerces that come with fop.
>>
>> On Tue, 10 Jul 2001 10:00:18 Abdul Wahab wrote:
>> > I want to convert XML to PDF by reading XML file in servlet. So, Now my
>> > process is XML==>XSL:FO==>PDF.
>> > I tried with the bellow code.
>> > But I am getting "No Such MethodError" exception, for the past 3 days,
>> > eventhough the method is existed in class file.
>> > Could u please help me to solve this problem.
>> >
>> > java.lang.NoSuchMethodError
>> > at
>org.apache.xpath.DOM2Helper.getNamespaceOfNode(DOM2Helper.java:348)
>> > at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:471)
>> >
>> > CODE:
>> > File xmlFile = new File(xml-url);
>> > File xslFile = new File(xsl-url);
>> > ByteArrayOutputStream out = new ByteArrayOutputStream();
>> > Driver driver = new Driver();
>> > driver.setRenderer(Driver.RENDER_PDF);
>> > InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
>> > org.xml.sax.XMLReader parser = inputHandler.getParser();
>> > driver.buildFOTree(parser, inputHandler.getInputSource());
>> > driver.format();
>> > driver.setOutputStream(out);
>> > driver.render();
>> >
>> > response.setContentType("application/pdf");
>> > byte[] content = out.toByteArray();
>> > response.setContentLength(content.length);
>> > response.getOutputStream().write(content);
>> > response.getOutputStream().flush();
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, email: [EMAIL PROTECTED]
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]