You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Scott Eade <se...@backstagetech.com.au> on 2003/01/02 02:17:37 UTC

Broken build process

I have just done a fresh checkout from cvs head.  When I attempt to build
jmeter using the default ant target I get the following error:


compile-rmi:
     [rmic] RMI Compiling 1 class to D:\test\jakarta-jmeter\build\core
     [rmic] error: Class junit.framework.TestCase not found in nested class
org.apache.jorphan.collections.HashTree. Test.
     [rmic] 1 error

BUILD FAILED
file:D:/test/jakarta-jmeter/build.xml:219: Rmic failed; see the compiler
error output for details.

Total time: 1 minute 1 second


I had a quick look and couldn't spot what was wrong - any clues?

Thanks,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com
 


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


Re: Broken build process

Posted by Mike Stover <ms...@apache.org>.
It seems to be saying it can't find a class from junit.jar.  Are you running a build by 
"build install" or are you using "ant install"?  

-Mike

On 2 Jan 2003 at 13:56, Scott Eade wrote:

> Jordi,
> 
> I am using JDK 1.4.1_01 on win2k and I have just done another checkout on OS
> X (using JDK 1.4.1 DP6) and have received the exact same message.  I was
> hoping this would work and that I could then track down some environmental
> issue on my win2k box to solve the problem - alas they behave the same.
> 
> If you weren't trying a fresh cvs checkout before, would you mind doing so
> for me? 
> 
> ??? indeed!
> 
> Thanks,
> 
> Scott
> -- 
> Scott Eade
> Backstage Technologies Pty. Ltd.
> http://www.backstagetech.com.au
> .Mac Chat/AIM: seade at mac dot com
> 
> 
> On 2/01/2003 12:39 PM, "Jordi Salvat i Alabart" <js...@atg.com> wrote:
> 
> > Works for me, both with JDK 1.3.1 and 1.4.1_01.
> > 
> > ???
> > 
> > Scott Eade wrote:
> >> I have just done a fresh checkout from cvs head.  When I attempt to build
> >> jmeter using the default ant target I get the following error:
> >> 
> >> 
> >> compile-rmi:
> >>      [rmic] RMI Compiling 1 class to D:\test\jakarta-jmeter\build\core
> >>      [rmic] error: Class junit.framework.TestCase not found in nested class
> >> org.apache.jorphan.collections.HashTree. Test.
> >>      [rmic] 1 error
> >> 
> >> BUILD FAILED
> >> file:D:/test/jakarta-jmeter/build.xml:219: Rmic failed; see the compiler
> >> error output for details.
> >> 
> >> Total time: 1 minute 1 second
> >> 
> >> 
> >> I had a quick look and couldn't spot what was wrong - any clues?
> >> 
> >> Thanks,
> >> 
> >> Scott
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <ma...@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>
> 



--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

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


Re: Broken build process

Posted by Jordi Salvat i Alabart <js...@atg.com>.
Yes, you're right straight "ant" should be able to build properly if at 
all possible.

I'll fix this now.

Salut,

Jordi.

Scott Eade wrote:
> I have answered your questions inline below, but see the very bottom for the
> actual problem and the fix.
> 
> On 2/01/2003 9:48 PM, "Jordi Salvat i Alabart" <js...@atg.com> wrote:
> 
>>My Windoze machine was pretty clean (I even had to install the JDK).
>>Maybe there's some weirdness in your's?
> 
> If there is weirdness then my Mac caught it off my win2k box ;-)
> 
>>Q: Are you using build.bat, or straight "ant"? Can you try with build.bat?
> 
> I was doing straight "ant" which has been working just fine until today (my
> first cvs update for a week or more).  I have just tried build.bat on both
> machines and it works.
> 
>>Q: Is JUnit in the classpath displayed by build.bat at the beginning of
>>the build?
> 
> Yes, but build.bat works.
> 
>>Q: Do you have a CLASSPATH environment var defined? Can you try clearing it?
> 
> I have no CLASSPATH defined on either machine.
> 
>>One funny thing I've noticed in your error message:
>>    [rmic] error: Class junit.framework.TestCase not found in nested
>>class org.apache.jorphan.collections.HashTree. Test.
>>
>>... there's a '$' sign missing (instead of the space before "Test"). Not
>>that it points me anywhere... just that it's funny.
> 
> Hmm.  Same output under both operating systems - very strange.
> 
> 
> You hit the nail on the head - this is a classpath problem.  I was thinking
> that other classes would have hit the problem if it was the classpath, but I
> wasn't thinking that rmic was only going to hit a subset of the classes -
> this is in actual fact the case.  The cause of the problem is that when you
> provided the new build.xml a few days ago you did not include the:
> 
>     <path refid="classpath"/>
> 
> element in the classpath of the "compile-rmi" target that existed in the
> "rmi" target of the old file.  Adding this back in will of course include
> junit.jar in the classpath and everything will (and does) work okay.
> 
> Can you please correct the compile-rmi classpath in build.xml.  I'd submit a
> patch, but it is probably easier for you to just do it.
> 
> Thanks for bearing with me - I'm glad I am not going crazy ;-)
> 
> Scott



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


Re: Broken build process

Posted by Scott Eade <se...@backstagetech.com.au>.
I have answered your questions inline below, but see the very bottom for the
actual problem and the fix.

On 2/01/2003 9:48 PM, "Jordi Salvat i Alabart" <js...@atg.com> wrote:
> My Windoze machine was pretty clean (I even had to install the JDK).
> Maybe there's some weirdness in your's?
If there is weirdness then my Mac caught it off my win2k box ;-)
> 
> Q: Are you using build.bat, or straight "ant"? Can you try with build.bat?
I was doing straight "ant" which has been working just fine until today (my
first cvs update for a week or more).  I have just tried build.bat on both
machines and it works.
> 
> Q: Is JUnit in the classpath displayed by build.bat at the beginning of
> the build?
Yes, but build.bat works.
> 
> Q: Do you have a CLASSPATH environment var defined? Can you try clearing it?
I have no CLASSPATH defined on either machine.
> 
> One funny thing I've noticed in your error message:
>     [rmic] error: Class junit.framework.TestCase not found in nested
> class org.apache.jorphan.collections.HashTree. Test.
> 
> ... there's a '$' sign missing (instead of the space before "Test"). Not
> that it points me anywhere... just that it's funny.
Hmm.  Same output under both operating systems - very strange.


You hit the nail on the head - this is a classpath problem.  I was thinking
that other classes would have hit the problem if it was the classpath, but I
wasn't thinking that rmic was only going to hit a subset of the classes -
this is in actual fact the case.  The cause of the problem is that when you
provided the new build.xml a few days ago you did not include the:

    <path refid="classpath"/>

element in the classpath of the "compile-rmi" target that existed in the
"rmi" target of the old file.  Adding this back in will of course include
junit.jar in the classpath and everything will (and does) work okay.

Can you please correct the compile-rmi classpath in build.xml.  I'd submit a
patch, but it is probably easier for you to just do it.

Thanks for bearing with me - I'm glad I am not going crazy ;-)

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com


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


Re: Broken build process

Posted by Jordi Salvat i Alabart <js...@atg.com>.
Hi Scott.

It wasn't a fresh co, but it was just synced. Anyway, I tried a fresh co 
now and it worked again. I also tried on my (virtual) Windoze machine, 
and it worked too (that's with JDK 1.3.1_02).

My Windoze machine was pretty clean (I even had to install the JDK). 
Maybe there's some weirdness in your's?

Q: Are you using build.bat, or straight "ant"? Can you try with build.bat?

Q: Is JUnit in the classpath displayed by build.bat at the beginning of 
the build?

Q: Do you have a CLASSPATH environment var defined? Can you try clearing it?

One funny thing I've noticed in your error message:
      [rmic] error: Class junit.framework.TestCase not found in nested 
class org.apache.jorphan.collections.HashTree. Test.

... there's a '$' sign missing (instead of the space before "Test"). Not 
that it points me anywhere... just that it's funny.

??

Scott Eade wrote:
> Jordi,
> 
> I am using JDK 1.4.1_01 on win2k and I have just done another checkout on OS
> X (using JDK 1.4.1 DP6) and have received the exact same message.  I was
> hoping this would work and that I could then track down some environmental
> issue on my win2k box to solve the problem - alas they behave the same.
> 
> If you weren't trying a fresh cvs checkout before, would you mind doing so
> for me? 
> 
> ??? indeed!
> 
> Thanks,
> 
> Scott



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


Re: Broken build process

Posted by Scott Eade <se...@backstagetech.com.au>.
Jordi,

I am using JDK 1.4.1_01 on win2k and I have just done another checkout on OS
X (using JDK 1.4.1 DP6) and have received the exact same message.  I was
hoping this would work and that I could then track down some environmental
issue on my win2k box to solve the problem - alas they behave the same.

If you weren't trying a fresh cvs checkout before, would you mind doing so
for me? 

??? indeed!

Thanks,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
.Mac Chat/AIM: seade at mac dot com


On 2/01/2003 12:39 PM, "Jordi Salvat i Alabart" <js...@atg.com> wrote:

> Works for me, both with JDK 1.3.1 and 1.4.1_01.
> 
> ???
> 
> Scott Eade wrote:
>> I have just done a fresh checkout from cvs head.  When I attempt to build
>> jmeter using the default ant target I get the following error:
>> 
>> 
>> compile-rmi:
>>      [rmic] RMI Compiling 1 class to D:\test\jakarta-jmeter\build\core
>>      [rmic] error: Class junit.framework.TestCase not found in nested class
>> org.apache.jorphan.collections.HashTree. Test.
>>      [rmic] 1 error
>> 
>> BUILD FAILED
>> file:D:/test/jakarta-jmeter/build.xml:219: Rmic failed; see the compiler
>> error output for details.
>> 
>> Total time: 1 minute 1 second
>> 
>> 
>> I had a quick look and couldn't spot what was wrong - any clues?
>> 
>> Thanks,
>> 
>> Scott
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@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: Broken build process

Posted by Jordi Salvat i Alabart <js...@atg.com>.
Works for me, both with JDK 1.3.1 and 1.4.1_01.

???

Scott Eade wrote:
> I have just done a fresh checkout from cvs head.  When I attempt to build
> jmeter using the default ant target I get the following error:
> 
> 
> compile-rmi:
>      [rmic] RMI Compiling 1 class to D:\test\jakarta-jmeter\build\core
>      [rmic] error: Class junit.framework.TestCase not found in nested class
> org.apache.jorphan.collections.HashTree. Test.
>      [rmic] 1 error
> 
> BUILD FAILED
> file:D:/test/jakarta-jmeter/build.xml:219: Rmic failed; see the compiler
> error output for details.
> 
> Total time: 1 minute 1 second
> 
> 
> I had a quick look and couldn't spot what was wrong - any clues?
> 
> Thanks,
> 
> Scott



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