GWT module 'gwtclient' may need to be (re)compiled

1,970 views
Skip to first unread message

Laura Bickle

unread,
Sep 19, 2011, 7:32:10 PM9/19/11
to google-we...@googlegroups.com
My app works in development mode, so it was time to run it in production.  This webpage:

http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#DevGuideDeployingWebServer

made it sound like all I needed to do was wrap my files into a war file and drop the war file in the deploy directory of my server.

So I:

cd $MY_PROJECT/war
jar -cvf $MY_PROJECT.war *
cp $MY_PROJECT.war jboss-5.1.0.GA/server/web/deploy

I got this in my server.log:

2011-09-19 22:13:19,796 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment]  (HDScanner) deploy, ctxPath=/$MY_PROJECT

but when I go to $MY_WEBSITE/$MY_PROJECT, all I get is an alert saying:

GWT module 'gwtclient' may need to be (re)compiled

I googled it and the most common problems were
- clear your cache (which I've done)
- fix your pom.xml (I didn't use maven.)

What am I doing wrong?  Any help is appreciated.
Thanks,
Laura

Sébastien Tromp

unread,
Sep 20, 2011, 3:50:37 AM9/20/11
to google-we...@googlegroups.com
Do you use Google Plugin for Eclipse?
I sometimes come across this message, and simply doing a GWT compile
fixes the problem.

Regards,
--
Sébastien Tromp

> --
> 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-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

Alexandre Dupriez

unread,
Sep 20, 2011, 4:00:27 AM9/20/11
to Google Web Toolkit
Did you perform a GWT compilation (not dev mode run)?

Alexander Orlov

unread,
Sep 20, 2011, 4:09:07 AM9/20/11
to google-we...@googlegroups.com
It's a common problem when your compiled GWT code is outdated. Basically your deployed app.war doesn't really contain up-to-date GWT code. Unzip the war file an look at the GWT output time stamps!

Sudhakar Abraham

unread,
Sep 20, 2011, 8:21:02 AM9/20/11
to Google Web Toolkit
I faced a similar problem. This is how I solved. Right click on
project configure your gwt sdk properly(Project-->Google-->web toolkit
settings). And check app engine settings. Compile your project to
check new compiled files in war directory.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 20, 4:32 am, Laura Bickle <bickle.la...@gmail.com> wrote:
> My app works in development mode, so it was time to run it in production.
> This webpage:
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#D...

AThinerCoin

unread,
Sep 21, 2011, 7:22:09 PM9/21/11
to Google Web Toolkit
Hi. Thank you for all your help. I've gotten the error message to
disappear.

I recompiled, according to the instructions here:
- http://code.google.com/eclipse/docs/gwt_compile.html

I also tried updating my app engine and gwt versions. Neither fixed
my problem directly, but they may have helped.

Unfortunately, my app still isn't working in production mode. It
shows my background css and loads these files:
- $MY_PROJECT.html
- $MY_PROJECT.css
- $MY_PROJECT.nocache.js
- clean.css
- graphs.xml (a file I request in my onModuleLoad() method)

and then nothing happens. My app is working in development mode, so
I'll need to debug it in production mode.

My questions based on googling:
- How do I set the -style compiler attribute in the eclipse plugin?
- How do I create alert messages or something similar?
- Is there a way to verify that I'm not using any of these? I don't
think I am, but I also think my code should work and it doesn't. So I
must be thinking something wrong.
- http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsCompatibility.html

Thanks again for your help!
Reply all
Reply to author
Forward
0 new messages