Norman, Thanks for the reply. I used it (export MAVEN_OPTS=-Xmx1024m) from Mac Terminal.
By the way, the previous error is from when I use "Maven Build" under "Run As" in Eclipse, but when I use Eclipse's GWT Compile I get the following error. Any idea? Also, Maven did not download and set up three of my jar files. I add them to my dependencies manually using the instructions "Maven Install" gave me. These were gwt-incubator.jar, gwt-dnd-2.6.5.jar and gwt-vl-0.8b.jar. I downloaded gwt-dnd-2.6.5.jar and gwt-vl-0.8b.jar here https://svn.apache.org/repos/asf/james/site/trunk/www/hupa/hupa-client/dependencies.html. There is a gwt-incubator-july-14-2009.jar there too but not a gwt-incubator.jar. I am not sure if there is a difference between the two but I downloaded gwt-incubator.jar from http://google-web-toolkit-incubator.googlecode.com/files/gwt-incubator.jar. I am not sure if this piece of info is helpful to resolve the problem though. Mara Compiling module org.apache.hupa.Hupa Validating newly compiled units [ERROR] Errors in 'file:/Users/Guest/Documents/workspace/hupa/client/src/test/java/org/apache/hupa/client/HupaGwtTestCase.java' [ERROR] Line 29: No source code is available for type com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a required module? [WARN] Warnings in 'jar:file:/Users/Guest/.m2/repository/com/google/gwt/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/table/client/TableBulkRenderer.java' [WARN] Line 404: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [ERROR] Errors in 'file:/Users/Guest/Documents/workspace/hupa/client/src/test/java/org/apache/hupa/client/mvp/MessageSendPresenterTest.java' [ERROR] Line 52: No source code is available for type com.google.inject.Module; did you forget to inherit a required module? [ERROR] Line 53: No source code is available for type org.apache.hupa.server.guice.GuiceServerTestModule; did you forget to inherit a required module? [ERROR] Line 56: No source code is available for type org.easymock.EasyMock; did you forget to inherit a required module? [WARN] Warnings in 'jar:file:/Users/Guest/.m2/repository/com/google/gwt/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/table/client/GridBulkRenderer.java' [WARN] Line 102: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [WARN] Line 103: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.Grid' [WARN] Line 104: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.Grid' [WARN] Line 104: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [ERROR] Errors in 'file:/Users/Guest/Documents/workspace/hupa/client/src/test/java/org/apache/hupa/client/HupaMvpTestCase.java' [ERROR] Line 50: No source code is available for type junit.framework.TestCase; did you forget to inherit a required module? [ERROR] Line 52: No source code is available for type com.google.inject.Injector; did you forget to inherit a required module? [ERROR] Line 52: No source code is available for type com.google.inject.Guice; did you forget to inherit a required module? [ERROR] Line 54: No source code is available for type javax.servlet.http.HttpSession; did you forget to inherit a required module? [ERROR] Line 55: No source code is available for type javax.mail.Session; did you forget to inherit a required module? [ERROR] Line 56: No source code is available for type org.apache.hupa.server.preferences.UserPreferencesStorage; did you forget to inherit a required module? [ERROR] Line 57: No source code is available for type org.apache.hupa.server.IMAPStoreCache; did you forget to inherit a required module? [ERROR] Line 59: No source code is available for type com.sun.mail.imap.IMAPStore; did you forget to inherit a required module? [ERROR] Line 62: No source code is available for type com.google.inject.Module; did you forget to inherit a required module? [ERROR] Line 63: No source code is available for type org.apache.hupa.server.guice.GuiceServerTestModule; did you forget to inherit a required module? [ERROR] Line 69: No source code is available for type com.google.gwt.junit.GWTMockUtilities; did you forget to inherit a required module? [ERROR] Line 76: No source code is available for type org.apache.hupa.server.utils.SessionUtils; did you forget to inherit a required module? [ERROR] Errors in 'file:/Users/Guest/Documents/workspace/hupa/client/src/test/java/org/apache/hupa/client/mvp/ContactsPresenterTest.java' [ERROR] Line 36: No source code is available for type org.easymock.EasyMock; did you forget to inherit a required module? [WARN] Warnings in 'jar:file:/Users/Guest/.m2/repository/com/google/gwt/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/table/client/FixedWidthGridBulkRenderer.java' [WARN] Line 122: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [WARN] Warnings in 'jar:file:/Users/Guest/.m2/repository/com/google/gwt/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/client/impl/GlassPanelImpl.java' [WARN] Line 30: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl' [WARN] Line 38: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl' [ERROR] Errors in 'file:/Users/Guest/Documents/workspace/hupa/client/src/test/java/org/apache/hupa/client/guice/GuiceMvpTestModule.java' [ERROR] Line 49: No source code is available for type com.google.inject.AbstractModule; did you forget to inherit a required module? [ERROR] Line 68: No source code is available for type org.easymock.EasyMock; did you forget to inherit a required module? [ERROR] Line 81: No source code is available for type net.customware.gwt.dispatch.server.Dispatch; did you forget to inherit a required module? [ERROR] Line 95: No source code is available for type net.customware.gwt.dispatch.server.DefaultDispatch; did you forget to inherit a required module? Scanning for additional dependencies: jar:file:/Users/Guest/.m2/repository/net/customware/gwt/dispatch/gwt-dispatch/1.0.0/gwt-dispatch-1.0.0.jar!/net/customware/gwt/dispatch/client/DefaultDispatchAsync.java Adding '87' new generated units Validating newly compiled units [WARN] Warnings in 'generated://912EC725DC7005B3B1808C34A8C9FEA4/net/customware/gwt/dispatch/client/service/DispatchService_TypeSerializer.java' [WARN] Line 58: Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException' See snapshot: /var/folders/zz/zzzivhrRnAmviuee++++mE+++AY/-Tmp-/DispatchService_TypeSerializer17175882508585309.java Compiling 24 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compiling permutation 6... Compiling permutation 7... Compiling permutation 8... Compiling permutation 9... Compiling permutation 10... Compiling permutation 11... Compiling permutation 12... Compiling permutation 13... Compiling permutation 14... Compiling permutation 15... Compiling permutation 16... Compiling permutation 17... Compiling permutation 18... Compiling permutation 19... Compiling permutation 20... Compiling permutation 21... Compiling permutation 22... Compiling permutation 23... Compile of permutations succeeded Linking into /Users/Guest/Documents/workspace/hupa/client/war/hupa. Link succeeded Compilation succeeded -- 317.206s On Thu, Sep 23, 2010 at 8:38 AM, Norman <[email protected]> wrote: > Strange.. this should do the job. > > How exactly did you set the MVN_OPTS ? > > Bye, > Norman > > Am 22.09.2010 15:27, schrieb Mara Axiom: >> >> Hi all, >> >> I checked out a copy of Hupa using SVN. When I try to build the >> project through maven2 I get the following OutOfMemoryError. I >> followed all the set up and build instructions on james.apache.org, >> but I don't know why I am getting this error. Can someone help to >> resolve this problem? I increased the amount of memory using maven >> opts xmx1024m, but it didn't solve the error. >> >> [INFO] [ERROR] Unexpected >> [INFO] java.lang.OutOfMemoryError: Java heap space >> [INFO] at java.lang.Class.getDeclaredMethods0(Native Method) >> [INFO] at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) >> [INFO] at java.lang.Class.getDeclaredMethod(Class.java:1935) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:499) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:527) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.addCallArgs(GenerateJavaAST.java:1990) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:804) >> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> [INFO] at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> [INFO] at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> [INFO] at java.lang.reflect.Method.invoke(Method.java:597) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:500) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:527) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.addCallArgs(GenerateJavaAST.java:1990) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1135) >> [INFO] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> [INFO] at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> [INFO] at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> [INFO] at java.lang.reflect.Method.invoke(Method.java:597) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:500) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:527) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:557) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1829) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1483) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:431) >> [INFO] at >> com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:2994) >> [INFO] at >> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:465) >> [INFO] at >> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32) >> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:522) >> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:414) >> [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:201) >> [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152) >> [INFO] [ERROR] Out of memory; to increase the amount of memory, use >> the -Xmx flag at startup (java -Xmx128M ...) >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] hupa-parent ....................................... SUCCESS >> [1.018s] >> [INFO] hupa-shared ....................................... SUCCESS >> [7.499s] >> [INFO] hupa-server ....................................... SUCCESS >> [14.641s] >> [INFO] hupa-widgets ...................................... SUCCESS >> [7.018s] >> [INFO] hupa .............................................. FAILURE >> [3:42.552s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 4:13.038s >> [INFO] Finished at: Wed Sep 22 00:02:05 EDT 2010 >> [INFO] Final Memory: 18M/79M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.codehaus.mojo:gwt-maven-plugin:1.2:compile (default) on project >> hupa-client: Command [[ >> /bin/sh -c >> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java >> >> -Dhupa.config.file=/Users/Guest/Documents/workspace/hupa/server/src/main/webapp/WEB-INF/conf/config.properties >> -classpath >> "/Users/Guest/Documents/workspace/hupa/client/src/main/java":"/Users/Guest/Documents/workspace/hupa/client/src/main/resources":"/Users/Guest/Documents/workspace/hupa/client/war/WEB-INF/classes":"/Users/Guest/Documents/workspace/hupa/server/target/hupa-server-0.0.1-SNAPSHOT.jar":"/Users/Guest/Documents/workspace/hupa/shared/target/hupa-shared-0.0.1-SNAPSHOT.jar":"/Users/Guest/.m2/repository/net/customware/gwt/dispatch/gwt-dispatch/1.0.0/gwt-dispatch-1.0.0.jar":"/Users/Guest/.m2/repository/com/google/inject/guice/2.0/guice-2.0.jar":"/Users/Guest/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar":"/Users/Guest/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar":"/Users/Guest/.m2/repository/log4j/log4j/1.2.13/log4j-1.2.13.jar":"/Users/Guest/.m2/repository/javax/mail/mail/1.4.1/mail-1.4.1.jar":"/Users/Guest/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar":"/Users/Guest/.m2/repository/gwtupload/gwtupload/0.5.8-M5/gwtupload-0.5.8-M5.jar":"/Users/Guest/.m2/repository/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar":"/Users/Guest/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar":"/Users/Guest/.m2/repository/com/google/code/guice/guice/2.0/guice-2.0.jar":"/Users/Guest/.m2/repository/com/google/code/guice/guice-servlet/2.0/guice-servlet-2.0.jar":"/Users/Guest/Documents/workspace/hupa/widgets/target/hupa-widgets-0.0.1-SNAPSHOT.jar":"/Users/Guest/.m2/repository/com/google/gwt/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar":"/Users/Guest/.m2/repository/org/cobogw/gwt/cobogw/1.3/cobogw-1.3.jar":"/Users/Guest/.m2/repository/com/googlecode/gwt/inject/gin/1.0/gin-1.0.jar":"/Users/Guest/.m2/repository/net/customware/gwt/presenter/gwt-presenter/1.1.0-replace-SNAPSHOT/gwt-presenter-1.1.0-replace-SNAPSHOT.jar":"/Users/Guest/.m2/repository/com/google/code/gwt-dnd/gwt-dnd/2.6.5/gwt-dnd-2.6.5.jar":"/Users/Guest/.m2/repository/eu/maydu/gwt/gwt-vl/0.8b/gwt-vl-0.8b.jar":"/Users/Guest/.m2/repository/com/google/gwt/gwt-user/2.0.3/gwt-user-2.0.3.jar":"/Users/Guest/.m2/repository/com/google/gwt/gwt-dev/2.0.3/gwt-dev-2.0.3.jar" >> com.google.gwt.dev.Compiler -gen >> "/Users/Guest/Documents/workspace/hupa/client/target/.generated" >> -logLevel INFO -style OBF -war >> >> "/Users/Guest/Documents/workspace/hupa/client/target/hupa-client-0.0.1-SNAPSHOT" >> -localWorkers 2 -soyc -extra >> "/Users/Guest/Documents/workspace/hupa/client/target/extra" >> org.apache.hupa.Hupa >> ]] failed with status 1 >> -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with >> the -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> [ERROR] mvn<goals> -rf :hupa-client >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
