Re: java.lang.ClassNotFoundException:, org.apache.tools.ant.taskdefs.optional.TraXLiaison (HELLLLPPPP please)

Dan Rollo <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi Michael,

I don't recall if the build.sh file is invoked by any of the common 
processes used to build CC, but as a sanity check: Can you successfully 
run release.sh (or release.bat in dos) from the project root?

Those build the entire project (including the reporting apps).

Another approach is to just invoke "ant" in the reporting/jsp dir. This 
will build the jsp project.

Assuming reporting/jsp/build.sh is not just broken, I'm guessing some 
unexpected version of ant is earlier on you cygwin path, and that ant 
install has some additional extensions...

Let us know what you find.

Dan



Date: Thu, 19 May 2011 13:21:33 +0300
From: Michael Long <[email protected]>
Subject: [Cruisecontrol-user] java.lang.ClassNotFoundException:
	org.apache.tools.ant.taskdefs.optional.TraXLiaison (HELLLLPPPP please)
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

Can somebody help with this error.

I have CC source build 2.8.4 and apache-ant-1.8.2 and am using cygwin
environment on windows.

I have followed these instructions.

I ran build.sh from INSTALL_DIR/main/ and it went ok.
When I compile build.sh from INSTALL_DIR/reporting/jsp  I get this error


How can I fix this error?? Anybody please?

I have installed the following jars to INSTALL_DIR/lib
ant-trax-1.6.5.jar
ant-junit.jar
ant-nodeps-1.8.1.jar
ant-optional-1.5.2.jar

It didnt help.

It should be so easy to solve but I just can't


--checkstyle-report:
      [xslt] java.lang.ClassNotFoundException:
org.apache.tools.ant.taskdefs.optional.TraXLiaison
      [xslt]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      [xslt]     at java.security.AccessController.doPrivileged(Native
Method)
      [xslt]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      [xslt]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      [xslt]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      [xslt]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      [xslt]     at java.lang.Class.forName0(Native Method)
      [xslt]     at java.lang.Class.forName(Class.java:169)
      [xslt]     at
org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java:548)
      [xslt]     at
org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProcess.java:533)
      [xslt]     at
org.apache.tools.ant.taskdefs.XSLTProcess.getLiaison(XSLTProcess.java:785)
      [xslt]     at
org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:300)
      [xslt]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [xslt]     at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown
Source)
      [xslt]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [xslt]     at java.lang.reflect.Method.invoke(Method.java:597)
      [xslt]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [xslt]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [xslt]     at org.apache.tools.ant.Target.execute(Target.java:357)
      [xslt]     at 
org.apache.tools.ant.Target.performTasks(Target.java:385)
      [xslt]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [xslt]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      [xslt]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [xslt]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [xslt]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
      [xslt]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
      [xslt]     at org.apache.tools.ant.Main.start(Main.java:161)
      [xslt]     at org.apache.tools.ant.Main.main(Main.java:250)
-------------- next part --------------
An HTML attachment was scrubbed...


------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.