Wednesday, September 28, 2011

Devmode not working

I'm trying to get devmode working using Tomcat rather than the
embedded Jetty server. I've followed the instructions, and everything
seems to be correct, but it doesn't work.

Using "ant war' I can compile the whole project, copy the war to
Tomcat, then

http://localhost:8080/PayrollApplication/PayrollApplication.html

starts the app and it all works exactly as it should as a deployed
app.

In the devmode Ant target in build.xml I put this:

<arg line="-noserver"/>
<arg value="-startupUrl"/>
<arg value="http://localhost:8080/PayrollApplication/
PayrollApplication.html
"/>

When I do 'ant devmode' I get a few startup messages:

Buildfile: build.xml

libs:

javac:

devmode:
[java] Initializing GWT Developer Plugin
[java] gecko=6.0.2, firefox=6.0.2, abi=Linux_x86-gcc3, built
for ff60
[java] Connect(url=http://localhost:8080/PayrollApplication/
PayrollApplication.html?gwt.codesvr=127.0.0.1:9997
, sessionKey=H-.;AU.l
\O4K]baV, address=127.0.0.1:9997, module=payrollapplication,
hostedHtmlVersion=2.1
[java] Initiating GWT Development Mode connection to host
127.0.0.1, port 9997
[java] Connect(url=http://localhost:8080/PayrollApplication/
PayrollApplication.html?gwt.codesvr=127.0.0.1:9997
, sessionKey="v7M,W-
=n(Yq8Y6z, address=127.0.0.1:9997, module=payrollapplication,
hostedHtmlVersion=2.1

the demode console shows, and I'm able to start the default browser,
and the app runs, so it all looks fine.

I then made one change to the source, and refreshed the browser, but
nothing changed, so I closed the browser, closed the devmode console,
and did another 'ant devmode'. This found the changed source file, and
compiled it:

Buildfile: build.xml

libs:

javac:
[javac] Compiling 1 source file to /home/bryanb/gwt/apps/payroll/
PayrollApplication/war/WEB-INF/classes

devmode:
[java] Initializing GWT Developer Plugin
[java] gecko=6.0.2, firefox=6.0.2, abi=Linux_x86-gcc3, built
for ff60
[java] Connect(url=http://localhost:8080/PayrollApplication/
PayrollApplication.html?gwt.codesvr=127.0.0.1:9997
,
sessionKey=U_Wyr`)o&RLubMgK, address=127.0.0.1:9997,
module=payrollapplication, hostedHtmlVersion=2.1
[java] Initiating GWT Development Mode connection to host
127.0.0.1, port 9997

but once the app loaded, it was still running the old code. No matter
what I try, the browser ALWAYS runs the code in the Tomcat deployment
directory, and it's as though the browser plugin isn't getting to the
"local" code rather than the 'deployed" code..

Any hints as to where I should look ?

Thanks.

--
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