You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Michael Lorenz <Lo...@ngi.de> on 2001/02/14 15:59:27 UTC

Question about command line utility

Hi, 
I'm sorry for asking a rather boring question. But I'm dealing with this
problem for two days now. So I've decided to steal some of your precious
time.

My problem:

Whenever I start Xalan from the command line like this:

D:\Hacken\JDK\bin>java org.apache.xalan.xslt.Process -IN contents.xml
-XSL XSL\J
avaXML.html.xsl -OUT contents.html

I get this Error:

java.lang.NoSuchMethodError
        at
org.apache.xpath.axes.ChildWalkerOneStep.nextNode(ChildWalkerOneStep.
java:100)
        at
org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:4
36)
        at
org.apache.xalan.transformer.TransformerImpl.transformSelectedNodes(T
ransformerImpl.java:1253)
        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
tes.java:177)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
ansformerImpl.java:1483)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:1400)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
rImpl.java:702)
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:2122)
        at java.lang.Thread.run(Thread.java:484)


Both, xerces.jar and xalan.jar are in the CLASSPATH. Versions are
Xalan-j_2_0_D01 and Xerces-1_2_2. Oh, yes, Windows98.

Please help, as I haven't found any help in FAQs like
http://www.dpawson.co.uk/xsl/xslfaq.html.

Thank you very much in advance,

Michael.


Re: Question about command line utility

Posted by Michael Lorenz <Lo...@ngi.de>.
Oh, well...
I finally found some information on how to fix that. Thanks anyway!

Michael Lorenz schrieb:
> 
> Hi,
> I'm sorry for asking a rather boring question. But I'm dealing with this
> problem for two days now. So I've decided to steal some of your precious
> time.
> 
> My problem:
> 
> Whenever I start Xalan from the command line like this:
> 
> D:\Hacken\JDK\bin>java org.apache.xalan.xslt.Process -IN contents.xml
> -XSL XSL\J
> avaXML.html.xsl -OUT contents.html
> 
> I get this Error:
> 
> java.lang.NoSuchMethodError
>         at
> org.apache.xpath.axes.ChildWalkerOneStep.nextNode(ChildWalkerOneStep.
> java:100)
>         at
> org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:4
> 36)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformSelectedNodes(T
> ransformerImpl.java:1253)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
> tes.java:177)
>         at
> org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
> ansformerImpl.java:1483)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
> rImpl.java:1400)
>         at
> org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
> rImpl.java:702)
>         at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> :2122)
>         at java.lang.Thread.run(Thread.java:484)
> 
> Both, xerces.jar and xalan.jar are in the CLASSPATH. Versions are
> Xalan-j_2_0_D01 and Xerces-1_2_2. Oh, yes, Windows98.
> 
> Please help, as I haven't found any help in FAQs like
> http://www.dpawson.co.uk/xsl/xslfaq.html.
> 
> Thank you very much in advance,
> 
> Michael.

-- 
Ich weiß, daß das Datum meines mails nicht stimmt. Ich mach das, damit
ich eine 30-Tage-Evaluation länger nutzen kann. Danke für Dein
Verständnis.


Re: Question about command line utility

Posted by Gary L Peskin <ga...@firstech.com>.
Michael Lorenz wrote:
> 
> Hi,
> I'm sorry for asking a rather boring question. But I'm dealing with this
> problem for two days now. So I've decided to steal some of your precious
> time.
> 
> My problem:
> 
> Whenever I start Xalan from the command line like this:
> 
> D:\Hacken\JDK\bin>java org.apache.xalan.xslt.Process -IN contents.xml
> -XSL XSL\J
> avaXML.html.xsl -OUT contents.html
> 
> I get this Error:
> 
> java.lang.NoSuchMethodError

The most likely cause of this is that you have some other parser in your
CLASSPATH ahead of xerces and xalan.  Check your lib/ext directory for
any .jar files that might contain such a parser.  Likely suspects are
jaxp.jar and parser.jar.  If you can't find the problem, send us your
classpath and the list of files in your ext directory.

Gary

Re: Question about command line utility

Posted by Chris Gow <cg...@digitalfairway.com>.
Just to cover the simple case, what else is on your CLASSPATH?

I would remove everything except xalan and xerces and see if your 
transformation works.  I usually get errors like the one you described 
below when I inadvertently use an older XML parser.

Chris

At 03:59 PM 2/14/01 +0100, you wrote:

>Hi,
>I'm sorry for asking a rather boring question. But I'm dealing with this
>problem for two days now. So I've decided to steal some of your precious
>time.
>
>My problem:
>
>Whenever I start Xalan from the command line like this:
>
>D:\Hacken\JDK\bin>java org.apache.xalan.xslt.Process -IN contents.xml
>-XSL XSL\J
>avaXML.html.xsl -OUT contents.html
>
>I get this Error:
>
>java.lang.NoSuchMethodError
>         at
>org.apache.xpath.axes.ChildWalkerOneStep.nextNode(ChildWalkerOneStep.
>java:100)
>         at
>org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:4
>36)
>         at
>org.apache.xalan.transformer.TransformerImpl.transformSelectedNodes(T
>ransformerImpl.java:1253)
>         at
>org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTempla
>tes.java:177)
>         at
>org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tr
>ansformerImpl.java:1483)
>         at
>org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
>rImpl.java:1400)
>         at
>org.apache.xalan.transformer.TransformerImpl.transformNode(Transforme
>rImpl.java:702)
>         at
>org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
>:2122)
>         at java.lang.Thread.run(Thread.java:484)
>
>
>Both, xerces.jar and xalan.jar are in the CLASSPATH. Versions are
>Xalan-j_2_0_D01 and Xerces-1_2_2. Oh, yes, Windows98.
>
>Please help, as I haven't found any help in FAQs like
>http://www.dpawson.co.uk/xsl/xslfaq.html.
>
>Thank you very much in advance,
>
>Michael.

===============================================================================

"It is inhumane, in my opinion, to force people who have a genuine
  medical need for coffee to wait in line behind people who apparently
  view it as some kind of recreational activity."
                 -- Dave Barry

-------------------------------------------------------------------------------
Chris Gow                                           Digital Fairway Corporation
Software Engineer                                   180 Attwell Drive Suite 360
cgow@digitalfairway.com                             Etobicoke, ON M9W 6A9
http://www.digitalfairway.com                       416.628.7534
===============================================================================