You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by 校长 <sd...@gmail.com> on 2010/04/20 18:28:04 UTC
1.6.x compile failed on test
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.
Re: 1.6.x compile failed on test
Posted by Nathan Bubna <nb...@gmail.com>.
No worries. I wasn't ignoring you, so much as trying to keep
attention on the open vote threads.
On Wed, Apr 21, 2010 at 7:28 AM, Antonio Petrelli
<an...@gmail.com> wrote:
> 2010/4/21 Nathan Bubna <nb...@gmail.com>:
>> :) We'll get that sandbox going. Just be patient...
>
> Ok thanks! I was a bit rude since no one answered before.
>
> Ciao
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: 1.6.x compile failed on test
Posted by Antonio Petrelli <an...@gmail.com>.
2010/4/21 Nathan Bubna <nb...@gmail.com>:
> :) We'll get that sandbox going. Just be patient...
Ok thanks! I was a bit rude since no one answered before.
Ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: 1.6.x compile failed on test
Posted by Nathan Bubna <nb...@gmail.com>.
:) We'll get that sandbox going. Just be patient...
On Wed, Apr 21, 2010 at 12:45 AM, Antonio Petrelli
<an...@gmail.com> wrote:
> 2010/4/21 校长 <sd...@gmail.com>:
>> I think JDOM does not add in test lib path.
>
> How many times should I say to support Maven? Oh well..
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: Maven+Ant (was: Re: 1.6.x compile failed on test)
Posted by Nathan Bubna <nb...@gmail.com>.
On Wed, Apr 21, 2010 at 4:04 AM, 校长 <sd...@gmail.com> wrote:
> Ohh...I think velocity devs shuold select ONE build tool for peoject.
> Mutiple build tools will cause many problem on test task. Ant & Maven are
> very good, But focus on one tool.
agreed
> When guys see pom.xml in project root directory, then they usually run with
> Maven, and build.xml run with ant. We also suffer from maven & ant
> supports to projects at same time, it is not funning, so we remove ant
> tools absolute(We select maven to manage more than 100 sub-projects, ant is
> weak on many sub-projects). I think ant is enough for velocity projects.
careful what you assume. even Ant-built projects need POMs these
days. pom.xml is much more than just a build tool.
> Leon Liu
>
> 2010/4/21 Antonio Petrelli <an...@gmail.com>
>
>> 2010/4/21 Claude Brisson <cl...@renegat.net>:
>> > We heard you, Antonio, we agree and are open to patches, but could you
>> > elaborate on why we'd need to break Ant support to do so?!
>>
>> Because maintaing two ways of buiding artifacts is counterproductive:
>> choose one.
>> Do you want to stick with Ant? Fine for me. But if you want to move to
>> Maven, it will become the only way to build everything, since the Ant
>> build system will become what current Maven support is in Velocity
>> (and Velocity Tools): not working at all.
>> (I must say that in Velocity Tools the situation is a bit better, but
>> that's another story).
>>
>> What I wanted to say is: give me a chance. Please, open a sandbox
>> where I will show how a semi-definitive project structure will be. If
>> you don't like it, simply delete it (or move it to archive).
>> I won't break anything since I will "play" only in the sandbox.
>> I forwarded messages from the infra team that shows how to do it, but
>> only a PMC chair can do it.
>>
>> Thanks
>> Antonio
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: dev-help@velocity.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: Maven+Ant (was: Re: 1.6.x compile failed on test)
Posted by 校长 <sd...@gmail.com>.
Ohh...I think velocity devs shuold select ONE build tool for peoject.
Mutiple build tools will cause many problem on test task. Ant & Maven are
very good, But focus on one tool.
When guys see pom.xml in project root directory, then they usually run with
Maven, and build.xml run with ant. We also suffer from maven & ant
supports to projects at same time, it is not funning, so we remove ant
tools absolute(We select maven to manage more than 100 sub-projects, ant is
weak on many sub-projects). I think ant is enough for velocity projects.
Leon Liu
2010/4/21 Antonio Petrelli <an...@gmail.com>
> 2010/4/21 Claude Brisson <cl...@renegat.net>:
> > We heard you, Antonio, we agree and are open to patches, but could you
> > elaborate on why we'd need to break Ant support to do so?!
>
> Because maintaing two ways of buiding artifacts is counterproductive:
> choose one.
> Do you want to stick with Ant? Fine for me. But if you want to move to
> Maven, it will become the only way to build everything, since the Ant
> build system will become what current Maven support is in Velocity
> (and Velocity Tools): not working at all.
> (I must say that in Velocity Tools the situation is a bit better, but
> that's another story).
>
> What I wanted to say is: give me a chance. Please, open a sandbox
> where I will show how a semi-definitive project structure will be. If
> you don't like it, simply delete it (or move it to archive).
> I won't break anything since I will "play" only in the sandbox.
> I forwarded messages from the infra team that shows how to do it, but
> only a PMC chair can do it.
>
> Thanks
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
Re: Maven+Ant (was: Re: 1.6.x compile failed on test)
Posted by Antonio Petrelli <an...@gmail.com>.
2010/4/21 Claude Brisson <cl...@renegat.net>:
> We heard you, Antonio, we agree and are open to patches, but could you
> elaborate on why we'd need to break Ant support to do so?!
Because maintaing two ways of buiding artifacts is counterproductive:
choose one.
Do you want to stick with Ant? Fine for me. But if you want to move to
Maven, it will become the only way to build everything, since the Ant
build system will become what current Maven support is in Velocity
(and Velocity Tools): not working at all.
(I must say that in Velocity Tools the situation is a bit better, but
that's another story).
What I wanted to say is: give me a chance. Please, open a sandbox
where I will show how a semi-definitive project structure will be. If
you don't like it, simply delete it (or move it to archive).
I won't break anything since I will "play" only in the sandbox.
I forwarded messages from the infra team that shows how to do it, but
only a PMC chair can do it.
Thanks
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Maven+Ant (was: Re: 1.6.x compile failed on test)
Posted by Claude Brisson <cl...@renegat.net>.
We heard you, Antonio, we agree and are open to patches, but could you
elaborate on why we'd need to break Ant support to do so?!
Claude
On mer., 2010-04-21 at 09:45 +0200, Antonio Petrelli wrote:
> 2010/4/21 校长 <sd...@gmail.com>:
> > I think JDOM does not add in test lib path.
>
> How many times should I say to support Maven? Oh well..
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: 1.6.x compile failed on test
Posted by Antonio Petrelli <an...@gmail.com>.
2010/4/21 校长 <sd...@gmail.com>:
> I think JDOM does not add in test lib path.
How many times should I say to support Maven? Oh well..
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: 1.6.x compile failed on test
Posted by 校长 <sd...@gmail.com>.
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 <nb...@gmail.com>
> What versions of Ant and the JDK are you using?
>
> On Tue, Apr 20, 2010 at 9:42 AM, 校长 <sd...@gmail.com> 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 <nb...@gmail.com>
> >
> >> Use Ant. The Maven build is only casually supported.
> >>
> >> On Tue, Apr 20, 2010 at 9:28 AM, 校长 <sd...@gmail.com> 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: dev-unsubscribe@velocity.apache.org
> >> For additional commands, e-mail: dev-help@velocity.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
Re: 1.6.x compile failed on test
Posted by 校长 <sd...@gmail.com>.
Nathan,
yes, you are right. I am using an old ant version that cause JDOM
problem.
thank you .
Leon Liu
2010/4/21 Nathan Bubna <nb...@gmail.com>
> I just checked out the 1.6.x branch, and ran "ant test" successfully
> using Ant 1.7.0 and Java 1.6.0. I also checked to see if it was only
> working for me because JDOM was in my %ANT_HOME%/lib, but i didn't see
> it there (unless it was packaged in another jar, which seems
> unlikely).
>
> On Tue, Apr 20, 2010 at 9:58 AM, Nathan Bubna <nb...@gmail.com> wrote:
> > What versions of Ant and the JDK are you using?
> >
> > On Tue, Apr 20, 2010 at 9:42 AM, 校长 <sd...@gmail.com> 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 <nb...@gmail.com>
> >>
> >>> Use Ant. The Maven build is only casually supported.
> >>>
> >>> On Tue, Apr 20, 2010 at 9:28 AM, 校长 <sd...@gmail.com> 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: dev-unsubscribe@velocity.apache.org
> >>> For additional commands, e-mail: dev-help@velocity.apache.org
> >>>
> >>>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
Re: 1.6.x compile failed on test
Posted by Nathan Bubna <nb...@gmail.com>.
I just checked out the 1.6.x branch, and ran "ant test" successfully
using Ant 1.7.0 and Java 1.6.0. I also checked to see if it was only
working for me because JDOM was in my %ANT_HOME%/lib, but i didn't see
it there (unless it was packaged in another jar, which seems
unlikely).
On Tue, Apr 20, 2010 at 9:58 AM, Nathan Bubna <nb...@gmail.com> wrote:
> What versions of Ant and the JDK are you using?
>
> On Tue, Apr 20, 2010 at 9:42 AM, 校长 <sd...@gmail.com> 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 <nb...@gmail.com>
>>
>>> Use Ant. The Maven build is only casually supported.
>>>
>>> On Tue, Apr 20, 2010 at 9:28 AM, 校长 <sd...@gmail.com> 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: dev-unsubscribe@velocity.apache.org
>>> For additional commands, e-mail: dev-help@velocity.apache.org
>>>
>>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: 1.6.x compile failed on test
Posted by Nathan Bubna <nb...@gmail.com>.
What versions of Ant and the JDK are you using?
On Tue, Apr 20, 2010 at 9:42 AM, 校长 <sd...@gmail.com> 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 <nb...@gmail.com>
>
>> Use Ant. The Maven build is only casually supported.
>>
>> On Tue, Apr 20, 2010 at 9:28 AM, 校长 <sd...@gmail.com> 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: dev-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: dev-help@velocity.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
Re: 1.6.x compile failed on test
Posted by 校长 <sd...@gmail.com>.
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 <nb...@gmail.com>
> Use Ant. The Maven build is only casually supported.
>
> On Tue, Apr 20, 2010 at 9:28 AM, 校长 <sd...@gmail.com> 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: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
Re: 1.6.x compile failed on test
Posted by Nathan Bubna <nb...@gmail.com>.
Use Ant. The Maven build is only casually supported.
On Tue, Apr 20, 2010 at 9:28 AM, 校长 <sd...@gmail.com> 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org