geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rahul.soa" <rahul....@googlemail.com>
Subject ApacheGeronimo - Build failure
Date Sat, 04 Apr 2009 17:25:12 GMT
Hello Devs,

I am trying to build Apache Geronimo on my Linux Machine and I got
build failure error. I am following the steps from the below link:

http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html

1. Checkout
svn co https://svn.apache.org/repos/asf/geronimo/server/trunk server

2. Build
[rahul@localhost server]$ MAVEN_OPTS="-Xms512m -Xmx1024m
-XX:MaxPermSize=512m" mvn install -e


Platform I am using:

 Machine: Intel Pentium M Processor 1.50 GHz,   RAM: 512Mb
      OS: Fedora Release 9(sulphur)
      Arch: Kernel linux 2.6.25.3-18.fc9.i686, 32-bits
      jvm: java version "1.6.0"


Earlier in 2 attempts I got heap error and PermGen space problem but
after increasing the heap size and PermSize I am getting the follwing
error:


//

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

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

[INFO] [jar:jar]
[INFO] Building jar:
/home/rahul/server/plugins/cxf/geronimo-cxf/target/geronimo-cxf-2.2-SNAPSHOT.jar
[INFO] [ianal:verify-legal-files {execution: default}]
[INFO] Checking legal files in: geronimo-cxf-2.2-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing
/home/rahul/server/plugins/cxf/geronimo-cxf/target/geronimo-cxf-2.2-SNAPSHOT.jar
to /home/rahul/.m2/repository/org/apache/geronimo/modules/geronimo-cxf/2.2-SNAPSHOT/geronimo-cxf-2.2-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Geronimo Plugins, CXF :: CXF
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: process}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/rahul/server/plugins/cxf/cxf/src/main/resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] [car:validate-configuration]
[INFO] [car:prepare-plan]
[INFO] Generated:
/home/rahul/server/plugins/cxf/cxf/target/resources/META-INF/plan.xml
[INFO] [car:verify-no-dependency-change]
[INFO] [car:package]
[INFO] Packaging module configuration:
/home/rahul/server/plugins/cxf/cxf/target/resources/META-INF/plan.xml
[INFO] Started deployer:
org.apache.geronimo.framework/geronimo-gbean-deployer/2.2-SNAPSHOT/car
[INFO] [car:prepare-metadata]
[INFO] [car:archive-car]
[INFO] Building jar:
/home/rahul/server/plugins/cxf/cxf/target/cxf-2.2-SNAPSHOT.car
[INFO] [ianal:verify-legal-files {execution: default}]
[INFO] Checking legal files in: cxf-2.2-SNAPSHOT.car
[INFO] [install:install]
[INFO] Installing
/home/rahul/server/plugins/cxf/cxf/target/cxf-2.2-SNAPSHOT.car to
/home/rahul/.m2/repository/org/apache/geronimo/configs/cxf/2.2-SNAPSHOT/cxf-2.2-SNAPSHOT.car
[INFO] [car:update-pluginlist]
[INFO] ------------------------------------------------------------------------
[INFO] Building Geronimo Plugins, CXF :: Builder
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: process}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/rahul/server/plugins/cxf/geronimo-cxf-builder/src/main/resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to
/home/rahul/server/plugins/cxf/geronimo-cxf-builder/target/classes
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/rahul/server/plugins/cxf/geronimo-cxf-builder/src/test/resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Surefire report directory:
/home/rahul/server/plugins/cxf/geronimo-cxf-builder/target/surefire-reports
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error while executing forked tests.; nested exception is
org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException:
Error setting up environmental variables

java.io.IOException: error=12, Cannot allocate memory
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error while
executing forked tests.; nested exception is
org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException:
Error setting up environmental variables
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
	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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error while
executing forked tests.; nested exception is
org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException:
Error setting up environmental variables
	at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:496)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
	... 16 more
Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException:
Error while executing forked tests.; nested exception is
org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException:
Error setting up environmental variables
	at org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:670)
	at org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBooter.java:472)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce(SurefireBooter.java:372)
	at org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:245)
	at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:492)
	... 18 more
Caused by: org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineException:
Error setting up environmental variables
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.Commandline.getEnvironmentVariables(Commandline.java:462)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:624)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:114)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:95)
	at org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:666)
	... 22 more
Caused by: java.io.IOException: Cannot run program "env":
java.io.IOException: error=12, Cannot allocate memory
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
	at java.lang.Runtime.exec(Runtime.java:593)
	at java.lang.Runtime.exec(Runtime.java:431)
	at java.lang.Runtime.exec(Runtime.java:328)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:249)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars(CommandLineUtils.java:213)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.Commandline.addSystemEnvironment(Commandline.java:438)
	at org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.Commandline.getEnvironmentVariables(Commandline.java:458)
	... 26 more
Caused by: java.io.IOException: java.io.IOException: error=12, Cannot
allocate memory
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
	at java.lang.ProcessImpl.start(ProcessImpl.java:65)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
	... 33 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 324 minutes 29 seconds
[INFO] Finished at: Sat Apr 04 19:09:51 CEST 2009
[INFO] Final Memory: 307M/565M
[INFO] ------------------------------------------------------------------------
[rahul@localhost server]$

//


Can you please help me? My system becomes very slow when I build it
which is not normal I guess (Total time: 324 minutes 29 seconds).

Many Thanks in advance.

Best Regards,
Rahul

Mime
View raw message