Monday, August 30, 2010

Re: app engine with hosted mode

Make sure you see a ?gwt.codesvr fragment in the URL you are using. It sounds like you might just be hitting the embedded server--not DevMode. You need that fragment to tell the plugin in your browser to use DevMode.

On Sun, Aug 29, 2010 at 8:42 PM, alexh <alexanderharvey@gmail.com> wrote:
Hi,

I posted a while back about having trouble running App Engine under
hosted mode using the gwt-maven-plugin.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2432606db3635f3d/fbd6a8749c977b0d?lnk=gst&q=app+engine+hosted#fbd6a8749c977b0d

I've been able to find the correct configuration with the plugin to
launch the GAE runtime but I am now finding that "hot deploy" of
changes doesn't work. If I change a GWT compiled class in Eclipse, the
change isn't available when I refresh the browser. I have to perform
essentially a gwt:compile to have the change appear. Anyone have ideas
on what might be the problem?

Here's my plugin configuration in my pom.xml.

                       <plugin>
                               <groupId>org.codehaus.mojo</groupId>
                               <artifactId>gwt-maven-plugin</artifactId>
                               <version>1.3.1.google</version>
                               <executions>
                                       <execution>
                                               <goals>
                                                       <goal>compile</goal>
                                                       <goal>generateAsync</goal>
                                                       <goal>test</goal>
                                               </goals>
                                       </execution>
                               </executions>
                               <configuration>
<!--
                                       <style>DETAILED</style>
                                       <logLevel>DEBUG</logLevel>
 -->
                                       <runTarget>/index</runTarget>
                                       <hostedWebapp>${project.build.directory}/$
{project.build.finalName}</hostedWebapp>
                                       <copyWebapp>true</copyWebapp>

<server>com.google.appengine.tools.development.gwt.AppEngineLauncher</
server>
                                       <extraJvmArgs>-Xmx512m -Dappengine.sdk.root=${gae.home} -
javaagent:${gae.home}/lib/agent/appengine-agent.jar</extraJvmArgs>
                               <gwtVersion>${gwt.version}</gwtVersion>
                               <soyc>false</soyc>
                               </configuration>
                       </plugin>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Chris Conroy
Software Engineer
Google, Atlanta

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment