Hi,

It works on Windows. I'll look into this.

Thanks,
Raymond


From: Mark Combellack 
Sent: Monday, August 11, 2008 7:07 AM
To: [email protected] 
Subject: Problems building tracing-aspectj module on Linux and the Continuum 
server - solution is to upgrade the version of surefire we use.


Hi,

 

I am currently getting build failures with the tracing-aspectj project when 
building on Linux. The Continuum server [1] is also seeing the same issue.

 

See [3] for the full build output from the Continuum server for the 
tracing-aspectj project. The key bit from the output is:

 

[INFO] [surefire:test]

[INFO] Surefire report directory: 
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/surefire-reports

Error occurred during initialization of VM

Error opening zip file: 
"/home/continuum/.m2/repository/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar"

agent library failed to init: instrument

 

 

The problem is that the build is attempting to run surefire with the AspectJ 
codeweaver as the javaagent but is passing in an invalid filename. The code 
that is causing this issue is in the pom.xml.

 

 

                <configuration>

                    <includes>

                        <include>**/*TestCase.java</include>

                    </includes>

                    <reportFormat>brief</reportFormat>

                    <useFile>false</useFile>

                    <forkMode>once</forkMode>

                        <!--  I hit a bug in maven-surefire-plugin 

                        http://jira.codehaus.org/browse/SUREFIRE-128 -->

                    <argLine>-ea -Xmx128m 
-javaagent:&quot;${settings.localRepository}/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar&quot;</argLine>

                </configuration>

 

In the pom.xml file, the path to the aspectjweaver jar is surrounded by &quot; 
so that it will handle paths with spaces in it. As the comment says, this was 
added as a work around to fix surefire bug 128 [2] This surefire bug has now 
been fixed in versions 2.4 and above.

 

The problem we have is that we are still using a version 2.3.1 which does not 
contain the fix for this bug.

 

 

 

What I would like to do is:

·         Upgrade the version of surefire that we are using to the latest 
version - version 2.4.3

·         Remove the &quot; from the pom.xml of the tracing-aspectj project to 
fix the build on Linux and the Continuum server.

 

 

Anyone have any reservations about upgrading to the latest version of surefire?

 

Thanks,

 

Mark

 

 

 

 

[1] 
http://vmbuild.apache.org/continuum/buildResult.action?buildId=107618&projectId=277&projectGroupId=19

[2] http://jira.codehaus.org/browse/SUREFIRE-128

[3] Full build output below for the tracing-aspectj project

 

[INFO] ------------------------------------------------------------------------

[INFO] Building Apache Tuscany AOP-based Logging and Tracing

[INFO]    task-segment: [clean, install]

[INFO] ------------------------------------------------------------------------

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for 
updates from apache

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for 
updates from apache.incubator

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for 
updates from codehaus-snapshot

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for 
updates from apache.ws.zone

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for 
updates from indiana

[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for 
updates from osuosl.org

[INFO] [clean:clean]

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.pom

Downloading: 
http://ws.zones.apache.org/repository2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.pom

Downloading: 
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.pom

Downloading: 
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.pom

Downloading: 
http://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.pom

494b downloaded

Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.pom

Downloading: 
http://ws.zones.apache.org/repository2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.pom

Downloading: 
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.pom

Downloading: 
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.pom

Downloading: 
http://repo1.maven.org/maven2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.pom

495b downloaded

Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.pom

Downloading: 
http://ws.zones.apache.org/repository2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.pom

Downloading: 
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.pom

Downloading: 
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.pom

Downloading: 
http://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.pom

497b downloaded

Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar

Downloading: 
http://ws.zones.apache.org/repository2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar

Downloading: 
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar

Downloading: 
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar

Downloading: 
http://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.6.1/aspectjrt-1.6.1.jar

112K downloaded

Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.jar

Downloading: 
http://ws.zones.apache.org/repository2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.jar

Downloading: 
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.jar

Downloading: 
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.jar

Downloading: 
http://repo1.maven.org/maven2/org/aspectj/aspectjlib/1.6.1/aspectjlib-1.6.1.jar

7K downloaded

[INFO] [compiler:compile]

[INFO] Compiling 3 source files to 
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/classes

[INFO] [bundle:manifest {execution: bundle-manifest}]

[INFO] [resources:testResources]

[INFO] Using default encoding to copy filtered resources.

Downloading: 
http://people.apache.org/repo/m2-incubating-repository/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar

Downloading: 
http://ws.zones.apache.org/repository2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar

Downloading: 
http://ftp.ussg.iu.edu/eclipse/modeling/emf/emf/maven2//org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar

Downloading: 
http://ftp.osuosl.org/pub/eclipse/tools/emf/maven2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar

Downloading: 
http://repo1.maven.org/maven2/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar

1530K downloaded

[INFO] [compiler:testCompile]

[INFO] Compiling 1 source file to 
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/test-classes

[INFO] [surefire:test]

[INFO] Surefire report directory: 
/home/continuum/data/working-directory/277/modules/tracing-aspectj/target/surefire-reports

Error occurred during initialization of VM

Error opening zip file: 
&quot;/home/continuum/.m2/repository/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar&quot;

agent library failed to init: instrument

 


--------------------------------------------------------------------------------

Reply via email to