GWT module needs to be (re)compiled

211 views
Skip to first unread message

strindberg

unread,
Jun 26, 2009, 4:38:05 AM6/26/09
to Google Web Toolkit
I'm having some problems getting Gwt 1.6.4 to run on my Tomcat 5.5,
using the codehouse maven-gwt-plugin 1.1.

I can run my project fine in hosted mode (from Eclipse), but when I
build a war and deploy it (using the maven plugin), and then go to the
web page containing the call to my Gwt module, I get a dialog saying
"GWT module se.Interactive needs to be (re)compiled, please run a
compile or use the Compile/Browse button in hosted mode".

So obviously something goes wrong in the Maven build, but I can't see
anything obvious. I have loooked in the war file and can see all the
expected files there, including the Gwt files.

I realize this might very well be caused my some strange interaction
in the maven-gwt-plugin, but I thought I should ask here as well.

And does anyone have any tips on how I could go about troubleshooting
this? The above message doesn't really give me any chance to see
what's going on. I'm fairly new to Gwt, so any debugging tips you
might have would be welcome.

Markus88

unread,
Jul 1, 2009, 2:48:38 AM7/1/09
to Google Web Toolkit
I've got exactly the same Problem! Help Please...
I'm using Smart-Gwt on a Bea Weblogic Server and Maven build
It works fine with the hosted Mode, but when I start it with the
explorer
it says "GWT module UserProjekt needs to be (re)compiled, please run a

Sam Brodkin

unread,
Jul 7, 2009, 10:58:46 AM7/7/09
to Google Web Toolkit
I had the same problem. I took the error message's advice and ran it
in hosted mode, clicked compile/Browse, then i took the /war directory
(or with maven maybe it's in src/main/webapp for you) and copied it to
the deploy dir of jboss (tomcat). I renamed it war.war and started
the server (put an exploded war on the server. That seemed to do it.
Now to figure out why the codehaus maven plugin isn't producing an
artifact with GWT compiled code...

Sam Brodkin

unread,
Jul 20, 2009, 4:02:38 AM7/20/09
to Google Web Toolkit

Jennifer Vendetti

unread,
Jul 24, 2009, 3:58:39 PM7/24/09
to Google Web Toolkit
I'm trying to upgrade from 1.5.2 to 1.6.4 and have the same issue as
the posts above, but I'm not using Maven at all. When I run in hosted
mode (launching from Eclipse Ganymede), as soon as I click the
"Compile/Browse" button, I get the error message "GWT module needs to
be (re)compiled". I also get this exception in the hosted mode
console:

[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError: null
at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java:
2206)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1035)
at java.io.ObjectOutputStream.defaultWriteFields
(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1347)
at java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1290)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1079)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
302)
at java.util.ArrayList.writeObject(ArrayList.java:569)

etc. (stack trace is very long, but I can provide the whole thing if
necessary).

I read the issue summary, but it's not clear to me how to fix this
issue - is there more detailed documentation available?

Thank you,
Jennifer


On Jul 20, 1:02 am, Sam Brodkin <sambrod...@gmail.com> wrote:
> Fixed.  Summary here:http://code.google.com/p/gwt-maven2-starter-app/issues/detail?id=5&can=1
>
> On Jul 7, 4:58 pm, Sam Brodkin <sambrod...@gmail.com> wrote:
>
> > I had the same problem.  I took the error message's advice and ran it
> > in hosted mode, clicked compile/Browse, then i took the /war directory
> > (or with maven maybe it's in src/main/webapp for you) and copied it to
> > the deploy dir of jboss (tomcat).  I renamed it war.war and started
> > the server (put an exploded war on the server.  That seemed to do it.
> > Now to figure out why the codehaus maven plugin isn't producing an
> > artifact with GWTcompiledcode...
>
> > On Jul 1, 8:48 am, Markus88 <markus_ran...@web.de> wrote:
>
> > > On 26 Jun., 10:38, strindberg <jesper.holmb...@gmail.com> wrote:
>
> > > > I'm having some problems gettingGwt1.6.4 to run on my Tomcat 5.5,
> > > > using the codehouse maven-gwt-plugin 1.1.
>
> > > > I can run my project fine in hosted mode (from Eclipse), but when I
> > > > build a war and deploy it (using the maven plugin), and then go to the
> > > > web page containing the call to myGwtmodule, I get a dialog saying
> > > > "GWTmodulese.Interactiveneedsto be (re)compiled, please run a
> > > > compile or use the Compile/Browse button in hosted mode".
>
> > > > So obviously something goes wrong in the Maven build, but I can't see
> > > > anything obvious. I have loooked in the war file and can see all the
> > > > expected files there, including theGwtfiles.
>
> > > > I realize this might very well be caused my some strange interaction
> > > > in the maven-gwt-plugin, but I thought I should ask here as well.
>
> > > > And does anyone have any tips on how I could go about troubleshooting
> > > > this? The above message doesn't really give me any chance to see
> > > > what's going on. I'm fairly new toGwt, so any debugging tips you
> > > > might have would be welcome.
>
> > > I've got exactly the same Problem! Help Please...
> > > I'm using Smart-Gwton a Bea Weblogic Server and Maven build
> > > It works fine with the hosted Mode, but when I start it with the
> > > explorer
> > > it says "GWTmoduleUserProjektneedsto be (re)compiled, please run a

Isaac Truett

unread,
Jul 24, 2009, 5:13:40 PM7/24/09
to Google-We...@googlegroups.com
Jennifer,

Sounds like you're up against this issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=3510

There's a patch attached to comment #21 that has worked for many
(including myself). You can also upgrade to 1.7.0, which includes the
fix for issue #3510.

Hope that helps.

- Isaac

Jennifer Vendetti

unread,
Jul 24, 2009, 8:32:39 PM7/24/09
to Google Web Toolkit
Hello Isaac,

Many thanks for the pointer to that thread. The patch fixed the issue
in 1.6.4 and I will also upgrade to 1.7.0 as you suggest.

Best,
Jennifer

On Jul 24, 2:13 pm, Isaac Truett <itru...@gmail.com> wrote:
> Jennifer,
>
> Sounds like you'reup against this issue:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3510
>
> There's a patch attached to comment #21 that has worked for many
> (including myself). You can also upgrade to 1.7.0, which includes the
> fix for issue #3510.
>
> Hope that helps.
>
> - Isaac
>
> On Fri, Jul 24, 2009 at 3:58 PM, Jennifer
>
Reply all
Reply to author
Forward
0 new messages