You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "rahul.soa" <ra...@googlemail.com> on 2009/04/04 19:25:12 UTC
ApacheGeronimo - Build failure
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
Re: ApacheGeronimo - Build failure
Posted by "rahul.soa" <ra...@googlemail.com>.
Hello David,
Thanks for your reply. I upgraded my system RAM and did build the Geronimo
successfully in one go without any problem.
Best Regards,
Rahul
On Thu, Apr 9, 2009 at 12:49 AM, David Jencks <da...@yahoo.com>wrote:
> Not sure about the assemblies....
> I suspect when I set up connector 1.6 that I used the -Pee6 profile to get
> the j2ca 1.6 spec jar into jee-specs. So if you build jee-specs and
> connector 1.6 with
>
> mvn clean install -Pee6
>
> it might work.
>
> david jencks
>
> On Apr 8, 2009, at 2:19 PM, rahul.soa wrote:
>
> Hello Kevan, David,
>
> Thanks for your replies. I was able to build (not completely except *
> assemblies* and */plugins/connector-1_6*) ApacheGeronimo module by module
> with your instructions.
>
> I did also run the server and did deploy the sample application
> successfully by following the instruction from the below link:
>
>
> http://cwiki.apache.org/GMOxDOC21/quick-start-apache-geronimo-for-the-impatient.html#Quickstart-ApacheGeronimofortheimpatient-Starttheserver
>
> Following errors, I received in building assemblies:
>
> ----
>
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from apache.org
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from codehaus-snapshots
> [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/assemblies/geronimo-jetty6-minimal/src/main/resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] [car:install-modules]
> [ERROR] Unable to install plugin
> java.io.IOException: Could not resolve artifact xpp3/xpp3//jar in repo
> /home/rahul/.m2/repository
>
> org.apache.geronimo.mavenplugins.car.Maven2RepositoryAdapter.open(Maven2RepositoryAdapter.java:104)
>
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1178)
>
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
>
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
>
> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:773)
>
> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:718)
>
> org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:175)
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] Installed plugins:
> [INFO] org.apache.geronimo.plugingroups/web-jetty/2.2-SNAPSHOT/car
> [INFO] Installed dependencies:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Could not download all dependencies
>
> Embedded error: Could not resolve artifact xpp3/xpp3//jar in repo
> /home/rahul/.m2/repository
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Could not download
> all dependencies
> 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: Could not
> download all dependencies
> at
> org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:196)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> ... 16 more
> Caused by: java.io.IOException: Could not resolve artifact xpp3/xpp3//jar
> in repo /home/rahul/.m2/repository
> at
> org.apache.geronimo.mavenplugins.car.Maven2RepositoryAdapter.open(Maven2RepositoryAdapter.java:104)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1178)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:773)
> at
> org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:718)
> at
> org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:175)
> ... 18 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 minutes 19 seconds
> [INFO] Finished at: Thu Apr 09 01:11:57 CEST 2009
> [INFO] Final Memory: 71M/508M
> [INFO]
> ------------------------------------------------------------------------
> [rahul@localhost assemblies]$
>
> -----
>
>
>
> And, I received the following error while building
> server/plugins/connector-1_6
>
> ----
>
> [INFO] Compiling 28 source files to
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/GeronimoWorkManagerGBean.java:[41,91]
> cannot find symbol
> symbol : class InflowContextHandler
> location: class org.apache.geronimo.connector.work.GeronimoWorkManagerGBean
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/SecurityInflowContextHandler.java:[41,53]
> cannot find symbol
> symbol: class InflowContextHandler
> public class SecurityInflowContextHandler implements
> InflowContextHandler<SecurityInflowContext> {
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/SecurityInflowContextHandler.java:[41,73]
> interface expected here
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/TransactionInflowContextHandlerGBean.java:[32,58]
> cannot find symbol
> symbol: class TransactionInflowContextHandler
> public class TransactionInflowContextHandlerGBean extends
> TransactionInflowContextHandler{
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
> 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.CompilationFailureException: Compilation
> failure
> at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
> at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 28 seconds
> [INFO] Finished at: Thu Apr 09 00:58:27 CEST 2009
> [INFO] Final Memory: 36M/508M
> [INFO]
> ------------------------------------------------------------------------
> [rahul@localhost connector-1_6]$
>
> -----
>
> Any idea why those error occured?
>
> Thank you.
>
> Best Regards,
> Rahul
>
>
> On Mon, Apr 6, 2009 at 10:07 PM, Kevan Miller <ke...@gmail.com>
> wrote:
> >
> > On Apr 6, 2009, at 3:25 AM, rahul.soa wrote:
> >
> >> Hello David,
> >>
> >> It did not work for independent build as well. I tried to build the
> >> plug-ins and got the same memory allocation error :( I ordered my RAM
> >> already.
> >
> > Try building without tests:
> >
> > mvn -Dtest=false
> >
> > --kevan
> >
>
>
>
Re: ApacheGeronimo - Build failure
Posted by David Jencks <da...@yahoo.com>.
Not sure about the assemblies....
I suspect when I set up connector 1.6 that I used the -Pee6 profile to
get the j2ca 1.6 spec jar into jee-specs. So if you build jee-specs
and connector 1.6 with
mvn clean install -Pee6
it might work.
david jencks
On Apr 8, 2009, at 2:19 PM, rahul.soa wrote:
> Hello Kevan, David,
>
> Thanks for your replies. I was able to build (not completely except
> assemblies and /plugins/connector-1_6) ApacheGeronimo module by
> module with your instructions.
>
> I did also run the server and did deploy the sample application
> successfully by following the instruction from the below link:
>
> http://cwiki.apache.org/GMOxDOC21/quick-start-apache-geronimo-for-the-impatient.html#Quickstart-ApacheGeronimofortheimpatient-Starttheserver
>
> Following errors, I received in building assemblies:
>
> ----
>
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from apache.org
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from apache.snapshots
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from apache-snapshots
> [INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT:
> checking for updates from codehaus-snapshots
> [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/
> assemblies/geronimo-jetty6-minimal/src/main/resources
> [INFO] Copying 3 resources
> [INFO] Copying 3 resources
> [INFO] [car:install-modules]
> [ERROR] Unable to install plugin
> java.io.IOException: Could not resolve artifact xpp3/xpp3//jar in
> repo /home/rahul/.m2/repository
>
> org
> .apache
> .geronimo
> .mavenplugins
> .car.Maven2RepositoryAdapter.open(Maven2RepositoryAdapter.java:104)
>
> org
> .apache
> .geronimo
> .system
> .plugin
> .PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1178)
>
> org
> .apache
> .geronimo
> .system
> .plugin
> .PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
>
> org
> .apache
> .geronimo
> .system
> .plugin
> .PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
>
> org
> .apache
> .geronimo
> .system
> .plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:773)
>
> org
> .apache
> .geronimo
> .system
> .plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:718)
>
> org
> .apache
> .geronimo
> .mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:
> 175)
>
> org
> .apache
> .maven
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
> 451)
>
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
> 558)
>
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor
> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
> 478)
>
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor
> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor
> .executeTaskSegments(DefaultLifecycleExecutor.java:291)
>
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
> 315)
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
> 430)
> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] Installed plugins:
> [INFO] org.apache.geronimo.plugingroups/web-jetty/2.2-SNAPSHOT/car
> [INFO] Installed dependencies:
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Could not download all dependencies
>
> Embedded error: Could not resolve artifact xpp3/xpp3//jar in repo /
> home/rahul/.m2/repository
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Could not
> download all dependencies
> 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: Could not
> download all dependencies
> at
> org
> .apache
> .geronimo
> .mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:
> 196)
> at
> org
> .apache
> .maven
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
> 451)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
> 558)
> ... 16 more
> Caused by: java.io.IOException: Could not resolve artifact xpp3/
> xpp3//jar in repo /home/rahul/.m2/repository
> at
> org
> .apache
> .geronimo
> .mavenplugins
> .car.Maven2RepositoryAdapter.open(Maven2RepositoryAdapter.java:104)
> at
> org
> .apache
> .geronimo
> .system
> .plugin
> .PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1178)
> at
> org
> .apache
> .geronimo
> .system
> .plugin
> .PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
> at
> org
> .apache
> .geronimo
> .system
> .plugin
> .PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
> at
> org
> .apache
> .geronimo
> .system
> .plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:773)
> at
> org
> .apache
> .geronimo
> .system
> .plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:718)
> at
> org
> .apache
> .geronimo
> .mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:
> 175)
> ... 18 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 minutes 19 seconds
> [INFO] Finished at: Thu Apr 09 01:11:57 CEST 2009
> [INFO] Final Memory: 71M/508M
> [INFO]
> ------------------------------------------------------------------------
> [rahul@localhost assemblies]$
>
> -----
>
>
>
> And, I received the following error while building server/plugins/
> connector-1_6
>
> ----
>
> [INFO] Compiling 28 source files to /home/rahul/server/plugins/
> connector-1_6/geronimo-connector-1_6/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/
> main/java/org/apache/geronimo/connector/work/
> GeronimoWorkManagerGBean.java:[41,91] cannot find symbol
> symbol : class InflowContextHandler
> location: class
> org.apache.geronimo.connector.work.GeronimoWorkManagerGBean
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/
> main/java/org/apache/geronimo/connector/work/
> SecurityInflowContextHandler.java:[41,53] cannot find symbol
> symbol: class InflowContextHandler
> public class SecurityInflowContextHandler implements
> InflowContextHandler<SecurityInflowContext> {
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/
> main/java/org/apache/geronimo/connector/work/
> SecurityInflowContextHandler.java:[41,73] interface expected here
>
> /home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/
> main/java/org/apache/geronimo/connector/work/
> TransactionInflowContextHandlerGBean.java:[32,58] cannot find symbol
> symbol: class TransactionInflowContextHandler
> public class TransactionInflowContextHandlerGBean extends
> TransactionInflowContextHandler{
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
> 579)
> 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.CompilationFailureException:
> Compilation failure
> at
> org
> .apache
> .maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:
> 516)
> at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
> at
> org
> .apache
> .maven
> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
> 451)
> at
> org
> .apache
> .maven
> .lifecycle
> .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
> 558)
> ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 28 seconds
> [INFO] Finished at: Thu Apr 09 00:58:27 CEST 2009
> [INFO] Final Memory: 36M/508M
> [INFO]
> ------------------------------------------------------------------------
> [rahul@localhost connector-1_6]$
>
> -----
>
> Any idea why those error occured?
>
> Thank you.
>
> Best Regards,
> Rahul
>
>
> On Mon, Apr 6, 2009 at 10:07 PM, Kevan Miller
> <ke...@gmail.com> wrote:
> >
> > On Apr 6, 2009, at 3:25 AM, rahul.soa wrote:
> >
> >> Hello David,
> >>
> >> It did not work for independent build as well. I tried to build the
> >> plug-ins and got the same memory allocation error :( I ordered my
> RAM
> >> already.
> >
> > Try building without tests:
> >
> > mvn -Dtest=false
> >
> > --kevan
> >
>
Re: ApacheGeronimo - Build failure
Posted by "rahul.soa" <ra...@googlemail.com>.
Hello Kevan, David,
Thanks for your replies. I was able to build (not completely except *
assemblies* and */plugins/connector-1_6*) ApacheGeronimo module by module
with your instructions.
I did also run the server and did deploy the sample application successfully
by following the instruction from the below link:
http://cwiki.apache.org/GMOxDOC21/quick-start-apache-geronimo-for-the-impatient.html#Quickstart-ApacheGeronimofortheimpatient-Starttheserver
Following errors, I received in building assemblies:
----
[INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT: checking
for updates from apache.org
[INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT: checking
for updates from apache.snapshots
[INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT: checking
for updates from apache-snapshots
[INFO] snapshot org.apache.geronimo.configs:sharedlib:2.2-SNAPSHOT: checking
for updates from codehaus-snapshots
[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/assemblies/geronimo-jetty6-minimal/src/main/resources
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] [car:install-modules]
[ERROR] Unable to install plugin
java.io.IOException: Could not resolve artifact xpp3/xpp3//jar in repo
/home/rahul/.m2/repository
org.apache.geronimo.mavenplugins.car.Maven2RepositoryAdapter.open(Maven2RepositoryAdapter.java:104)
org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1178)
org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:773)
org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:718)
org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:175)
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] Installed plugins:
[INFO] org.apache.geronimo.plugingroups/web-jetty/2.2-SNAPSHOT/car
[INFO] Installed dependencies:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Could not download all dependencies
Embedded error: Could not resolve artifact xpp3/xpp3//jar in repo
/home/rahul/.m2/repository
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Could not download
all dependencies
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: Could not
download all dependencies
at
org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:196)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
Caused by: java.io.IOException: Could not resolve artifact xpp3/xpp3//jar in
repo /home/rahul/.m2/repository
at
org.apache.geronimo.mavenplugins.car.Maven2RepositoryAdapter.open(Maven2RepositoryAdapter.java:104)
at
org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1178)
at
org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
at
org.apache.geronimo.system.plugin.PluginInstallerGBean.downloadArtifact(PluginInstallerGBean.java:1299)
at
org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:773)
at
org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:718)
at
org.apache.geronimo.mavenplugins.car.InstallModulesMojo.execute(InstallModulesMojo.java:175)
... 18 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 19 seconds
[INFO] Finished at: Thu Apr 09 01:11:57 CEST 2009
[INFO] Final Memory: 71M/508M
[INFO]
------------------------------------------------------------------------
[rahul@localhost assemblies]$
-----
And, I received the following error while building
server/plugins/connector-1_6
----
[INFO] Compiling 28 source files to
/home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
/home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/GeronimoWorkManagerGBean.java:[41,91]
cannot find symbol
symbol : class InflowContextHandler
location: class org.apache.geronimo.connector.work.GeronimoWorkManagerGBean
/home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/SecurityInflowContextHandler.java:[41,53]
cannot find symbol
symbol: class InflowContextHandler
public class SecurityInflowContextHandler implements
InflowContextHandler<SecurityInflowContext> {
/home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/SecurityInflowContextHandler.java:[41,73]
interface expected here
/home/rahul/server/plugins/connector-1_6/geronimo-connector-1_6/src/main/java/org/apache/geronimo/connector/work/TransactionInflowContextHandlerGBean.java:[32,58]
cannot find symbol
symbol: class TransactionInflowContextHandler
public class TransactionInflowContextHandlerGBean extends
TransactionInflowContextHandler{
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
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.CompilationFailureException: Compilation
failure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 minute 28 seconds
[INFO] Finished at: Thu Apr 09 00:58:27 CEST 2009
[INFO] Final Memory: 36M/508M
[INFO]
------------------------------------------------------------------------
[rahul@localhost connector-1_6]$
-----
Any idea why those error occured?
Thank you.
Best Regards,
Rahul
On Mon, Apr 6, 2009 at 10:07 PM, Kevan Miller <ke...@gmail.com>
wrote:
>
> On Apr 6, 2009, at 3:25 AM, rahul.soa wrote:
>
>> Hello David,
>>
>> It did not work for independent build as well. I tried to build the
>> plug-ins and got the same memory allocation error :( I ordered my RAM
>> already.
>
> Try building without tests:
>
> mvn -Dtest=false
>
> --kevan
>
Re: ApacheGeronimo - Build failure
Posted by Kevan Miller <ke...@gmail.com>.
On Apr 6, 2009, at 3:25 AM, rahul.soa wrote:
> Hello David,
>
> It did not work for independent build as well. I tried to build the
> plug-ins and got the same memory allocation error :( I ordered my RAM
> already.
Try building without tests:
mvn -Dtest=false
--kevan
Re: ApacheGeronimo - Build failure
Posted by "rahul.soa" <ra...@googlemail.com>.
Hello David,
It did not work for independent build as well. I tried to build the
plug-ins and got the same memory allocation error :( I ordered my RAM
already.
Many Thanks.
Rahul
On Mon, Apr 6, 2009 at 12:29 AM, rahul.soa <ra...@googlemail.com> wrote:
> Hello David,
>
> Thanks for your email.
>
> On Sun, Apr 5, 2009 at 1:07 AM, David Jencks <da...@yahoo.com> wrote:
>> Hi Rahul,
>>
>> It looks like this is the problem:
>>
>> 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
>>
>> I wonder if the project is just too big to build at once on your machine?
>> 512Mb RAM is rather small nowadays.
>>
> Yes, I also feel that 512Mb RAM is not sufficient and I am going to
> buy some more RAM for my system as hoping to start working on gsoc
> project soon.
>
>> You might try building the top level bits by themselves such as
>> testsupport
>> framework
>> plugins
>> plugingroups
>> assemblies
>> testsuite
>>
>> I don't know if that would help or not :-(
>>
> I am trying these, one by one now and will get back to you in both the cases.
> Thanks again for your help.
>> thanks
>> david jencks
>>
>>
> Best Regards,
> Rahul
>>
>> On Apr 4, 2009, at 10:25 AM, rahul.soa wrote:
>>
>>> 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
>>
>>
>
Re: ApacheGeronimo - Build failure
Posted by "rahul.soa" <ra...@googlemail.com>.
Hello David,
Thanks for your email.
On Sun, Apr 5, 2009 at 1:07 AM, David Jencks <da...@yahoo.com> wrote:
> Hi Rahul,
>
> It looks like this is the problem:
>
> 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
>
> I wonder if the project is just too big to build at once on your machine?
> 512Mb RAM is rather small nowadays.
>
Yes, I also feel that 512Mb RAM is not sufficient and I am going to
buy some more RAM for my system as hoping to start working on gsoc
project soon.
> You might try building the top level bits by themselves such as
> testsupport
> framework
> plugins
> plugingroups
> assemblies
> testsuite
>
> I don't know if that would help or not :-(
>
I am trying these, one by one now and will get back to you in both the cases.
Thanks again for your help.
> thanks
> david jencks
>
>
Best Regards,
Rahul
>
> On Apr 4, 2009, at 10:25 AM, rahul.soa wrote:
>
>> 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
>
>
Re: ApacheGeronimo - Build failure
Posted by David Jencks <da...@yahoo.com>.
Hi Rahul,
It looks like this is the problem:
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
I wonder if the project is just too big to build at once on your
machine? 512Mb RAM is rather small nowadays.
You might try building the top level bits by themselves such as
testsupport
framework
plugins
plugingroups
assemblies
testsuite
I don't know if that would help or not :-(
thanks
david jencks
On Apr 4, 2009, at 10:25 AM, rahul.soa wrote:
> 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