You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Niklas Gustavsson <ni...@protocol7.com> on 2007/03/31 00:11:25 UTC

Surefire build issue

Hi

I'm just starting to play around with building Maven and ran in to some 
issues. The first was that Surefire complains about Java class file 
version issues. I've seen this before on other builds (probably because 
I have a screwed up surefire version as the default) and has been able 
to fix it by including the surefire plugin version in the pom:
<plugin>
     <artifactId>maven-surefire-plugin</artifactId>
     <version>2.0</version>
</plugin>

Doing this is probably a good idea anyways as it should stabilize 
builds. Should I report a JIRA issue on this or would this email be okay?

/niklas


Re: Surefire build issue

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 4/2/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
> On 4/2/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
>
> > It's the first build with M2 2.0.6 so keep fingers crossed ;-)
>
> Alas, I'm unlucky today!

Not that bad, though. Executing 'mvn -Dmaven.test.skip=true clean
install' works like a charm. Awaiting Jarek or Dims' wakeup ;-)

$ mvn -Dmaven.test.skip=true clean install
...
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28 minutes 40 seconds
[INFO] Finished at: Mon Apr 02 09:17:15 CEST 2007
[INFO] Final Memory: 207M/370M
[INFO] ------------------------------------------------------------------------

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Surefire build issue

Posted by David Jencks <da...@yahoo.com>.
Me too.  I thought maybe it was due to maven not being able to find  
axis2-jaxws pom and making something up that has no dependencies, but  
I didn't investigate further than noticing it couldn't fine the  
timestamp for that it was looking for.

thanks
david jencks

On Apr 1, 2007, at 11:39 PM, Jason Dillon wrote:

> Ya, I see that too :-(
>
> --jason
>
>
> On Apr 1, 2007, at 11:32 PM, Jacek Laskowski wrote:
>
>> On 4/2/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
>>
>>> It's the first build with M2 2.0.6 so keep fingers crossed ;-)
>>
>> Alas, I'm unlucky today!
>>
>> $ svn up
>> At revision 524731.
>>
>> $ mvn clean install
>> ...
>> [INFO]  
>> --------------------------------------------------------------------- 
>> -------
>> [INFO] Building Geronimo :: AXIS2
>> [INFO]    task-segment: [clean, install]
>> [INFO]  
>> --------------------------------------------------------------------- 
>> -------
>> [INFO] [clean:clean]
>> [INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2 
>> \target
>> [INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2 
>> \target\classes
>> [INFO] Deleting directory
>> c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
>> [INFO] [enforcer:enforce {execution: default}]
>> [INFO] Detected JDK Version: 1.5.0-11 is allowed in the range  
>> [1.5,1.6).
>> [INFO] Detected Maven Version: 2.0.6 is allowed in the range  
>> [2.0.5,).
>> [INFO] [build-helper:add-test-source {execution: add-test-source}]
>> [INFO] Test Source directory:
>> c:\oss\geronimo\modules\geronimo-axis2\target\schema\src added.
>> [INFO] [tools:copy-legal-files {execution: install-legal-files}]
>> [INFO] Created dir:
>> c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
>> [INFO] Copying 2 files to
>> c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
>> updates from apache-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
>> updates from codehaus-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
>> updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2- 
>> jaxws-20070330.190024-85.pom
>> 34K downloaded
>> [INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
>> updates from apache-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
>> updates from codehaus-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
>> updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-kernel/SNAPSHOT/axis2- 
>> kernel-20070401.014134-137.pom
>> 7K downloaded
>> [INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
>> for updates from apache-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
>> for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
>> for updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2- 
>> java2wsdl-20070401.014134-148.pom
>> 3K downloaded
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
>> checking for updates from apache-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
>> checking for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
>> checking for updates from apache.snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
>> checking for updates from apache-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
>> checking for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
>> checking for updates from apache.snapshots
>> Downloading: http://tomcat.apache.org/dev/dist/m2-repository// 
>> jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
>> Downloading: http://people.apache.org/repo/m2-incubating- 
>> repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
>> Downloading: http://repository.codehaus.org/jaxen/jaxen/1.1- 
>> beta-10/jaxen-1.1-beta-10.pom
>> Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/ 
>> jaxen-1.1-beta-10.pom
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
>> checking for updates from apache-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
>> checking for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
>> checking for updates from apache.snapshots
>> [INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
>> checking for updates from apache-snapshots
>> [INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
>> checking for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
>> checking for updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/ 
>> XmlSchema-20070330.195406-36.pom
>> 15K downloaded
>> Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/ 
>> apache/neethi/neethi/2.0/neethi-2.0.pom
>> Downloading: http://people.apache.org/repo/m2-incubating- 
>> repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
>> Downloading: http://repository.codehaus.org/org/apache/neethi/ 
>> neethi/2.0/neethi-2.0.pom
>> Downloading: http://repo1.maven.org/maven2/org/apache/neethi/ 
>> neethi/2.0/neethi-2.0.pom
>> [INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
>> checking for updates from apache-snapshots
>> [INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
>> checking for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
>> checking for updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/woden/woden/1.0-incubating-SNAPSHOT/woden-1.0- 
>> incubating-20070331.130038-63.pom
>> 7K downloaded
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
>> checking for updates from apache-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
>> checking for updates from codehaus-snapshots
>> [INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
>> checking for updates from apache.snapshots
>> [INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
>> updates from apache-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
>> updates from codehaus-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
>> updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-20070401.014134-113.pom
>> 3K downloaded
>> [INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
>> updates from apache-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
>> updates from codehaus-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
>> updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-20070330.190024-4.pom
>> 4K downloaded
>> [INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking  
>> for
>> updates from apache-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking  
>> for
>> updates from codehaus-snapshots
>> [INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking  
>> for
>> updates from apache.snapshots
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-metadata/SNAPSHOT/axis2- 
>> metadata-20070330.190024-100.pom
>> 6K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2- 
>> jaxws-20070330.190024-85.jar
>> 367K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2- 
>> java2wsdl-20070401.014134-148.jar
>> 55K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-kernel/SNAPSHOT/axis2- 
>> kernel-20070401.014134-137.jar
>> 887K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/ 
>> XmlSchema-20070330.195406-36.jar
>> 130K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-20070330.190024-4.jar
>> 76K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-20070401.014134-113.jar
>> 144K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/woden/woden/1.0-incubating-SNAPSHOT/woden-1.0- 
>> incubating-20070331.130038-63.jar
>> 343K downloaded
>> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
>> org/apache/axis2/axis2-metadata/SNAPSHOT/axis2- 
>> metadata-20070330.190024-100.jar
>> 484K downloaded
>> [INFO] [compiler:compile]
>> [INFO] Compiling 11 source files to
>> c:\oss\geronimo\modules\geronimo-axis2\target\classes
>> Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/ 
>> apache/axis2/axis2-jaxws/20070330.190024-85/axis2- 
>> jaxws-20070330.190024-85.pom
>> Downloading: http://people.apache.org/repo/m2-incubating- 
>> repository//org/apache/axis2/axis2-jaxws/20070330.190024-85/axis2- 
>> jaxws-20070330.190024-85.pom
>> Downloading: http://repository.codehaus.org/org/apache/axis2/axis2- 
>> jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
>> Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2- 
>> jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
>> [INFO] [antrun:run {execution: generate-test-sources}]
>> [INFO] Executing tasks
>>     [echo] Generating java from test_service_simple.wsdl
>>    [mkdir] Created dir:
>> C:\oss\geronimo\modules\geronimo-axis2\target\schema\src
>>     [echo] Generating java from test_service_doclitbare.wsdl
>>     [echo] Generating java from test_service_rpclit.wsdl
>> [INFO] Executed tasks
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] Compiling 22 source files to
>> c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
>> [INFO] [surefire:test]
>> [INFO] Surefire report directory:
>> c:\oss\geronimo\modules\geronimo-axis2\target\surefire-reports
>>
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> Running org.apache.geronimo.axis2.Axis2HandlerResolverTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
>> 0.578 sec
>> Running org.apache.geronimo.axis2.Axis2WebServiceContainerTest
>> java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
>>        at  
>> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.invokeWithWSDL 
>> (Axis2WebServiceContainerTest.java:144)
>>        at  
>> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testInvokeWith 
>> WSDL(Axis2WebServiceContainerTest.java:49)
>>        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:585)
>>        at junit.framework.TestCase.runTest(TestCase.java:154)
>>        at junit.framework.TestCase.runBare(TestCase.java:127)
>>        at junit.framework.TestResult$1.protect(TestResult.java:106)
>>        at junit.framework.TestResult.runProtected(TestResult.java: 
>> 124)
>>        at junit.framework.TestResult.run(TestResult.java:109)
>>        at junit.framework.TestCase.run(TestCase.java:118)
>>        at junit.framework.TestSuite.runTest(TestSuite.java:208)
>>        at junit.framework.TestSuite.run(TestSuite.java:203)
>>        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:585)
>>        at org.apache.maven.surefire.junit.JUnitTestSet.execute 
>> (JUnitTestSet.java:210)
>>        at  
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes 
>> tSet(AbstractDirectoryTestSuite.java:135)
>>        at  
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
>> (AbstractDirectoryTestSuite.java:122)
>>        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>>        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:585)
>>        at  
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
>> (SurefireBooter.java:225)
>>        at org.apache.maven.surefire.booter.SurefireBooter.main 
>> (SurefireBooter.java:747)
>> Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.297
>> sec <<< FAILURE!
>>
>> Results :
>> Tests run: 8, Failures: 0, Errors: 2, Skipped: 0
>>
>> [INFO]  
>> --------------------------------------------------------------------- 
>> ---
>> [ERROR] BUILD FAILURE
>> [INFO]  
>> --------------------------------------------------------------------- 
>> ---
>> [INFO] There are test failures.
>> [INFO]  
>> --------------------------------------------------------------------- 
>> ---
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]  
>> --------------------------------------------------------------------- 
>> ---
>> [INFO] Total time: 13 minutes 15 seconds
>> [INFO] Finished at: Mon Apr 02 08:27:39 CEST 2007
>> [INFO] Final Memory: 101M/254M
>> [INFO]  
>> --------------------------------------------------------------------- 
>> ---
>>
>> $ cat modules/geronimo-axis2/target/surefire-reports/ 
>> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.txt
>> --------------------------------------------------------------------- 
>> ----------
>> Test set: org.apache.geronimo.axis2.Axis2WebServiceContainerTest
>> --------------------------------------------------------------------- 
>> ----------
>> Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.297
>> sec <<< FAILURE!
>> testInvokeWithWSDL 
>> (org.apache.geronimo.axis2.Axis2WebServiceContainerTest)
>> Time elapsed: 0.281 sec  <<< ERROR!
>> java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/ 
>> axis2/AxisFault
>>        at  
>> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.invokeWithWSDL 
>> (Axis2WebServiceContainerTest.java:151)
>>        at  
>> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testInvokeWith 
>> WSDL(Axis2WebServiceContainerTest.java:49)
>>
>> testGetWSDL(org.apache.geronimo.axis2.Axis2WebServiceContainerTest)
>> Time elapsed: 0 sec  <<< ERROR!
>> java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
>>        at  
>> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testGetWSDL 
>> (Axis2WebServiceContainerTest.java:73)
>>
>>
>> Jacek
>>
>> -- 
>> Jacek Laskowski
>> http://www.JacekLaskowski.pl
>


Re: Surefire build issue

Posted by Jason Dillon <ja...@planet57.com>.
Ya, I see that too :-(

--jason


On Apr 1, 2007, at 11:32 PM, Jacek Laskowski wrote:

> On 4/2/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:
>
>> It's the first build with M2 2.0.6 so keep fingers crossed ;-)
>
> Alas, I'm unlucky today!
>
> $ svn up
> At revision 524731.
>
> $ mvn clean install
> ...
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building Geronimo :: AXIS2
> [INFO]    task-segment: [clean, install]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] [clean:clean]
> [INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2 
> \target
> [INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2 
> \target\classes
> [INFO] Deleting directory
> c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
> [INFO] [enforcer:enforce {execution: default}]
> [INFO] Detected JDK Version: 1.5.0-11 is allowed in the range  
> [1.5,1.6).
> [INFO] Detected Maven Version: 2.0.6 is allowed in the range [2.0.5,).
> [INFO] [build-helper:add-test-source {execution: add-test-source}]
> [INFO] Test Source directory:
> c:\oss\geronimo\modules\geronimo-axis2\target\schema\src added.
> [INFO] [tools:copy-legal-files {execution: install-legal-files}]
> [INFO] Created dir:
> c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
> [INFO] Copying 2 files to
> c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
> updates from apache-snapshots
> [INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
> updates from codehaus-snapshots
> [INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
> updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2- 
> jaxws-20070330.190024-85.pom
> 34K downloaded
> [INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
> updates from apache-snapshots
> [INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
> updates from codehaus-snapshots
> [INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
> updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-kernel/SNAPSHOT/axis2- 
> kernel-20070401.014134-137.pom
> 7K downloaded
> [INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
> for updates from apache-snapshots
> [INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
> for updates from codehaus-snapshots
> [INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
> for updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2- 
> java2wsdl-20070401.014134-148.pom
> 3K downloaded
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
> checking for updates from codehaus-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
> checking for updates from codehaus-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
> checking for updates from apache.snapshots
> Downloading: http://tomcat.apache.org/dev/dist/m2-repository//jaxen/ 
> jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
> Downloading: http://people.apache.org/repo/m2-incubating- 
> repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
> Downloading: http://repository.codehaus.org/jaxen/jaxen/1.1-beta-10/ 
> jaxen-1.1-beta-10.pom
> Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/ 
> jaxen-1.1-beta-10.pom
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
> checking for updates from codehaus-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
> checking for updates from codehaus-snapshots
> [INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
> checking for updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/ 
> XmlSchema-20070330.195406-36.pom
> 15K downloaded
> Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/ 
> apache/neethi/neethi/2.0/neethi-2.0.pom
> Downloading: http://people.apache.org/repo/m2-incubating- 
> repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
> Downloading: http://repository.codehaus.org/org/apache/neethi/ 
> neethi/2.0/neethi-2.0.pom
> Downloading: http://repo1.maven.org/maven2/org/apache/neethi/neethi/ 
> 2.0/neethi-2.0.pom
> [INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
> checking for updates from codehaus-snapshots
> [INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
> checking for updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/woden/woden/1.0-incubating-SNAPSHOT/woden-1.0- 
> incubating-20070331.130038-63.pom
> 7K downloaded
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
> checking for updates from codehaus-snapshots
> [INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
> updates from apache-snapshots
> [INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
> updates from codehaus-snapshots
> [INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
> updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-20070401.014134-113.pom
> 3K downloaded
> [INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
> updates from apache-snapshots
> [INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
> updates from codehaus-snapshots
> [INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
> updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-20070330.190024-4.pom
> 4K downloaded
> [INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking for
> updates from apache-snapshots
> [INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking for
> updates from codehaus-snapshots
> [INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking for
> updates from apache.snapshots
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-metadata/SNAPSHOT/axis2- 
> metadata-20070330.190024-100.pom
> 6K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2- 
> jaxws-20070330.190024-85.jar
> 367K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2- 
> java2wsdl-20070401.014134-148.jar
> 55K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-kernel/SNAPSHOT/axis2- 
> kernel-20070401.014134-137.jar
> 887K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/ 
> XmlSchema-20070330.195406-36.jar
> 130K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-20070330.190024-4.jar
> 76K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-20070401.014134-113.jar
> 144K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/woden/woden/1.0-incubating-SNAPSHOT/woden-1.0- 
> incubating-20070331.130038-63.jar
> 343K downloaded
> Downloading: http://people.apache.org/repo/m2-snapshot-repository/ 
> org/apache/axis2/axis2-metadata/SNAPSHOT/axis2- 
> metadata-20070330.190024-100.jar
> 484K downloaded
> [INFO] [compiler:compile]
> [INFO] Compiling 11 source files to
> c:\oss\geronimo\modules\geronimo-axis2\target\classes
> Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/ 
> apache/axis2/axis2-jaxws/20070330.190024-85/axis2- 
> jaxws-20070330.190024-85.pom
> Downloading: http://people.apache.org/repo/m2-incubating- 
> repository//org/apache/axis2/axis2-jaxws/20070330.190024-85/axis2- 
> jaxws-20070330.190024-85.pom
> Downloading: http://repository.codehaus.org/org/apache/axis2/axis2- 
> jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
> Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2- 
> jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
> [INFO] [antrun:run {execution: generate-test-sources}]
> [INFO] Executing tasks
>     [echo] Generating java from test_service_simple.wsdl
>    [mkdir] Created dir:
> C:\oss\geronimo\modules\geronimo-axis2\target\schema\src
>     [echo] Generating java from test_service_doclitbare.wsdl
>     [echo] Generating java from test_service_rpclit.wsdl
> [INFO] Executed tasks
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Compiling 22 source files to
> c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory:
> c:\oss\geronimo\modules\geronimo-axis2\target\surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.apache.geronimo.axis2.Axis2HandlerResolverTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
> 0.578 sec
> Running org.apache.geronimo.axis2.Axis2WebServiceContainerTest
> java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
>        at  
> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.invokeWithWSDL( 
> Axis2WebServiceContainerTest.java:144)
>        at  
> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testInvokeWithW 
> SDL(Axis2WebServiceContainerTest.java:49)
>        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:585)
>        at junit.framework.TestCase.runTest(TestCase.java:154)
>        at junit.framework.TestCase.runBare(TestCase.java:127)
>        at junit.framework.TestResult$1.protect(TestResult.java:106)
>        at junit.framework.TestResult.runProtected(TestResult.java:124)
>        at junit.framework.TestResult.run(TestResult.java:109)
>        at junit.framework.TestCase.run(TestCase.java:118)
>        at junit.framework.TestSuite.runTest(TestSuite.java:208)
>        at junit.framework.TestSuite.run(TestSuite.java:203)
>        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:585)
>        at org.apache.maven.surefire.junit.JUnitTestSet.execute 
> (JUnitTestSet.java:210)
>        at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest 
> Set(AbstractDirectoryTestSuite.java:135)
>        at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
> (AbstractDirectoryTestSuite.java:122)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>        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:585)
>        at  
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
> (SurefireBooter.java:225)
>        at org.apache.maven.surefire.booter.SurefireBooter.main 
> (SurefireBooter.java:747)
> Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.297
> sec <<< FAILURE!
>
> Results :
> Tests run: 8, Failures: 0, Errors: 2, Skipped: 0
>
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [ERROR] BUILD FAILURE
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] There are test failures.
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Total time: 13 minutes 15 seconds
> [INFO] Finished at: Mon Apr 02 08:27:39 CEST 2007
> [INFO] Final Memory: 101M/254M
> [INFO]  
> ---------------------------------------------------------------------- 
> --
>
> $ cat modules/geronimo-axis2/target/surefire-reports/ 
> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.txt
> ---------------------------------------------------------------------- 
> ---------
> Test set: org.apache.geronimo.axis2.Axis2WebServiceContainerTest
> ---------------------------------------------------------------------- 
> ---------
> Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.297
> sec <<< FAILURE!
> testInvokeWithWSDL 
> (org.apache.geronimo.axis2.Axis2WebServiceContainerTest)
> Time elapsed: 0.281 sec  <<< ERROR!
> java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/ 
> axis2/AxisFault
>        at  
> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.invokeWithWSDL( 
> Axis2WebServiceContainerTest.java:151)
>        at  
> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testInvokeWithW 
> SDL(Axis2WebServiceContainerTest.java:49)
>
> testGetWSDL(org.apache.geronimo.axis2.Axis2WebServiceContainerTest)
> Time elapsed: 0 sec  <<< ERROR!
> java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
>        at  
> org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testGetWSDL 
> (Axis2WebServiceContainerTest.java:73)
>
>
> Jacek
>
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl


Re: Surefire build issue

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 4/2/07, Jacek Laskowski <ja...@laskowski.net.pl> wrote:

> It's the first build with M2 2.0.6 so keep fingers crossed ;-)

Alas, I'm unlucky today!

$ svn up
At revision 524731.

$ mvn clean install
...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Geronimo :: AXIS2
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2\target
[INFO] Deleting directory c:\oss\geronimo\modules\geronimo-axis2\target\classes
[INFO] Deleting directory
c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
[INFO] [enforcer:enforce {execution: default}]
[INFO] Detected JDK Version: 1.5.0-11 is allowed in the range [1.5,1.6).
[INFO] Detected Maven Version: 2.0.6 is allowed in the range [2.0.5,).
[INFO] [build-helper:add-test-source {execution: add-test-source}]
[INFO] Test Source directory:
c:\oss\geronimo\modules\geronimo-axis2\target\schema\src added.
[INFO] [tools:copy-legal-files {execution: install-legal-files}]
[INFO] Created dir:
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] Copying 2 files to
c:\oss\geronimo\modules\geronimo-axis2\target\classes\META-INF
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-jaxws:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-jaxws-20070330.190024-85.pom
34K downloaded
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-kernel:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-kernel/SNAPSHOT/axis2-kernel-20070401.014134-137.pom
7K downloaded
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-java2wsdl:SNAPSHOT: checking
for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2-java2wsdl-20070401.014134-148.pom
3K downloaded
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-api:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-parent:SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://tomcat.apache.org/dev/dist/m2-repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://people.apache.org/repo/m2-incubating-repository//jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://repository.codehaus.org/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
Downloading: http://repo1.maven.org/maven2/jaxen/jaxen/1.1-beta-10/jaxen-1.1-beta-10.pom
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-impl:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.schema:XmlSchema:SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/XmlSchema-20070330.195406-36.pom
15K downloaded
Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading: http://repository.codehaus.org/org/apache/neethi/neethi/2.0/neethi-2.0.pom
Downloading: http://repo1.maven.org/maven2/org/apache/neethi/neethi/2.0/neethi-2.0.pom
[INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.woden:woden:1.0-incubating-SNAPSHOT:
checking for updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/woden/woden/1.0-incubating-SNAPSHOT/woden-1.0-incubating-20070331.130038-63.pom
7K downloaded
[INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
checking for updates from apache-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
checking for updates from codehaus-snapshots
[INFO] snapshot org.apache.ws.commons.axiom:axiom-dom:SNAPSHOT:
checking for updates from apache.snapshots
[INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-adb:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-20070401.014134-113.pom
3K downloaded
[INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-saaj:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-20070330.190024-4.pom
4K downloaded
[INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking for
updates from apache-snapshots
[INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking for
updates from codehaus-snapshots
[INFO] snapshot org.apache.axis2:axis2-metadata:SNAPSHOT: checking for
updates from apache.snapshots
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-metadata/SNAPSHOT/axis2-metadata-20070330.190024-100.pom
6K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-jaxws/SNAPSHOT/axis2-jaxws-20070330.190024-85.jar
367K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-java2wsdl/SNAPSHOT/axis2-java2wsdl-20070401.014134-148.jar
55K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-kernel/SNAPSHOT/axis2-kernel-20070401.014134-137.jar
887K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/schema/XmlSchema/SNAPSHOT/XmlSchema-20070330.195406-36.jar
130K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-saaj/SNAPSHOT/axis2-saaj-20070330.190024-4.jar
76K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-adb/SNAPSHOT/axis2-adb-20070401.014134-113.jar
144K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/woden/woden/1.0-incubating-SNAPSHOT/woden-1.0-incubating-20070331.130038-63.jar
343K downloaded
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/axis2/axis2-metadata/SNAPSHOT/axis2-metadata-20070330.190024-100.jar
484K downloaded
[INFO] [compiler:compile]
[INFO] Compiling 11 source files to
c:\oss\geronimo\modules\geronimo-axis2\target\classes
Downloading: http://tomcat.apache.org/dev/dist/m2-repository//org/apache/axis2/axis2-jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
Downloading: http://people.apache.org/repo/m2-incubating-repository//org/apache/axis2/axis2-jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
Downloading: http://repository.codehaus.org/org/apache/axis2/axis2-jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
Downloading: http://repo1.maven.org/maven2/org/apache/axis2/axis2-jaxws/20070330.190024-85/axis2-jaxws-20070330.190024-85.pom
[INFO] [antrun:run {execution: generate-test-sources}]
[INFO] Executing tasks
     [echo] Generating java from test_service_simple.wsdl
    [mkdir] Created dir:
C:\oss\geronimo\modules\geronimo-axis2\target\schema\src
     [echo] Generating java from test_service_doclitbare.wsdl
     [echo] Generating java from test_service_rpclit.wsdl
[INFO] Executed tasks
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 22 source files to
c:\oss\geronimo\modules\geronimo-axis2\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
c:\oss\geronimo\modules\geronimo-axis2\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.geronimo.axis2.Axis2HandlerResolverTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.578 sec
Running org.apache.geronimo.axis2.Axis2WebServiceContainerTest
java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
        at org.apache.geronimo.axis2.Axis2WebServiceContainerTest.invokeWithWSDL(Axis2WebServiceContainerTest.java:144)
        at org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testInvokeWithWSDL(Axis2WebServiceContainerTest.java:49)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        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:585)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        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:585)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.297
sec <<< FAILURE!

Results :
Tests run: 8, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 minutes 15 seconds
[INFO] Finished at: Mon Apr 02 08:27:39 CEST 2007
[INFO] Final Memory: 101M/254M
[INFO] ------------------------------------------------------------------------

$ cat modules/geronimo-axis2/target/surefire-reports/org.apache.geronimo.axis2.Axis2WebServiceContainerTest.txt
-------------------------------------------------------------------------------
Test set: org.apache.geronimo.axis2.Axis2WebServiceContainerTest
-------------------------------------------------------------------------------
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.297
sec <<< FAILURE!
testInvokeWithWSDL(org.apache.geronimo.axis2.Axis2WebServiceContainerTest)
 Time elapsed: 0.281 sec  <<< ERROR!
java.lang.Exception: java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
        at org.apache.geronimo.axis2.Axis2WebServiceContainerTest.invokeWithWSDL(Axis2WebServiceContainerTest.java:151)
        at org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testInvokeWithWSDL(Axis2WebServiceContainerTest.java:49)

testGetWSDL(org.apache.geronimo.axis2.Axis2WebServiceContainerTest)
Time elapsed: 0 sec  <<< ERROR!
java.lang.NoClassDefFoundError: org/apache/axis2/AxisFault
        at org.apache.geronimo.axis2.Axis2WebServiceContainerTest.testGetWSDL(Axis2WebServiceContainerTest.java:73)


Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Surefire build issue

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 4/1/07, Niklas Gustavsson <ni...@protocol7.com> wrote:
> Jason Dillon wrote:
> > Are you setting JAVA_HOME in windows or in Cygwin?
>
> Cygwin.

I'm using Cygwin and M2 2.0.5 (now upgraded to 2.0.6) and java version
"1.5.0_11". I haven't seen issues with this environment, but just to
be sure I'm rebuilding it now...

It's the first build with M2 2.0.6 so keep fingers crossed ;-)

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Surefire build issue

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Jason Dillon wrote:
> Are you setting JAVA_HOME in windows or in Cygwin?

Cygwin.

> Looks to me like you are having some related environmental configuration 
> issues.
> 
> Short of telling you to double check your configuration, nuke your local 
> repo and the obligatory "go by a mac" statement... not much I can do.

:-) For now I use a hacked up version of the root pom.xml which then 
let's me build. Thanks for the help!

/niklas


Re: Surefire build issue

Posted by Jason Dillon <ja...@planet57.com>.
Are you setting JAVA_HOME in windows or in Cygwin?

Looks to me like you are having some related environmental  
configuration issues.

Short of telling you to double check your configuration, nuke your  
local repo and the obligatory "go by a mac" statement... not much I  
can do.

Maybe someone else who actually uses that platform might have some  
more insight into what is going on in Cygwin.

--jason


On Apr 1, 2007, at 7:57 AM, Niklas Gustavsson wrote:

> Jason Dillon wrote:
>> What operating system are you using?
>
> This is on Cygwin.
>
> /niklas
>


Re: Surefire build issue

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Jason Dillon wrote:
> What operating system are you using?

This is on Cygwin.

/niklas


Re: Surefire build issue

Posted by Jason Dillon <ja...@planet57.com>.
What operating system are you using?

--jason


On Mar 31, 2007, at 2:14 AM, Niklas Gustavsson wrote:

> Jason Dillon wrote:
>> The server/trunk (and server/branches/1.2) codelines inhert  
>> configuration from genesis/config/project-config 1.1 ( http:// 
>> svn.apache.org/repos/asf/geronimo/genesis/tags/genesis-1.1/config/ 
>> project-config/pom.xml ) which currently sets the surefire plugin  
>> version to 2.2.
>> I'm unaware of any problems with the build due to surefire  
>> problems.  What issues are you having?
>
> Oh, I should have said that I'm trying to build server/trunk. The  
> problem I'm seeing is the one below. The exact class where it  
> happens might vary based on how far the previous build got, if  
> running mvn clean test it will always halt on the same class.
>
> org.apache.maven.surefire.booter.SurefireExecutionException: org/ 
> apache/geronimo
> /activation/handlers/TextHtmlTest (Unsupported major.minor version  
> 49.0); nested
>  exception is java.lang.UnsupportedClassVersionError: org/apache/ 
> geronimo/activa
> tion/handlers/TextHtmlTest (Unsupported major.minor version 49.0)
> java.lang.UnsupportedClassVersionError: org/apache/geronimo/ 
> activation/handlers/
> TextHtmlTest (Unsupported major.minor version 49.0)
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at java.security.SecureClassLoader.defineClass 
> (SecureClassLoader.java:12
> 3)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java: 
> 251)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at  
> org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat
> edClassLoader.java:100)
>         at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest
> Sets(AbstractDirectoryTestSuite.java:84)
>         at  
> org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
> .java:147)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at  
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:225)
>         at org.apache.maven.surefire.booter.SurefireBooter.main 
> (SurefireBooter.j
> ava:747)
>
>
> This is on:
> $ "$JAVA_HOME/bin/java" -version
> java version "1.5.0_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
>
>
> As I wrote previously, changing the surefire plugin version to 2.0  
> does seem to fix this. I didn't notice the inheritance you  
> mentioned before, but now I tried setting the plugin version to 2.2  
> explicitly in server/trunk/pom.xml and that results in the same  
> problem.
>
> I'm not familiar enough with the surefire classloading to analyze  
> this issue in any great detail :-/
>
> /niklas
>


Re: Surefire build issue

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Jason Dillon wrote:
> The server/trunk (and server/branches/1.2) codelines inhert 
> configuration from genesis/config/project-config 1.1 ( 
> http://svn.apache.org/repos/asf/geronimo/genesis/tags/genesis-1.1/config/project-config/pom.xml 
> ) which currently sets the surefire plugin version to 2.2.
> 
> I'm unaware of any problems with the build due to surefire problems.  
> What issues are you having?

Oh, I should have said that I'm trying to build server/trunk. The 
problem I'm seeing is the one below. The exact class where it happens 
might vary based on how far the previous build got, if running mvn clean 
test it will always halt on the same class.

org.apache.maven.surefire.booter.SurefireExecutionException: 
org/apache/geronimo
/activation/handlers/TextHtmlTest (Unsupported major.minor version 
49.0); nested
  exception is java.lang.UnsupportedClassVersionError: 
org/apache/geronimo/activa
tion/handlers/TextHtmlTest (Unsupported major.minor version 49.0)
java.lang.UnsupportedClassVersionError: 
org/apache/geronimo/activation/handlers/
TextHtmlTest (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at 
org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat
edClassLoader.java:100)
         at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest
Sets(AbstractDirectoryTestSuite.java:84)
         at 
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:147)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:225)
         at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:747)


This is on:
$ "$JAVA_HOME/bin/java" -version
java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)


As I wrote previously, changing the surefire plugin version to 2.0 does 
seem to fix this. I didn't notice the inheritance you mentioned before, 
but now I tried setting the plugin version to 2.2 explicitly in 
server/trunk/pom.xml and that results in the same problem.

I'm not familiar enough with the surefire classloading to analyze this 
issue in any great detail :-/

/niklas


Re: Surefire build issue

Posted by Jason Dillon <ja...@planet57.com>.
The server/trunk (and server/branches/1.2) codelines inhert  
configuration from genesis/config/project-config 1.1 ( http:// 
svn.apache.org/repos/asf/geronimo/genesis/tags/genesis-1.1/config/ 
project-config/pom.xml ) which currently sets the surefire plugin  
version to 2.2.

I'm unaware of any problems with the build due to surefire problems.   
What issues are you having?

--jason


On Mar 30, 2007, at 3:11 PM, Niklas Gustavsson wrote:

> Hi
>
> I'm just starting to play around with building Maven and ran in to  
> some issues. The first was that Surefire complains about Java class  
> file version issues. I've seen this before on other builds  
> (probably because I have a screwed up surefire version as the  
> default) and has been able to fix it by including the surefire  
> plugin version in the pom:
> <plugin>
>     <artifactId>maven-surefire-plugin</artifactId>
>     <version>2.0</version>
> </plugin>
>
> Doing this is probably a good idea anyways as it should stabilize  
> builds. Should I report a JIRA issue on this or would this email be  
> okay?
>
> /niklas
>