GWT Designer 2.2 error with gwt-maven project

295 views
Skip to first unread message

skalimer0

unread,
Feb 17, 2011, 1:33:04 AM2/17/11
to google-we...@googlegroups.com
GWT Designer 2.2 don't work with a gwt-maven project.

I have this error for all file opening :

WindowBuilder internal error

java.lang.NullPointerException at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClassLoader(HostedModeSupport.java:184) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoaders(HostedModeSupport.java:92) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.<init>(HostedModeSupport.java:62) at com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(HostedModeSupportFactory.java:22) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedModeSupport(GwtState.java:1195) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(GwtState.java:243) at com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(GwtState.java:219) at com.google.gdt.eclipse.designer.parser.ParseFactory.getClassLoader(ParseFactory.java:390) at org.eclipse.wb.internal.core.parser.AbstractParseFactory.initializeClassLoader(AbstractParseFactory.java:732) at com.google.gdt.eclipse.designer.parser.ParseFactory.getRootContext(ParseFactory.java:92)
...

Anyone have solve this error ?

thanks.

Christoph

unread,
Feb 17, 2011, 9:24:35 AM2/17/11
to Google Web Toolkit
Hello,

I have same issue!

a gwt-maven project with gwt 2.2 and the designer.

But I don't have any solution for this.

Christoph
> com.google.gdt.eclipse.designer.parser.ParseFactory.getRootContext(ParseFac tory.java:92)

Eric Clayberg

unread,
Feb 17, 2011, 10:14:03 AM2/17/11
to Google Web Toolkit
Are you using the gwt-maven-plugin? If so, what version?

Make sure that you are using a version that is compatible with GWT 2.2
(and not 2.1).

-Eric
Message has been deleted

skalimer0

unread,
Feb 18, 2011, 5:15:02 AM2/18/11
to google-we...@googlegroups.com
i use version 2.1.0-1 the last one... for now.

I have a response from gwt-maven-plugin team :

The new release (2.2.0) will mostly only upgrade plugin dependencies, so don't expect a fix.

From my understanding of the stacktrace, GWT Designer don't support using the M2E Classpath container. There's nothing we can do to fix this.

Philippe Beaudoin

unread,
Feb 18, 2011, 1:19:07 PM2/18/11
to google-we...@googlegroups.com
gwt-maven-plugin version 2.1.0 uses gwt-dev 2.1 automatically, which can break quite a few things. I have recompiled the plugin so that it uses gwt-dev 2.2. AFAIK the official one has not yet been released but in the meantime you can grab it from GWTP's maven repo. Info there:

Thomas Broyer

unread,
Feb 18, 2011, 6:38:53 PM2/18/11
to google-we...@googlegroups.com


On Friday, February 18, 2011 7:19:07 PM UTC+1, Philippe Beaudoin wrote:
gwt-maven-plugin version 2.1.0 uses gwt-dev 2.1 automatically, which can break quite a few things.

gwt-maven-plugin:2.1.0-1 has a dependency on com.google.gwt:gwt-dev:2.1.0, but you can override it to make it use the version you want/need (and this is the "official" way of doing things): http://olamy.blogspot.com/2010/12/using-gwt-sdk-211-with-gwt-maven-plugin.html
No need to recompile the plugin.

Philippe Beaudoin

unread,
Feb 18, 2011, 7:58:20 PM2/18/11
to google-we...@googlegroups.com
Might be the official way of doing it, but caused problems for me in Eclipse with m2eclipse, and I've seen others report the same. Anyway, as they say, YMMV. :)

har_shan

unread,
Feb 19, 2011, 7:44:02 AM2/19/11
to Google Web Toolkit
Hi,

The same error still comes for me in eclipse for gwt-maven-plugin
2.2.0 (as per temp suggestion above) and even when it's plugin
dependency is updated to use GWT 2.2.0.
This is my relevant POM section:

<groupId>org.codehaus.mojo</groupId>
<!-- FIXME Temporary solution as suggested by
http://code.google.com/p/gwt-platform/wiki/UsingGwtpWithMaven?ts=1298053129&updated=UsingGwtpWithMaven#Using_gwt-maven-plugin_with_GWT_2.2_%28temporary%29
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<!-- <version>2.1.0-1</version> -->
<version>2.2.0</version>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
...............
...............

and property:

<gwt.version>2.2.0</gwt.version>

m2eclipse seemed to have picked up 2.2.0 version of plugin correctly,
as i can see from Maven console

Am i missing anything, please point out..

-Hari
> is the "official" way of doing things):http://olamy.blogspot.com/2010/12/using-gwt-sdk-211-with-gwt-maven-pl...

Philippe Beaudoin

unread,
Feb 19, 2011, 12:32:59 PM2/19/11
to google-we...@googlegroups.com
The only difference with mine seems to be that I don't include gwt-dev in the dependencies. Including it did cause problem in m2eclipse so you may want to take it out. (It's grabbed automatically by gwt-maven-plugin.)

har_shan

unread,
Feb 20, 2011, 11:38:11 AM2/20/11
to Google Web Toolkit
I updated my POM per your suggestion but no luck

<plugin>
<!-- FIXME Temporary solution as suggested by
http://code.google.com/p/gwt-platform/wiki/UsingGwtpWithMaven?ts=1298053129&updated=UsingGwtpWithMaven#Using_gwt-maven-plugin_with_GWT_2.2_%28temporary%29
-->
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<!-- <version>2.1.0-1</version> -->
<version>2.2.0</version>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwt.version}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwt.version}</version>
</dependency>
</dependencies>
<configuration>
<appEngineVersion>${gae.version}</appEngineVersion>
<appEngineHome>${gae.home}</appEngineHome>
...........

I also verified that i don't have dependency on gwt-dev in normal
<dependencies> section.
And to be safe, i did a Right click -> Maven -> Update dependencies
once again to be sure that dependencies are resolved again.
Any other pointer?
Anyways thanks much for your reply..

-Hari

On Feb 19, 10:32 pm, Philippe Beaudoin <philippe.beaud...@gmail.com>
wrote:

Philippe Beaudoin

unread,
Feb 20, 2011, 1:51:17 PM2/20/11
to google-we...@googlegroups.com
Maybe try deleting all the releted dependencies from your local .m2 repo? In my case I deleted gwt-dev 2.1 and verified that it was not re-downloaded. Do the same with gin et al.

Cheers,

   Philippe

har_shan

unread,
Feb 21, 2011, 12:31:03 PM2/21/11
to Google Web Toolkit
I deleted gwt-dev directory altogether in m2 local repo but still the
error persists.

I also tried setting up new eclipse workspace and imported the project
into it as maven project and noticed gwt dev getting downloaded (may
be downloaded internally by gwt-maven-plugin as you said earlier?) and
again the error comes up even after deleting the gwt dev directory
again.

btw, is this a bug in GPE or GWT maven plugin (if so is it logged?)
and would be happy to know when we can expect a fix for this?

as a temp workaround, am creating ui templates/owner java code in
separate (non maven) project and copying it over to my gwt maven
project, but its annoying as you can see.

anyways thanks much again for your suggestions,
Hari

On Feb 20, 11:51 pm, Philippe Beaudoin <philippe.beaud...@gmail.com>
wrote:

David Chandler

unread,
Feb 23, 2011, 11:31:28 AM2/23/11
to google-we...@googlegroups.com, har_shan
We're looking into this. I can reproduce the error with a POM specifying GWT 2.2.0 and gwt-maven-plugin 2.2.0.

/dmc


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




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

David Chandler

unread,
Feb 23, 2011, 3:24:44 PM2/23/11
to Hari shankar, google-we...@googlegroups.com
As a temporary workaround until the next plugin release, manually copy gwt-dev.jar (without version #) into the folder in your local Maven repository containing gwt-user-2.2.0.jar. Example:

> cd ~/.m2/repository/com/google/gwt
> cp gwt-dev/2.2.0/gwt-dev-2.2.0.jar gwt-user/2.2.0/gwt-dev.jar

It's a total hack, but will resolve the issue until the next plugin ships.

/dmc

On Wed, Feb 23, 2011 at 2:04 PM, Hari shankar <hars...@gmail.com> wrote:
Thanks much David for the update!

JC

unread,
Feb 24, 2011, 3:44:41 AM2/24/11
to Google Web Toolkit
Hi.

I did try your solution but maven download again the gwt-
dev-2.2.0.jar... Even if I did put the directory in readonly.

I still don't see the designer :-(



Really annoying.

On 23 fév, 21:24, David Chandler <drfibona...@google.com> wrote:
> As a temporary workaround until the next plugin release, manually copy
> gwt-dev.jar (without version #) into the folder in your local Maven
> repository containing gwt-user-2.2.0.jar. Example:
>
> > cd ~/.m2/repository/com/google/gwt
> > cp gwt-dev/2.2.0/gwt-dev-2.2.0.jar gwt-user/2.2.0/gwt-dev.jar
>
> It's a total hack, but will resolve the issue until the next plugin ships.
>
> /dmc
>
>
>
> On Wed, Feb 23, 2011 at 2:04 PM, Hari shankar <harsha...@gmail.com> wrote:
> > Thanks much David for the update!
>
> > On Wed, Feb 23, 2011 at 10:01 PM, David Chandler <drfibona...@google.com>wrote:
>
> >> We're looking into this. I can reproduce the error with a POM specifying
> >> GWT 2.2.0 and gwt-maven-plugin 2.2.0.
>
> >> /dmc
>

JC

unread,
Feb 24, 2011, 6:00:41 AM2/24/11
to Google Web Toolkit
I forgot, I cannot choose the entry point in the entry point in the
"Web Toolkit-> Entry Point Modules".

But my application works and I can debug it.

May the Force be with us...

Eric Clayberg

unread,
Feb 24, 2011, 8:22:16 AM2/24/11
to Google Web Toolkit
We have had several users report that placing the gwt-dev.jar (using
its original name) in the same directory as gwt-user.jar makes it
work.

In the latest GWT Designer build, we have also added a work around
that should allow it to find the renamed and relocated version of the
gwt-dev.jar in Maven.

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

JC

unread,
Feb 24, 2011, 4:38:06 PM2/24/11
to Google Web Toolkit
Thanks Eric.

However if you could give me a zip with everything for eclipse (for
which version for all) to work with a sample that make gwt designer
work, or a good pom.xml or whatever.

I did try the solution about gwt-user and it didn't work. However I
recognize, that I'm just beginning with spring-gwt-maven. I did try
several tutorial, but with the newest version, I fell quite crappy.

Pardon me to be a newbie :-}


(Sounds like a leecher?)
Reply all
Reply to author
Forward
0 new messages