Hi Sachin, Using -lib option I successes to correct the Error thanks for help. But still build is not successful now I am getting below java exception. Any idea where its goes wrong?
C:\src\apache-lenya-2.0.3-src>call tools\bin\ant
-Djava.endorsed.dirs=externals\cocoon_2_1_x\lib\endorsed -logger
org.apache.tools.ant.NoBannerLogger -emacs -lib lib/jing-20030619.jar
Buildfile: build.xml
init:
------------------- Apache Lenya 2.0.3 [1999-2008] ----------------
Building with Apache Ant version 1.7.1 compiled on June 27 2008 and Java version
1.6
Using build file C:\src\apache-lenya-2.0.3-src\build.xml
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/xpath/XPathAPI
at XConfToolTask.patch(Unknown Source)
at XConfToolTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: org.apache.xpath.XPathAPI
at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 18 more
Total time: 0 seconds
Thanks & Regards,
Pravin Kamde/ Capgemini India / Mumbai - Tekelec
Consultant | France BU | Mumbai
Cell: 91 9769541040/ 9096310609 VOIP : 2239194000 - Extension 2211818
www.in.capgemini.com<https://webmail.in.capgemini.com/exchweb/bin/redir.asp?URL=http://www.in.capgemini.com/>
email: [email protected]<mailto:[email protected]>
[cid:[email protected]][cid:[email protected]]together.
Free your energies
-----------------------------------------------------------------------------------------
I shut down my system before leaving; do u ? SAVE ENERGY
Join OYE! (Open Your
Eyes)<http://intranet.in.capgemini.com/people/communities/open_your_eyes/> to
reduce GLOBAL WARMING...
-----------------------------------------------------------------------------------------
From: Sachin [mailto:[email protected]]
Sent: Wednesday, July 21, 2010 1:10 PM
To: [email protected]
Subject: Re: Facing Error while building Leyna - properties-build.xml:162:
taskdef class com.thaiopensource.relaxng.util.JingTask cannot be found
Hi Pravin
You can use -lib option with build.bat to include libraries(jing etc) like:
build.bat -lib externals/cocoon_2_1_x/optional
Regards
Sachin
On Wednesday 21 July 2010 12:47 PM, Gaurav Kalia wrote:
Hi Pravin
Please make sure that the Jing Jar is in your build path. If you are using IDE
like Eclipse then you can configure it from "External Tool Configuration".
HTH
Thanks
Gaurav
On Wednesday 21 July 2010 11:27 AM, Kamde, Pravin wrote:
Hi All,
I am trying to build the lenya CMS on my PC but after configuration when I try
to build leyna using build.bat file I am getting bellow error.
C:\src\apache-lenya-2.0.3-src>build.bat
ECHO is off.
Buildfile: build.xml
BUILD FAILED
C:\src\apache-lenya-2.0.3-src\src\targets\properties-build.xml:162: taskdef
class com.thaiopensource.relaxng.util.JingTask cannot be found
Total time: 0 seconds
I have checked the existence of jingTask class file and it is there inside
"jing-20030619.jar" file and this file is well included in classpath env
variable.
Can someone have an idea how I can correct this error?
Thanks in advance for your help and suggestions.
Thanks & Regards,
Pravin Kamde/ Capgemini India / Mumbai - Tekelec
Consultant | France BU | Mumbai
Cell: 91 9769541040/ 9096310609 VOIP : 2239194000 - Extension 2211818
www.in.capgemini.com<https://webmail.in.capgemini.com/exchweb/bin/redir.asp?URL=http://www.in.capgemini.com/>
email: [email protected]<mailto:[email protected]>
[cid:[email protected]][cid:[email protected]]together.
Free your energies
-----------------------------------------------------------------------------------------
I shut down my system before leaving; do u ? SAVE ENERGY
Join OYE! (Open Your
Eyes)<http://intranet.in.capgemini.com/people/communities/open_your_eyes/> to
reduce GLOBAL WARMING...
-----------------------------------------------------------------------------------------
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.
</PRE><p style="font-family:arial;color:grey" style="font-size:13px">This
message contains information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the person to whom it
is addressed. If you are not the intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any
part thereof. If you receive this message in error, please notify the sender
immediately and delete all copies of this message.</p><PRE>
<<inline: image001.gif>>
<<inline: image002.png>>
<<inline: image003.jpg>>
<<inline: image004.png>>
