You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Rodolfo Sikora <ro...@oktiva.com.br> on 2002/11/28 05:38:07 UTC

Problems testing Velocity

Hi there!

I compilled velocity right now. No problems at all.
Once it was compilled, I tryied:

C:\velocity-1.3.1-rc2\build>c:\ant\bin\ant test
Buildfile: build.xml

env:
     [echo] java.home = C:\j2sdk1.4.1\jre
     [echo] user.home = C:\Documents and Settings\vo0do0
     [echo] java.class.path = C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib\ant.jar;C:\expres
so\webapps\ROOT\WEB-INF\lib\junit.jar


prepare:

compile:

compile-copy:

test:

test-template:
     [echo] Running Template tests...
     [java] java.lang.NoClassDefFoundError: junit/framework/TestCase
     [java]     at java.lang.ClassLoader.defineClass0(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
     [java]     at java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:123)
     [java]     at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
     [java]     at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

     [java]     at java.lang.ClassLoader.defineClass0(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
     [java]     at java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:123)
     [java]     at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
     [java]     at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
     [java]     at java.security.AccessController.doPrivileged(Native Method)
     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
     [java]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
     [java]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:140)
     [java]     at junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLo
ader.java:11)
     [java]     at junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.jav
a:135)
     [java]     at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:32)
     [java]     at junit.textui.TestRunner.start(TestRunner.java:233)
     [java]     at junit.textui.TestRunner.main(TestRunner.java:112)
     [java] Exception in thread "main"

BUILD FAILED
file:C:/velocity-1.3.1-rc2/build/testcases.xml:82: Java returned: 1

Total time: 3 seconds
C:\velocity-1.3.1-rc2\build>

How can u see, problems testing velocity.

can anybody help me?

tkz

Re: Problems testing Velocity

Posted by Rodolfo Sikora <ro...@oktiva.com.br>.
Hi,
I followed your recomendations, and got same errors:

C:\velocity-1.3.1-rc2\build>\ant\bin\ant test
Buildfile: build.xml

env:
     [echo] java.home = C:\j2sdk1.4.1\jre
     [echo] user.home = C:\Documents and Settings\vo0do0
     [echo] java.class.path =
C:\j2sdk1.4.1\lib\tools.jar;C:\ant\bin\..\lib\xml-
apis.jar;C:\ant\bin\..\lib\xercesImpl.jar;C:\ant\bin\..\lib\optional.jar;C:\
ant\
bin\..\lib\ant.jar;


prepare:

compile:

compile-copy:

test:

test-template:
     [echo] Running Template tests...
     [java] java.lang.NoClassDefFoundError: junit/framework/TestCase
     [java]     at java.lang.ClassLoader.defineClass0(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:123)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

     [java]     at java.lang.ClassLoader.defineClass0(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader
.java:123)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
     [java]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
     [java]     at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

     [java]     at java.lang.Class.forName0(Native Method)
     [java]     at java.lang.Class.forName(Class.java:140)
     [java]     at
junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLo
ader.java:11)
     [java]     at
junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.jav
a:135)
     [java]     at
junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:32)
     [java]     at junit.textui.TestRunner.start(TestRunner.java:233)
     [java]     at junit.textui.TestRunner.main(TestRunner.java:112)
     [java] Exception in thread "main"

BUILD FAILED
file:C:/velocity-1.3.1-rc2/build/testcases.xml:82: Java returned: 1

Total time: 2 seconds
C:\velocity-1.3.1-rc2\build>


----- Original Message -----
From: "Peter Romianowski" <me...@gmx.de>
To: "'Velocity Users List'" <ve...@jakarta.apache.org>
Sent: Friday, November 29, 2002 9:00 AM
Subject: RE: Problems testing Velocity


I'm using ant 1.5.1 and it works really well!

>From the original post I see your initial Classpath is:

C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib\ant.jar;C
:\expres
so\webapps\ROOT\WEB-INF\lib\junit.jar

  Perhaps there's a collision between your junit.jar (C:\expres
so\webapps\ROOT\WEB-INF\lib\junit.jar) and the one that will
be added by the build script (lib/junit-3.7.jar). Please
to remove your junit.jar from classpath and try again.

Peter


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problems testing Velocity

Posted by Peter Romianowski <me...@gmx.de>.
I'm using ant 1.5.1 and it works really well!

>From the original post I see your initial Classpath is:

C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib\ant.jar;C
:\expres
so\webapps\ROOT\WEB-INF\lib\junit.jar

  Perhaps there's a collision between your junit.jar (C:\expres
so\webapps\ROOT\WEB-INF\lib\junit.jar) and the one that will
be added by the build script (lib/junit-3.7.jar). Please 
to remove your junit.jar from classpath and try again.

Peter

> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:geirm@adeptra.com] 
> Sent: Thursday, November 28, 2002 8:01 PM
> To: Velocity Users List
> Subject: Re: Problems testing Velocity
> 
> 
> Hm - I'll have to try it.  There have been 'issues' with how ant 
> changes how it uses the classloader (don't know if that's the 
> issue) or 
> where junit is.  What if you put the junit.jar in the ant lib dir?
> 
> On Thursday, November 28, 2002, at 12:27 PM, Rodolfo Sikora wrote:
> 
> > Ant 1.5.1
> > On Thu, 2002-11-28 at 09:55, Geir Magnusson Jr. wrote:
> >> What version of ant?
> >>
> >> On Wednesday, November 27, 2002, at 11:38 PM, Rodolfo Sikora wrote:
> >>
> >>> Hi there!
> >>>
> >>> I compilled velocity right now. No problems at all.
> >>> Once it was compilled, I tryied:
> >>>
> >> [SNIP]
> >>
> >> -- 
> >> Geir Magnusson Jr                                   203-355-2219(w)
> >> Adeptra, Inc.                                       203-247-1713(m)
> >> geirm@adeptra.com
> >>
> >>
> >> --
> >> To unsubscribe, e-mail:   
> >> <ma...@jakarta.apache.org>
> >> For additional commands, e-mail:
> >> <ma...@jakarta.apache.org>
> >>
> >>
> > --
> > Rodolfo Sikora - Desenvolvimento
> > rodolfo@oktiva.com.br - (85) 281-2223 202
> > Oktiva Telecomunicações e Informática Ltda.
> > http://www.oktiva.com.br
> > <signature.asc>
> -- 
> Geir Magnusson Jr                                   203-355-2219(w)
> Adeptra, Inc.                                       203-247-1713(m)
> geirm@adeptra.com
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:velocity-user-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problems testing Velocity

Posted by "Geir Magnusson Jr." <ge...@adeptra.com>.
Hm - I'll have to try it.  There have been 'issues' with how ant 
changes how it uses the classloader (don't know if that's the issue) or 
where junit is.  What if you put the junit.jar in the ant lib dir?

On Thursday, November 28, 2002, at 12:27 PM, Rodolfo Sikora wrote:

> Ant 1.5.1
> On Thu, 2002-11-28 at 09:55, Geir Magnusson Jr. wrote:
>> What version of ant?
>>
>> On Wednesday, November 27, 2002, at 11:38 PM, Rodolfo Sikora wrote:
>>
>>> Hi there!
>>>
>>> I compilled velocity right now. No problems at all.
>>> Once it was compilled, I tryied:
>>>
>> [SNIP]
>>
>> -- 
>> Geir Magnusson Jr                                   203-355-2219(w)
>> Adeptra, Inc.                                       203-247-1713(m)
>> geirm@adeptra.com
>>
>>
>> --
>> To unsubscribe, e-mail:   
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail: 
>> <ma...@jakarta.apache.org>
>>
>>
> -- 
> Rodolfo Sikora - Desenvolvimento
> rodolfo@oktiva.com.br - (85) 281-2223 202
> Oktiva Telecomunicações e Informática Ltda.
> http://www.oktiva.com.br
> <signature.asc>
-- 
Geir Magnusson Jr                                   203-355-2219(w)
Adeptra, Inc.                                       203-247-1713(m)
geirm@adeptra.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problems testing Velocity

Posted by Rodolfo Sikora <ro...@oktiva.com.br>.
Ant 1.5.1
On Thu, 2002-11-28 at 09:55, Geir Magnusson Jr. wrote:
> What version of ant?
> 
> On Wednesday, November 27, 2002, at 11:38 PM, Rodolfo Sikora wrote:
> 
> > Hi there!
> >
> > I compilled velocity right now. No problems at all.
> > Once it was compilled, I tryied:
> >
> [SNIP]
> 
> -- 
> Geir Magnusson Jr                                   203-355-2219(w)
> Adeptra, Inc.                                       203-247-1713(m)
> geirm@adeptra.com
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
-- 
Rodolfo Sikora - Desenvolvimento
rodolfo@oktiva.com.br - (85) 281-2223 202
Oktiva Telecomunicações e Informática Ltda.
http://www.oktiva.com.br

Re: Problems testing Velocity

Posted by "Geir Magnusson Jr." <ge...@adeptra.com>.
What version of ant?

On Wednesday, November 27, 2002, at 11:38 PM, Rodolfo Sikora wrote:

> Hi there!
>
> I compilled velocity right now. No problems at all.
> Once it was compilled, I tryied:
>
[SNIP]

-- 
Geir Magnusson Jr                                   203-355-2219(w)
Adeptra, Inc.                                       203-247-1713(m)
geirm@adeptra.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problems testing Velocity

Posted by Rodolfo Sikora <ro...@oktiva.com.br>.
Hi,

I compilled and tested velocity in debian enviroment, and it worked very
well, no problems at all.
Next step, put it to work on windows XP enviroment.

Thanks everyone, now I'll see the power of velocity. (Intended to use it
in a new framework)

On Mon, 2002-12-02 at 13:31, Rodolfo Sikora wrote:
> Hi Peter,
> 	You saw the 2nd part of email (the old one), I've already removed
> expresso's junit from the classpath, and got the same error.
> 	But I'll try again, now on debian.
> 	10x a lot anyway, I'll send the results soon :D
> 
> 	
> On Mon, 2002-12-02 at 10:16, Peter Romianowski wrote:
> > Hi,
> > 
> >   I still think there's a collision between two junit-jars.
> > Could you please remove C:\expresso\webapps\ROOT\WEB-INF\lib\junit.jar
> > from your classpath (it's still there :). I now tested the
> > build and testcases with the standard windows console and
> > it still worked (I usually use cygwin on windoofs btw).
> > 
> > Peter
> > 
> > ..: My analysis are based on the first 3 rules in Java-Debugging:
> >   1. Look at the CLASSPATH
> >   2. Look at the CLASSPATH
> >   3. Look at the CLASSPATH
> > 
> > :)
> > 
> > > -----Original Message-----
> > > From: Rodolfo Sikora [mailto:rodolfo@oktiva.com.br] 
> > > Sent: Thursday, November 28, 2002 5:38 AM
> > > To: velocity-user@jakarta.apache.org
> > > Subject: Problems testing Velocity
> > > 
> > > 
> > > Hi there!
> > > 
> > > I compilled velocity right now. No problems at all.
> > > Once it was compilled, I tryied:
> > > 
> > > C:\velocity-1.3.1-rc2\build>c:\ant\bin\ant test
> > > Buildfile: build.xml
> > > 
> > > env:
> > >      [echo] java.home = C:\j2sdk1.4.1\jre
> > >      [echo] user.home = C:\Documents and Settings\vo0do0
> > >      [echo] java.class.path = 
> > > C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
> > > r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib
> > > \ant.jar;C:\expres
> > > so\webapps\ROOT\WEB-INF\lib\junit.jar
> > > 
> > > 
> > > prepare:
> > > 
> > > compile:
> > > 
> > > compile-copy:
> > > 
> > > test:
> > > 
> > > test-template:
> > >      [echo] Running Template tests...
> > >      [java] java.lang.NoClassDefFoundError: junit/framework/TestCase
> > >      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
> > >      [java]     at 
> > > java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> > >      [java]     at 
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader
> > > .java:123)
> > >      [java]     at 
> > > java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
> > >      [java]     at 
> > > java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> > >      [java]     at 
> > > java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> > >      [java]     at 
> > > java.security.AccessController.doPrivileged(Native Method)
> > >      [java]     at 
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> > > 
> > >      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
> > >      [java]     at 
> > > java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> > >      [java]     at 
> > > java.security.SecureClassLoader.defineClass(SecureClassLoader
> > > .java:123)
> > >      [java]     at 
> > > java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
> > >      [java]     at 
> > > java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> > >      [java]     at 
> > > java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> > >      [java]     at 
> > > java.security.AccessController.doPrivileged(Native Method)
> > >      [java]     at 
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:292)
> > >      [java]     at 
> > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
> > > 
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> > >      [java]     at 
> > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> > > 
> > >      [java]     at java.lang.Class.forName0(Native Method)
> > >      [java]     at java.lang.Class.forName(Class.java:140)
> > >      [java]     at 
> > > junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLo
> > > ader.java:11)
> > >      [java]     at 
> > > junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.jav
> > > a:135)
> > >      [java]     at 
> > > junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:32)
> > >      [java]     at junit.textui.TestRunner.start(TestRunner.java:233)
> > >      [java]     at junit.textui.TestRunner.main(TestRunner.java:112)
> > >      [java] Exception in thread "main"
> > > 
> > > BUILD FAILED
> > > file:C:/velocity-1.3.1-rc2/build/testcases.xml:82: Java returned: 1
> > > 
> > > Total time: 3 seconds
> > > C:\velocity-1.3.1-rc2\build>
> > > 
> > > How can u see, problems testing velocity.
> > > 
> > > can anybody help me?
> > > 
> > > tkz
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> > For additional commands, e-mail: <ma...@jakarta.apache.org>
> > 
> > 
> -- 
> Rodolfo Sikora - Desenvolvimento
> rodolfo@oktiva.com.br - (85) 281-2223 202
> Oktiva Telecomunicações e Informática Ltda.
> http://www.oktiva.com.br
-- 
Rodolfo Sikora - Desenvolvimento
rodolfo@oktiva.com.br - (85) 281-2223 202
Oktiva Telecomunicações e Informática Ltda.
http://www.oktiva.com.br

RE: Problems testing Velocity

Posted by Rodolfo Sikora <ro...@oktiva.com.br>.
Hi Peter,
	You saw the 2nd part of email (the old one), I've already removed
expresso's junit from the classpath, and got the same error.
	But I'll try again, now on debian.
	10x a lot anyway, I'll send the results soon :D

	
On Mon, 2002-12-02 at 10:16, Peter Romianowski wrote:
> Hi,
> 
>   I still think there's a collision between two junit-jars.
> Could you please remove C:\expresso\webapps\ROOT\WEB-INF\lib\junit.jar
> from your classpath (it's still there :). I now tested the
> build and testcases with the standard windows console and
> it still worked (I usually use cygwin on windoofs btw).
> 
> Peter
> 
> ..: My analysis are based on the first 3 rules in Java-Debugging:
>   1. Look at the CLASSPATH
>   2. Look at the CLASSPATH
>   3. Look at the CLASSPATH
> 
> :)
> 
> > -----Original Message-----
> > From: Rodolfo Sikora [mailto:rodolfo@oktiva.com.br] 
> > Sent: Thursday, November 28, 2002 5:38 AM
> > To: velocity-user@jakarta.apache.org
> > Subject: Problems testing Velocity
> > 
> > 
> > Hi there!
> > 
> > I compilled velocity right now. No problems at all.
> > Once it was compilled, I tryied:
> > 
> > C:\velocity-1.3.1-rc2\build>c:\ant\bin\ant test
> > Buildfile: build.xml
> > 
> > env:
> >      [echo] java.home = C:\j2sdk1.4.1\jre
> >      [echo] user.home = C:\Documents and Settings\vo0do0
> >      [echo] java.class.path = 
> > C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
> > r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib
> > \ant.jar;C:\expres
> > so\webapps\ROOT\WEB-INF\lib\junit.jar
> > 
> > 
> > prepare:
> > 
> > compile:
> > 
> > compile-copy:
> > 
> > test:
> > 
> > test-template:
> >      [echo] Running Template tests...
> >      [java] java.lang.NoClassDefFoundError: junit/framework/TestCase
> >      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
> >      [java]     at 
> > java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> >      [java]     at 
> > java.security.SecureClassLoader.defineClass(SecureClassLoader
> > .java:123)
> >      [java]     at 
> > java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
> >      [java]     at 
> > java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> >      [java]     at 
> > java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> >      [java]     at 
> > java.security.AccessController.doPrivileged(Native Method)
> >      [java]     at 
> > java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> >      [java]     at 
> > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> >      [java]     at 
> > java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> >      [java]     at 
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> > 
> >      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
> >      [java]     at 
> > java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> >      [java]     at 
> > java.security.SecureClassLoader.defineClass(SecureClassLoader
> > .java:123)
> >      [java]     at 
> > java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
> >      [java]     at 
> > java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> >      [java]     at 
> > java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> >      [java]     at 
> > java.security.AccessController.doPrivileged(Native Method)
> >      [java]     at 
> > java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> >      [java]     at 
> > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> >      [java]     at 
> > java.lang.ClassLoader.loadClass(ClassLoader.java:292)
> >      [java]     at 
> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
> > 
> >      [java]     at 
> > java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> >      [java]     at 
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> > 
> >      [java]     at java.lang.Class.forName0(Native Method)
> >      [java]     at java.lang.Class.forName(Class.java:140)
> >      [java]     at 
> > junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLo
> > ader.java:11)
> >      [java]     at 
> > junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.jav
> > a:135)
> >      [java]     at 
> > junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:32)
> >      [java]     at junit.textui.TestRunner.start(TestRunner.java:233)
> >      [java]     at junit.textui.TestRunner.main(TestRunner.java:112)
> >      [java] Exception in thread "main"
> > 
> > BUILD FAILED
> > file:C:/velocity-1.3.1-rc2/build/testcases.xml:82: Java returned: 1
> > 
> > Total time: 3 seconds
> > C:\velocity-1.3.1-rc2\build>
> > 
> > How can u see, problems testing velocity.
> > 
> > can anybody help me?
> > 
> > tkz
> > 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
-- 
Rodolfo Sikora - Desenvolvimento
rodolfo@oktiva.com.br - (85) 281-2223 202
Oktiva Telecomunicações e Informática Ltda.
http://www.oktiva.com.br

RE: Problems testing Velocity

Posted by Peter Romianowski <me...@gmx.de>.
Hi,

  I still think there's a collision between two junit-jars.
Could you please remove C:\expresso\webapps\ROOT\WEB-INF\lib\junit.jar
from your classpath (it's still there :). I now tested the
build and testcases with the standard windows console and
it still worked (I usually use cygwin on windoofs btw).

Peter

..: My analysis are based on the first 3 rules in Java-Debugging:
  1. Look at the CLASSPATH
  2. Look at the CLASSPATH
  3. Look at the CLASSPATH

:)

> -----Original Message-----
> From: Rodolfo Sikora [mailto:rodolfo@oktiva.com.br] 
> Sent: Thursday, November 28, 2002 5:38 AM
> To: velocity-user@jakarta.apache.org
> Subject: Problems testing Velocity
> 
> 
> Hi there!
> 
> I compilled velocity right now. No problems at all.
> Once it was compilled, I tryied:
> 
> C:\velocity-1.3.1-rc2\build>c:\ant\bin\ant test
> Buildfile: build.xml
> 
> env:
>      [echo] java.home = C:\j2sdk1.4.1\jre
>      [echo] user.home = C:\Documents and Settings\vo0do0
>      [echo] java.class.path = 
> C:\j2sdk1.4.1\lib\tools.jar;c:\ant\lib\xml-apis.ja
> r;c:\ant\lib\xercesImpl.jar;c:\ant\lib\optional.jar;c:\ant\lib
> \ant.jar;C:\expres
> so\webapps\ROOT\WEB-INF\lib\junit.jar
> 
> 
> prepare:
> 
> compile:
> 
> compile-copy:
> 
> test:
> 
> test-template:
>      [echo] Running Template tests...
>      [java] java.lang.NoClassDefFoundError: junit/framework/TestCase
>      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
>      [java]     at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>      [java]     at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader
> .java:123)
>      [java]     at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>      [java]     at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>      [java]     at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>      [java]     at 
> java.security.AccessController.doPrivileged(Native Method)
>      [java]     at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>      [java]     at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> 
>      [java]     at java.lang.ClassLoader.defineClass0(Native Method)
>      [java]     at 
> java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>      [java]     at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader
> .java:123)
>      [java]     at 
> java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>      [java]     at 
> java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>      [java]     at 
> java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>      [java]     at 
> java.security.AccessController.doPrivileged(Native Method)
>      [java]     at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>      [java]     at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
> 
>      [java]     at 
> java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>      [java]     at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> 
>      [java]     at java.lang.Class.forName0(Native Method)
>      [java]     at java.lang.Class.forName(Class.java:140)
>      [java]     at 
> junit.runner.StandardTestSuiteLoader.load(StandardTestSuiteLo
> ader.java:11)
>      [java]     at 
> junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.jav
> a:135)
>      [java]     at 
> junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:32)
>      [java]     at junit.textui.TestRunner.start(TestRunner.java:233)
>      [java]     at junit.textui.TestRunner.main(TestRunner.java:112)
>      [java] Exception in thread "main"
> 
> BUILD FAILED
> file:C:/velocity-1.3.1-rc2/build/testcases.xml:82: Java returned: 1
> 
> Total time: 3 seconds
> C:\velocity-1.3.1-rc2\build>
> 
> How can u see, problems testing velocity.
> 
> can anybody help me?
> 
> tkz
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>