You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by joe <fi...@yahoo.de> on 2010/09/20 18:06:22 UTC

building OpenEJB fails

Hi,

Today i checked out OpenEJB from
http://svn.apache.org/repos/asf/openejb/trunk/openejb3
and tried to build it.

Tests run: 3356, Failures: 1, Errors: 0, Skipped: 0


The following test failed:

-------------------------------------------------------------------------------
Test set: org.apache.openejb.core.stateless.StatelessPoolStatsTest
-------------------------------------------------------------------------------
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.379 
sec <<< FAILURE!
testSweeps(org.apache.openejb.core.stateless.StatelessPoolStatsTest) 
Time elapsed: 0.021 sec  <<< FAILURE!
junit.framework.AssertionFailedError: null
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertTrue(Assert.java:27)
	at 
org.apache.openejb.core.stateless.StatelessPoolStatsTest.testSweeps(StatelessPoolStatsTest.java:461)
	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 junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
	at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
	at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
	at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
	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:290)
	at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)

Re: building OpenEJB fails

Posted by Mohammad Nour El-Din <no...@gmail.com>.
No problem Joe, I just knew that cause I faced the same problem before :).

On Tue, Sep 21, 2010 at 6:23 PM, joe <fi...@yahoo.de> wrote:
>
>> Yeah thats right, sorry forgot to tell you about that, most probably
>> you are building on Windows, right ?
>
> Yes Windows, but i swear no .NET stuff. ;)
> http://www.youtube.com/watch?v=13A0_QkqtaQ
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs

Re: building OpenEJB fails

Posted by Ravindranath Akila <ra...@gmail.com>.
I'm sure everybody wants to answer you Joe, but now they all vanish into
youtube once they click on the link and get hooked on the video!

Thank you ;)

On Tue, Sep 21, 2010 at 8:53 PM, joe <fi...@yahoo.de> wrote:

>
>  Yeah thats right, sorry forgot to tell you about that, most probably
>> you are building on Windows, right ?
>>
>
> Yes Windows, but i swear no .NET stuff. ;)
> http://www.youtube.com/watch?v=13A0_QkqtaQ
>



-- 
Cheers!
   Akila...

Re: building OpenEJB fails

Posted by joe <fi...@yahoo.de>.
> Yeah thats right, sorry forgot to tell you about that, most probably
> you are building on Windows, right ?

Yes Windows, but i swear no .NET stuff. ;)
http://www.youtube.com/watch?v=13A0_QkqtaQ

Re: building OpenEJB fails

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Yeah thats right, sorry forgot to tell you about that, most probably
you are building on Windows, right ?

On Tue, Sep 21, 2010 at 1:08 PM, joe <fi...@yahoo.de> wrote:
>
>> 1) -Dmaven.test.failure.ignore
>>     This one will allow you to see the failures but it will not fails
>> the build process.
>
> Ah ok, thx.
>
>> 2) -Dmaven.test.skip
>>     This will by-pass running tests during build process.
>
> Trying this, i got a „java.lang.OutOfMemoryError: PermGen space”.
> After doing a:
> set MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"
>
> this also works fine.
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs

Re: building OpenEJB fails

Posted by joe <fi...@yahoo.de>.
> 1) -Dmaven.test.failure.ignore
>      This one will allow you to see the failures but it will not fails
> the build process.

Ah ok, thx.

> 2) -Dmaven.test.skip
>      This will by-pass running tests during build process.

Trying this, i got a „java.lang.OutOfMemoryError: PermGen space”.
After doing a:
set MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"

this also works fine.

Re: building OpenEJB fails

Posted by Mohammad Nour El-Din <no...@gmail.com>.
Hi Joe...

   If you are not interested to have all tests completed successfully,
you can run Maven with these options:

1) -Dmaven.test.failure.ignore
    This one will allow you to see the failures but it will not fails
the build process.

2) -Dmaven.test.skip
    This will by-pass running tests during build process.

On Mon, Sep 20, 2010 at 7:06 PM, joe <fi...@yahoo.de> wrote:
> Hi,
>
> Today i checked out OpenEJB from
> http://svn.apache.org/repos/asf/openejb/trunk/openejb3
> and tried to build it.
>
> Tests run: 3356, Failures: 1, Errors: 0, Skipped: 0
>
>
> The following test failed:
>
> -------------------------------------------------------------------------------
> Test set: org.apache.openejb.core.stateless.StatelessPoolStatsTest
> -------------------------------------------------------------------------------
> Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.379 sec
> <<< FAILURE!
> testSweeps(org.apache.openejb.core.stateless.StatelessPoolStatsTest) Time
> elapsed: 0.021 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.assertTrue(Assert.java:20)
>        at junit.framework.Assert.assertTrue(Assert.java:27)
>        at
> org.apache.openejb.core.stateless.StatelessPoolStatsTest.testSweeps(StatelessPoolStatsTest.java:461)
>        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 junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
>        at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
>        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:290)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs