Can't debug in eclipse in development mode with GWT 2.0 RC1

53 views
Skip to first unread message

Youen

unread,
Nov 23, 2009, 4:32:23 AM11/23/09
to Google Web Toolkit
Hi,

I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
when i am in development mode.

I set some breakpoints, I run in eclipse debug mode and I use firefox
3.5, but it seems that the breakpoints are not catch.

Does someone make it work or am I missing someting ?

Regards,

Jason Parekh

unread,
Nov 23, 2009, 10:01:12 AM11/23/09
to google-we...@googlegroups.com
Hi Youen,

Which version of Java are you using?  There was an issue where breakpoints would not catch on JDK 1.6.0_14.

You can check the version being used under: 
- Run > Run configurations 
- Expand Web Application on the side bar 
- Select one of its children, click on the JRE tab 

jason


--

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



Youen

unread,
Nov 23, 2009, 10:33:35 AM11/23/09
to Google Web Toolkit
Hi,

I a using 1.6.0_15.

The result of java -version

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

By the way, I am on mac with snow leopard and the last version
(10.6.2).

Youen


On 23 nov, 16:01, Jason Parekh <jasonpar...@gmail.com> wrote:
> Hi Youen,
>
> Which version of Java are you using?  There was an issue where breakpoints
> would not catch on JDK 1.6.0_14.
>
> You can check the version being used under:
> - Run > Run configurations
> - Expand Web Application on the side bar
> - Select one of its children, click on the JRE tab
>
> jason
>
> On Mon, Nov 23, 2009 at 4:32 AM, Youen <youen.ch...@gmail.com> wrote:
> > Hi,
>
> > I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
> > when i am in development mode.
>
> > I set some breakpoints, I run in eclipse debug mode and I use firefox
> > 3.5, but it seems that the breakpoints are not catch.
>
> > Does someone make it work or am I missing someting ?
>
> > Regards,
>
> > --
>
> > 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<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

Jason Parekh

unread,
Nov 23, 2009, 10:51:14 AM11/23/09
to google-we...@googlegroups.com
Hi Youen,

Could you also make sure the launch configuration is using 1.6.0_15?  It could be the case that your default JDK is _15, but when the launch config was created, it was using _14.

Have breakpoints every work for you in this project?  How about more generally in other projects in Eclipse?

jason

To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.

Youen

unread,
Nov 23, 2009, 11:29:18 AM11/23/09
to Google Web Toolkit
Ok in eclipse it's written that it is the default Mac OS X JDK, so it
should be the _15 version.

I make further tests and :
- Breakpoints work on a project from scrath!
- Breakpoints do not work with my 2 main (big) gwt project.

The main difference with my 2 project is that the main html file is a
Velocity template managed with spring MVC (so there is no main HTML
file in my war folder).


On 23 nov, 16:51, Jason Parekh <jasonpar...@gmail.com> wrote:
> Hi Youen,
>
> Could you also make sure the launch configuration is using 1.6.0_15?  It
> could be the case that your default JDK is _15, but when the launch config
> was created, it was using _14.
>
> Have breakpoints every work for you in this project?  How about more
> generally in other projects in Eclipse?
>
> jason
>
> > <google-web-toolkit%2Bunsu...@googlegroups.com<google-web-toolkit%252Buns...@googlegroups.com>

Youen

unread,
Nov 23, 2009, 11:33:35 AM11/23/09
to Google Web Toolkit
I'll investigate on the problem (if you have any ideas ...i'll take
them).

Julien Ortega

unread,
Nov 24, 2009, 2:27:58 AM11/24/09
to Google Web Toolkit
I suspect a problem between SpringMVC and GWT 2.0 rc1. Within the same
projet, same class path, if I load my app from a static html file it
works but if I load my app with a generated html from freemarker and
springMVC I've got a "[ERROR] [gwtdemo] Unable to find
'gwtdemo.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?".
Looks like the moduleloader is not the same.
Any Idea ?

Miguel Méndez

unread,
Nov 24, 2009, 9:49:21 AM11/24/09
to google-we...@googlegroups.com
There is a known issue with RC1 that might be the cause of this.  Specifically the last one listed in known issue section of http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC.  Even though your app does not use App Engine, the issue is really that a GC pass before the browser load request comes across can invalidate some weak refs.  This has been fixed in the trunk and 2.0 branches.  

--

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.





--
Miguel

Julien Ortega

unread,
Nov 25, 2009, 2:26:36 AM11/25/09
to Google Web Toolkit
In my case, removing all references to spring mvc resolved the
problem. When I go down to the code, the problem is in a method called
nestedLoad.
It calls URL moduleURL = classLoader.getResource(resName);
This one return null in some case because resName is provided without
package classLoader.getResource('foo.gwt.xml') => null ,
classLoader.getResource('com/foo/Test/foo.gwt.xml') => not null Url

I will need to restore the spring config, any idea ? I should try to
compile the last trunk?

On Nov 24, 3:49 pm, Miguel Méndez <mmen...@google.com> wrote:
> There is a known issue with RC1 that might be the cause of this.
>  Specifically the last one listed in known issue section ofhttp://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC.  Even though
> your app does not use App Engine, the issue is really that a GC pass before
> the browser load request comes across can invalidate some weak refs.  This
> has been fixed in the trunk and 2.0 branches.
>
>
>
>
>
> On Tue, Nov 24, 2009 at 2:27 AM, Julien Ortega <dun7...@gmail.com> wrote:
> > I suspect a problem between SpringMVC and GWT 2.0 rc1. Within the same
> > projet, same class path, if I load my app from a static html file it
> > works but if I load my app with a generated html from freemarker and
> > springMVC I've got a "[ERROR] [gwtdemo] Unable to find
> > 'gwtdemo.gwt.xml' on your classpath; could be a typo, or maybe you
> > forgot to include a classpath entry for source?".
> > Looks like the moduleloader is not the same.
> > Any Idea ?
>
> > On Nov 23, 5:29 pm, Youen <youen.ch...@gmail.com> wrote:
> > > The main difference with my  2 project is that the main html file is a
> > > Velocity template managed with spring MVC (so there is no main HTML
> > > file in my war folder).
>
> > --
>
> > 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<google-web-toolkit%2Bunsubs cr...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages