embedded tomcat in debug mode

571 views
Skip to first unread message

noootsab

unread,
Jan 27, 2009, 11:47:50 AM1/27/09
to gwt-maven
Hi All,

I'm getting started using GWT and I use to work with maven but there
is something I can't get rid of.

I'm trying to use the debug goal to debug my app in the embedded
tomcat, then I attach an eclipse debugger on the specified port (8000
by default). That works fine, but while debugging I can't modify/save
the sources and getting those recompiled in the running tomcat. This
is warned by eclipse (when saving a class where a message *string* has
been modified -> nothing critical) :

[warn]
Some code changes cannot be hot swapped into a running virtual
machine, such as changing medthod names or introducing errors in code.

The current target virtual machine [Java HotSpot(TM) Client VM
[localhost:8000]] from launch [war debug mvn] was unable to replace
the running code with the code in the workspace.

It is safe to continue running the application, but you may notice
discrepancies when debugging this application.

Reason:
Hot code replace failed - Class modifiers change no implemented
[/warn]

Does someone have an idea ? If the embedded tomcat is launched with
jpda, then this error shouldn't happen anymore ?

Thanks a lot.

Charlie Collins

unread,
Jan 29, 2009, 5:54:00 AM1/29/09
to gwt-maven
The embedded Tomcat is launched, via GWT-Maven, using JPDA. I don't
know why it's not letting you replace stuff, if it should, but
honestly I haven't tried that. I generally can make changes in hosted
mode using the embedded server just fine, but haven't try to do that
while debugging.

andy petrella

unread,
Jan 29, 2009, 5:58:07 AM1/29/09
to gwt-...@googlegroups.com
In hosted mode ? (sorry : newbie) you mean while using the 'gwt' goal ?

For now, I can change stuff when 'debug' goal is used and attaching my eclipse if we I change something in gwt ui classes I use the plugin 'compile' goal in another shell

andy
Reply all
Reply to author
Forward
0 new messages