Nathan,
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Server VM (build 16.0-b13, mixed mode)

I think JDOM does not add in test lib path.  On my laptop, only JAVA_HOME
set in enviroment. I think it is a build.xml issue.

Leon


2010/4/21 Nathan Bubna <[email protected]>

> What versions of Ant and the JDK are you using?
>
> On Tue, Apr 20, 2010 at 9:42 AM, 校长 <[email protected]> wrote:
> > Hi Nathan,
> >    sorry, i got another test task faild.
> >    Thank you.
> > Leon
> >
> > test-anakia:
> >     [echo] Running Anakia tests...
> >
> > BUILD FAILED
> > /disk/home/work/v1.6.x/build/build.xml:1147: The following error occurred
> > while executing this line:
> > /disk/home/work/v1.6.x/build/testcases.xml:81: taskdef A class needed by
> > class org.apache.velocity.anakia.AnakiaTask cannot be found:
> > org/jdom/JDOMException
> >
> > Total time: 49 seconds
> >
> >
> >
> > 2010/4/21 Nathan Bubna <[email protected]>
> >
> >> Use Ant.  The Maven build is only casually supported.
> >>
> >> On Tue, Apr 20, 2010 at 9:28 AM, 校长 <[email protected]> wrote:
> >> > Hi devs,
> >> >    I got source code from
> >> > http://svn.apache.org/repos/asf/velocity/engine/branches/1.6.x   and
> >> compile
> >> > it , then I got following error.  Anyone can help me ?  Thank you.
> >> >
> >> > Leon
> >> >
> >> >
> >> > [INFO] Compiling 125 source files to
> >> > /disk/home/work/v1.6.x/target/test-classes
> >> > [INFO] [surefire:test]
> >> > [INFO] Surefire report directory:
> >> > /disk/home/work/v1.6.x/target/surefire-reports
> >> > org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
> >> > instantiate POJO 'class org.apache.velocity.test.TestClassloader';
> nested
> >> > exception is java.lang.IllegalAccessException: Class
> >> > org.apache.maven.surefire.testset.PojoTestSet can not access a member
> of
> >> > class org.apache.velocity.test.TestClassloader with modifiers
> "public";
> >> > nested exception is
> >> > org.apache.maven.surefire.testset.TestSetFailedException: Unable to
> >> > instantiate POJO 'class org.apache.velocity.test.TestClassloader';
> nested
> >> > exception is java.lang.IllegalAccessException: Class
> >> > org.apache.maven.surefire.testset.PojoTestSet can not access a member
> of
> >> > class org.apache.velocity.test.TestClassloader with modifiers "public"
> >> > org.apache.maven.surefire.testset.TestSetFailedException: Unable to
> >> > instantiate POJO 'class org.apache.velocity.test.TestClassloader';
> nested
> >> > exception is java.lang.IllegalAccessException: Class
> >> > org.apache.maven.surefire.testset.PojoTestSet can not access a member
> of
> >> > class org.apache.velocity.test.TestClassloader with modifiers "public"
> >> > java.lang.IllegalAccessException: Class
> >> > org.apache.maven.surefire.testset.PojoTestSet can not access a member
> of
> >> > class org.apache.velocity.test.TestClassloader with modifiers "public"
> >> >    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
> >> >    at java.lang.Class.newInstance0(Class.java:349)
> >> >    at java.lang.Class.newInstance(Class.java:308)
> >> >    at
> >> >
> org.apache.maven.surefire.testset.PojoTestSet.<init>(PojoTestSet.java:55)
> >> >    at
> >> >
> >>
> org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:64)
> >> >    at
> >> >
> >>
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
> >> >    at
> >> >
> >>
> org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
> >> >    at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
> >> >    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >    at
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> >    at
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> >    at java.lang.reflect.Method.invoke(Method.java:597)
> >> >    at
> >> >
> >>
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
> >> >    at
> >> >
> >>
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [ERROR] BUILD FAILURE
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] There are test failures.
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to