Problem: Keep getting "module 'xxx' may need to be (re)compiled".
Steps:
- Importing a sample GWT-Maven project into eclipse ("MobileWebApp" - from the GWT SDK).
- GWT|compile the project.
- Running in production mode (without the codesvr parameter, i.e. using "localhost:8888/MobileWebApp.html").
Notes:
- I am fairly new to both GWT and Maven.
- I read GWT module may need to be (re)compiled REDUX.
- Dev mode does work (I am able to debug the application).
Detailed Steps:
- Copying the "MobileWebApp" folder from the "samples" folder inside the GWT SDK (version 2.5.1) to my eclipse workspace.
- Importing the project: File->Import->Existing Maven Projects (pointing to the "MobileWebApp" folder where the pom.xml exists.
- Configuring the project following these steps: https://developers.google.com/eclipse/docs/faq?hl=iw#gwt_with_maven
- At this point I am able to run the app as "Web Application" and debug it.
- Running GWT|Compile: The nocache.js stuff is being placed in the target folder.
- Now, when i try to run the app in production mode I am getting the (re)compile error.
Logs:
"DataNucleus Enhancer (version 1.1.4) : Enhancement of classes DataNucleus Enhancer completed with success for 0 classes. Timings : input=713 ms, enhance=0 ms, total=713 ms. Consult the log for full details DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details"
"Compiling module com.google.gwt.sample.mobilewebapp.MobileWebApp Validating units: Ignored 1 unit with compilation errors in first pass. Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into D:\workspace\eclipse\MobileWebApp\target\MobileWebApp-1.0-SNAPSHOT\mobilewebapp Invoking Linker AppCacheLinker Be sure your landing page's tag declares a manifest: Link succeeded Compilation succeeded -- 152.077s"
"Initializing App Engine server
06/07/2013 20:12:33 com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger 06/07/2013 20:12:33 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed D:\workspace\eclipse\MobileWebApp\target\MobileWebApp-1.0-SNAPSHOT\WEB-INF/appengine-web.xml 06/07/2013 20:12:33 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml INFO: Successfully processed D:\workspace\eclipse\MobileWebApp\target\MobileWebApp-1.0-SNAPSHOT\WEB-INF/web.xml 06/07/2013 20:12:34 com.google.apphosting.utils.jetty.JettyLogger info INFO: jetty-6.1.x 06/07/2013 20:12:36 com.google.apphosting.utils.jetty.JettyLogger info INFO: Started SelectChannelConnector@0.0.0.0:8888 06/07/2013 20:12:36 com.google.appengine.tools.development.DevAppServerImpl start INFO: The server is running at localhost:8888/ 06/07/2013 20:12:36 com.google.appengine.tools.development.DevAppServerImpl start INFO: The admin console is running at localhost:8888/_ah/admin Linking modules Bootstrap link for command-line module 'com.google.gwt.sample.mobilewebapp.MobileWebApp' Linking module 'mobilewebapp' Invoking Linker AppCacheLinker DevMode warning: Clobbering appcache.nocache.manifest to allow debugging. Recompile before deploying your app! Be sure your landing page's tag declares a manifest: 06/07/2013 20:13:38 com.google.apphosting.utils.jetty.AppEngineAuthentication$AppEngineAuthenticator authenticate INFO: Got /MobileWebApp.html but no one was logged in, redirecting."
Pom.xml: https://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/
Thanks ahead.