Congrads! > I restart the install from a new trunk. > And after set the MaxPermSize, it finally build succesfully. > Thanks very much. > > > 2007/3/6, Kanchana Welagedara <[EMAIL PROTECTED]>: >> If you are on Linux you can set this environment variable as permanent >> in export in every mvn called in command prompt.I also run with 2GB ram >> >> $vim /etc/bash.bashrc >> >> and set >> >> export MAVEN_OPTS="-XX:MaxPermSize=128m -Xms512m -Xmx1024m" >> >> cheers >> Kanchana >> >> On Tue, 2007-03-06 at 16:32 +0800, Sean Qiu wrote: >> > I have set $MAVEN_OPTS=-Xmx1024m, and upgrade my pc's memory to 2G, >> > but why it still has "Out of memory" error? >> > Thanks for your help. >> > >> > >> > == error message == >> > [INFO] Packaging module configuration: >> > /home/sean/trunk/configs/webconsole-tomcat/target/plan/plan.xml >> > [INFO] >> ------------------------------------------------------------------------ >> > [ERROR] FATAL ERROR >> > [INFO] >> ------------------------------------------------------------------------ >> > [INFO] null >> > PermGen space >> > [INFO] >> ------------------------------------------------------------------------ >> > [INFO] Trace >> > java.lang.ExceptionInInitializerError >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> > at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:585) >> > at net.sf.cglib.proxy.MethodProxy.find(MethodProxy.java:127) >> > at >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.getSuperIndex(ProxyMethodInterceptor.java:271) >> > at >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.createRawGBeanInvokers(ProxyMethodInterceptor.java:140) >> > at >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.createGBeanInvokers(ProxyMethodInterceptor.java:103) >> > at >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.<init>(ProxyMethodInterceptor.java:70) >> > at >> org.apache.geronimo.kernel.basic.BasicProxyManager.getMethodInterceptor(BasicProxyManager.java:232) >> > at >> org.apache.geronimo.kernel.basic.BasicProxyManager$ManagedProxyFactory.createProxy(BasicProxyManager.java:209) >> > at >> org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy(BasicProxyManager.java:103) >> > at >> org.apache.geronimo.kernel.config.ConfigurationUtil.getConfigurationManager(ConfigurationUtil.java:316) >> > at >> org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:202) >> > at >> org.apache.geronimo.kernel.config.ConfigurationUtil.loadBootstrapConfiguration(ConfigurationUtil.java:163) >> > at >> org.apache.geronimo.mavenplugins.car.PackageMojo.bootDeployerSystem(PackageMojo.java:608) >> > at >> org.apache.geronimo.mavenplugins.car.PackageMojo.createKernel(PackageMojo.java:520) >> > at >> org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(PackageMojo.java:453) >> > at >> org.apache.geronimo.mavenplugins.car.PackageMojo.doExecute(PackageMojo.java:299) >> > at >> org.apache.geronimo.genesis.MojoSupport.execute(MojoSupport.java:122) >> > at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420) >> > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) >> > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) >> > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) >> > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) >> > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) >> > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) >> > at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330) >> > at >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> > at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:585) >> > at >> org.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: net.sf.cglib.core.CodeGenerationException: >> > java.lang.reflect.InvocationTargetException-->null >> > at >> net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237) >> > at >> net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64) >> > at net.sf.cglib.proxy.MethodProxy.helper(MethodProxy.java:81) >> > at net.sf.cglib.proxy.MethodProxy.create(MethodProxy.java:46) >> > at >> org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$a4a8781c.CGLIB$STATICHOOK644(<generated>) >> > at >> org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$a4a8781c.<clinit>(<generated>) >> > ... 38 more >> > Caused by: java.lang.reflect.InvocationTargetException >> > at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown >> Source) >> > at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:585) >> > at >> net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384) >> > at >> net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219) >> > ... 43 more >> > Caused by: java.lang.OutOfMemoryError: PermGen space >> > >> > >> > 2007/3/6, Sean Qiu <[EMAIL PROTECTED]>: >> > > the revision is 515015 >> > > >> > > >> > > >> > > 2007/3/6, Sean Qiu < [EMAIL PROTECTED]>: >> > > > But I have run "svn up" just before install just in a few hours >> ago. >> > > > I have tried to skip the test and turn on Error stacktraces using >> "$ mvn -Dmaven.test.skip=true -e install", >> > > > >> > > > And even more, i have deleted >> "/home/qbit/at/geronimo/server/modules/geronimo-corba-builder" >> according to the error mesaage >> > > > Then run "svn up" before install. >> > > > The result is the same. >> > > > >> > > > >>>>>>>>>>>>>> Error Message >>>>>>>>>>>>>>> >> > > > Time to build schema type system: 1.723 seconds >> > > > >> > > > Time to generate code: 0.257 seconds >> > > > >> > > > error: error reading >> /home/qbit/.m2/repository/org/apache/openejb/container/3.0-incubating-SNAPSHOT/container-3.0-incubating-SNAPSHOT.pom; >> error in opening zip file >> > > > >> > > > Note: Some input files use or override a deprecated API. >> > > > >> > > > Note: Recompile with -Xlint:deprecation for details. >> > > > >> > > > 1 error >> > > > >> > > > >> > > > >> > > > BUILD FAILED >> > > > >> > > > [INFO] >> ------------------------------------------------------------------------ >> > > > >> > > > [ERROR] BUILD ERROR >> > > > >> > > > [INFO] >> ------------------------------------------------------------------------ >> > > > >> > > > [INFO] XmlBeans compile failed: >> > > > >> > > > xml ErrorLoading schema file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> css-config-2.1.xsd >> > > > >> > > > xml ErrorLoading schema file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba-tss-config-2.1.xsd >> > > > >> > > > xml ErrorLoading config file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/xmlconfig.xml >> > > > >> > > > >> > > > >> > > > [INFO] >> ------------------------------------------------------------------------ >> > > > >> > > > [INFO] Trace >> > > > >> > > > org.apache.maven.lifecycle.LifecycleExecutionException: XmlBeans >> compile failed: >> > > > >> > > > xml ErrorLoading schema file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> css-config-2.1.xsd >> > > > >> > > > xml ErrorLoading schema file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> tss-config-2.1.xsd >> > > > >> > > > xml ErrorLoading config file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/xmlconfig.xml >> > > > >> > > > >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals >> (DefaultLifecycleExecutor.java:564) >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle >> (DefaultLifecycleExecutor.java:480) >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal >> (DefaultLifecycleExecutor.java:459) >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures >> (DefaultLifecycleExecutor.java:311) >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments >> (DefaultLifecycleExecutor.java:278) >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute >> (DefaultLifecycleExecutor.java:143) >> > > > >> > > > at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java >> :330) >> > > > >> > > > at >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) >> > > > >> > > > at org.apache.maven.cli.MavenCli.main (MavenCli.java:272) >> > > > >> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native >> Method) >> > > > >> > > > at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> > > > >> > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke >> (DelegatingMethodAccessorImpl.java:25) >> > > > >> > > > at java.lang.reflect.Method.invoke (Method.java:585) >> > > > >> > > > at >> org.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.codehaus.mojo.xmlbeans.XmlBeansException : >> XmlBeans compile failed: >> > > > >> > > > xml ErrorLoading schema file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> css-config-2.1.xsd >> > > > >> > > > xml ErrorLoading schema file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> tss-config-2.1.xsd >> > > > >> > > > xml ErrorLoading config file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/xmlconfig.xml >> > > > >> > > > >> > > > >> > > > at >> org.codehaus.mojo.xmlbeans.AbstractXmlBeansPlugin.execute >> (AbstractXmlBeansPlugin.java:280) >> > > > >> > > > at >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java >> :420) >> > > > >> > > > at >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals >> (DefaultLifecycleExecutor.java:539) >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > 2007/3/6, Kanchana Welagedara < [EMAIL PROTECTED]>: >> > > > > Hi >> > > > > >> > > > > $mvn clean install >> > > > > Above is not out dated.It's valid. But "mvn >> -Dmaven.test.skip=true" >> > > > > means your are omitting the Tests building which will consume >> more time >> > > > > and avoid the Test failure bottle necks of stopping build at >> Test build >> > > > > errors. >> > > > > AFAIU your problem is you haven't take the latest svn update. >> > > > > >> > > > > Regards >> > > > > Kanchana >> > > > > >> > > > > On Tue, 2007-03-06 at 15:41 +0800, Sean Qiu wrote: >> > > > > > i use "$mvn clean install" >> > > > > > Is this outdated? >> > > > > > >> > > > > > Thanks any way.I will try. >> > > > > > >> > > > > > 2007/3/6, Kanchana Welagedara <[EMAIL PROTECTED] >: >> > > > > > On Tue, 2007-03-06 at 15:25 +0800, Sean Qiu wrote: >> > > > > > > What's the problem of this? >> > > > > > > I have try many times to delete the old ones, but it >> still >> > > > > > remains the >> > > > > > > same error. >> > > > > > >> > > > > > Remove the complaining stuff from the .m2 repository >> ,double >> > > > > > check >> > > > > > whether it's removed and get svn update before >> building the >> > > > > > code again. >> > > > > > are you using >> > > > > > >> > > > > > $mvn -Dmaven.test.skip=true -e clean install to build >> the >> > > > > > code? >> > > > > > >> > > > > > cheers >> > > > > > Kanchana >> > > > > > > Time to build schema type system: 1.056 seconds >> > > > > > > Time to generate code: 0.266 seconds >> > > > > > > error: error >> > > > > > > >> > > > > > reading >> /home/qbit/.m2/repository/org/apache/openejb/container/3.0-incubating-SNAPSHOT/container- >> 3.0-incubating-SNAPSHOT.pom; error in opening zip >> file >> > > > > > > Note: Some input files use or override a deprecated >> API. >> > > > > > > Note: Recompile with -Xlint:deprecation for details. >> > > > > > > 1 error >> > > > > > > >> > > > > > > BUILD FAILED >> > > > > > > [INFO] >> > > > > > > >> > > > > > >> > > > > > ------------------------------------------------------------------------ >> > > > > > > [ERROR] BUILD ERROR >> > > > > > > [INFO] >> > > > > > > >> > > > > > >> > > > > > ------------------------------------------------------------------------ >> > > > > > > [INFO] XmlBeans compile failed: >> > > > > > > xml ErrorLoading schema >> > > > > > > >> > > > > > file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> css-config-2.1.xsd >> > > > > > > xml ErrorLoading schema >> > > > > > > >> > > > > > file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/corba- >> tss-config-2.1.xsd >> > > > > > > xml ErrorLoading config >> > > > > > > >> > > > > > file >> /home/qbit/at/geronimo/server/modules/geronimo-corba-builder/src/main/schema/xmlconfig.xml >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > 2007/3/6, Sean Qiu <[EMAIL PROTECTED]>: >> > > > > > > It seems the dependency in directory of >> > > > > > ".m2/repository" is >> > > > > > > prone to be outdated. >> > > > > > > When i execute "svn up" and "mvn clean >> install". It >> > > > > > will >> > > > > > > report some problem from .m2/repository >> like: >> > > > > > > >>>>>>>> >> > > > > > > error: error >> > > > > > > >> > > > > > reading >> /home/qbit/.m2/repository/org/apache/openejb/container/3.0-incubating-SNAPSHOT/container- >> 3.0-incubating-SNAPSHOT.pom; error in opening zip file >> > > > > > > Note: Some input files use or override a >> deprecated >> > > > > > API. >> > > > > > > Note: Recompile with -Xlint:deprecation for >> details. >> > > > > > > >> > > > > > > How to update the files in .m2/repository >> > > > > > individously? >> > > > > > > >> > > > > > > Thanks, best regards. >> > > > > > > >> > > > > > > -- >> > > > > > > Sean Qiu >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > -- >> > > > > > > Sean Qiu >> > > > > > >> > > > > > >> > > > > > >> > > > > > >> > > > > > -- >> > > > > > Sean Qiu >> > > > > >> > > > > >> > > > >> > > > >> > > > >> > > > -- >> > > > Sean Qiu >> > > >> > > >> > > >> > > -- >> > > Sean Qiu >> > >> > >> > >> >> > > > -- > Sean Qiu >
