You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ralf Hauser <ra...@gmx.ch> on 2002/10/11 06:54:20 UTC

anakia problems - NoClassDefFoundError com/werken/xpath/XPath

Hi,

I wanted to recreate the ant faq.html locally with anakia and failed.

Therefore my questions (as per my current understanding of the causes):
A) Is there a plan to provide velocity with jaxen instead of werken.xpath
any time soon?
B) Will there be win2k compatible binary versions of velocity/anakia?


How did I get there? Following the "Installation/Example" section of
http://jakarta.apache.org/velocity/anakia.html, I
1) I built velocity
  i) both just with "ant" and later also "ant jar-dep" (after first failures
and after I had downloaded jdom.jar)
  ii) then I included jars\velocity-1.3.1-rc2\velocity-dep-1.3.1-rc2.jar in
my CLASSPATH
  iii) "ant javadocs" and had 34 warnings (see attachment)
  iv) "ant test" which worked. (see attachment )

2) i) pushd ../../velocity-1.3.1-rc2/examples/anakia/build
   ii) "ant" appears to be fine, just that the html files are almost empty.
(tee'ed output attached as dep1.txt, but the error messages from the screen
appended at the very end below bob's message)

Then I got to bob who told me the below that werken/xpath is sunsetted
already since Q1 2001.

Having troubles getting retired werken to compile (see attachment
xpatherr.1)
does anybody have any hints?

Many thanks in advance!

Rgds

	Ralf
-----Original Message-----
From: bob mcwhirter [mailto:bob@werken.com]
Sent: Donnerstag, 10. Oktober 2002 15:45
To: hauser@acm.org
Subject: Re: NoClassDefFoundError com/werken/xpath/XPath



Yes, anakia uses the werken.xpath XPath engine which has been
sunsetted in favor of Jaxen.  They are not compatible.

http://sf.net/projects/werken-xpath/ was the last known home
of werken.xpath, I think, if you need an archival version of
the jar.

As you noted, Jaxen is the way to go.  There should be a build.pl script
that will handle configuration of the classpath as needed on either
windows or Unix, assuming you have some flavor of perl install.

We're also moving towards building jaxen with maven
(http://jakarta.apache.org/turbine/maven/)
and next month I hope to release jaxen-1.1 including binary images.

	-bob
----------------------
rhauser@RHAUSERPCGF590K:~/<6>anakia/build> ant | tee dep1.txt
Buildfile: build.xml

prepare:

prepare-error:

docs:
   [anakia] Transforming into:
C:\data\MyDocRalf\bin\Java\jars\velocity-1.3.1-rc
2\examples\anakia\docs
   [anakia] org.apache.velocity.exception.MethodInvocationException:
Invocation
of method 'applyTo' in  class org.apache.velocity.anakia.XPathTool threw
excepti
on class java.lang.NoClassDefFoundError : com/werken/xpath/XPath
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(AST
Method.java:309)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTReference.execute(
ASTReference.java:207)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTReference.value(AS
TReference.java:357)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTSetDirective.rende
r(ASTSetDirective.java:135)
   [anakia]     at
org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:271)
   [anakia]     at
org.apache.velocity.runtime.directive.VelocimacroProxy.render
(VelocimacroProxy.java:215)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTDirective.render(A
STDirective.java:153)
   [anakia]     at
org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:271)
   [anakia]     at org.apache.velocity.Template.merge(Template.java:296)
   [anakia]     at
org.apache.velocity.anakia.AnakiaTask.process(AnakiaTask.java
:408)
   [anakia]     at
org.apache.velocity.anakia.AnakiaTask.execute(AnakiaTask.java
:333)

   [anakia]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
   [anakia]     at org.apache.tools.ant.Task.perform(Task.java:317)
   [anakia]     at org.apache.tools.ant.Target.execute(Target.java:309)
   [anakia]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
   [anakia]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)

   [anakia]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1250
)
   [anakia]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
   [anakia]     at org.apache.tools.ant.Main.start(Main.java:196)
   [anakia]     at org.apache.tools.ant.Main.main(Main.java:235)
   [anakia] Input:  index.xml
   [anakia] org.apache.velocity.exception.MethodInvocationException:
Invocation
of method 'applyTo' in  class org.apache.velocity.anakia.XPathTool threw
excepti
on class java.lang.NoClassDefFoundError : com/werken/xpath/XPath
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(AST
Method.java:309)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTReference.execute(
ASTReference.java:207)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTReference.value(AS
TReference.java:357)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTSetDirective.rende
r(ASTSetDirective.java:135)
   [anakia]     at
org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:271)
   [anakia]     at
org.apache.velocity.runtime.directive.VelocimacroProxy.render
(VelocimacroProxy.java:215)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTDirective.render(A
STDirective.java:153)
   [anakia]     at
org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:271)
   [anakia]     at org.apache.velocity.Template.merge(Template.java:296)
   [anakia]     at
org.apache.velocity.anakia.AnakiaTask.process(AnakiaTask.java
:408)
   [anakia]     at
org.apache.velocity.anakia.AnakiaTask.execute(AnakiaTask.java
:333)
   [anakia]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
   [anakia]     at org.apache.tools.ant.Task.perform(Task.java:317)
   [anakia]     at org.apache.tools.ant.Target.execute(Target.java:309)
   [anakia]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
   [anakia]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)

   [anakia]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1250
)
   [anakia]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
   [anakia]     at org.apache.tools.ant.Main.start(Main.java:196)
   [anakia]     at org.apache.tools.ant.Main.main(Main.java:235)
   [anakia] Input:  faq.xml
   [anakia] org.apache.velocity.exception.MethodInvocationException:
Invocation
of method 'applyTo' in  class org.apache.velocity.anakia.XPathTool threw
excepti
on class java.lang.NoClassDefFoundError : com/werken/xpath/XPath
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(AST
Method.java:309)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTReference.execute(
ASTReference.java:207)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTReference.value(AS
TReference.java:357)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTSetDirective.rende
r(ASTSetDirective.java:135)
   [anakia]     at
org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:271)
   [anakia]     at
org.apache.velocity.runtime.directive.VelocimacroProxy.render
(VelocimacroProxy.java:215)
   [anakia]     at
org.apache.velocity.runtime.parser.node.ASTDirective.render(A
STDirective.java:153)
   [anakia]     at
org.apache.velocity.runtime.parser.node.SimpleNode.render(Sim
pleNode.java:271)
   [anakia]     at org.apache.velocity.Template.merge(Template.java:296)
   [anakia]     at
org.apache.velocity.anakia.AnakiaTask.process(AnakiaTask.java
:408)
   [anakia]     at
org.apache.velocity.anakia.AnakiaTask.execute(AnakiaTask.java
:333)
   [anakia]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:166)
   [anakia]     at org.apache.tools.ant.Task.perform(Task.java:317)
   [anakia]     at org.apache.tools.ant.Target.execute(Target.java:309)
   [anakia]     at org.apache.tools.ant.Target.performTasks(Target.java:334)
   [anakia]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)

   [anakia]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1250
)
   [anakia]     at org.apache.tools.ant.Main.runBuild(Main.java:610)
   [anakia]     at org.apache.tools.ant.Main.start(Main.java:196)
   [anakia]     at org.apache.tools.ant.Main.main(Main.java:235)
     [copy] Copying 1 file to
C:\data\MyDocRalf\bin\Java\jars\velocity-1.3.1-rc2
\examples\anakia\docs\images

BUILD SUCCESSFUL
Total time: 3 seconds