NetBeans / hosted mode without gwt4nb

23 views
Skip to first unread message

nogridbag

unread,
Oct 13, 2008, 7:28:09 PM10/13/08
to Google Web Toolkit
I'd like to use NetBeans for GWT development without the GWT plugin.
So I simply used applicationCreator and then I created a new "NetBeans
application from existing sources". It works fine if I use the
MyProject-comile.cmd and MyProject-shell.cmd scripts that
applicationCreator creates. However, I'd like to setup NetBeans so
that when I hit run, it opens the hosted mode browser like eclipse
does with GWT's projectCreator.

So, I created a new run configuration within NetBeans with the
following settings:

Main Class: com.google.gwt.dev.GWTShell
Arguments: -out C:\MyProject\www com.blah.MyProject/MyProject.html

When I run the application, the hosted mode browser pops up but I
receive the following error dialog:
"Failed to load module com.blah.MyProject"

And the log shows the following:
[TRACE] Finding entry point classes
[ERROR] Unable to find type com.blah.client.MyProject'
[ERROR] Hint: Check that the type name 'com.blah.client.MyProject' is
really what you meant
[ERROR] Hint: Check that your classpath includes all required source
roots
[ERROR] Failure to load module 'com.blah.MyProject'

It seems to be some sort of classpath issue, but within the NetBeans
project properties the "src" folder is already in the "Source Package
Folders" list. Any ideas?

Thanks!

P.S. The reason why I don't want to use the plugin is because it
strays away from the default GWT conventions. Is there any reason why
the GWT devs can't add support for NB in the projectCreator utility?


Fernando Paz

unread,
Oct 13, 2008, 7:43:17 PM10/13/08
to Google-We...@googlegroups.com
Hello.

Not only the src must to have in the path, you need to be sure thta the Module.gwt.xml has the appropiatte configuration, some like this:

<entry-point class="ec.com.mycompany.modulos.propuesta.detalle.client.Form"/>

luck!

nogridbag

unread,
Oct 13, 2008, 8:23:29 PM10/13/08
to Google Web Toolkit
Hi, thanks. The module configuration file (and more specifically the
app entry-point) was created by the applicationCreator. It works fine
with the MyProject-shell.cmd and MyProject-compile.cmd scripts. It
must be some sort of NetBeans classpath option ?

On Oct 13, 7:43 pm, "Fernando Paz" <paz.ferna...@gmail.com> wrote:
> Hello.
>
> Not only the src must to have in the path, you need to be sure thta the
> Module.gwt.xml has the appropiatte configuration, some like this:
>
> <entry-point
> class="ec.com.mycompany.modulos.propuesta.detalle.client.Form"/>
>
> luck!
>
Reply all
Reply to author
Forward
0 new messages