This post was originally "unable to debug gwt application made by gwt-maven-plugin 2.4.0"
I have created a GWT maven application using gwt-maven-plugin 2.4.0 (working in eclipse helios)
mvn archetype:generate
-DarchetypeRepository=repo1.maven.org
-DarchetypeGroupId=org.codehaus.mojo
-DarchetypeArtifactId=gwt-maven-plugin
-DarchetypeVersion=2.4.0
i have fixed all the errors except for that execution compilation in pom.xml
now i can run the application using the gwt:run goal, the GWT development mode window opens and i can open the browser and everything works. but i am unable to debug the application i put brake points both on the client code and the server code but nothing happens. the code works but doesn't stop.
here is the url: http://127.0.0.1:8888/gwtmodule.html?gwt.codesvr=127.0.0.1:9997 (i saw in some other post it is important to have the "codesvr")
UPDATE: after closing everything i have find out that java crashes when i try to debug the application and i had not closed the window, and that is why the address was taken.
but why would it crash?. here is another message from the Console:
C:\Program Files\Java\jdk1.6.0_24\jre\bin\java -Xmx512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y -classpath C:\...\spring-gwt-integration\src\main\java;C:\...\spring-gwt-integration\target\generated-sources\gwt;C:\...\spring-gwt-integration\src\main\resources;C:\...\spring-gwt-integration\target\spring-gwt-integration-1.0-SNAPSHOT\WEB-INF\classes;C:\Users\Gleeb\.m2\repository\com\google\gwt\gwt-servlet\2.4.0\gwt-servlet-2.4.0.jar;C:\Users\Gleeb\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar;C:\Users\Gleeb\.m2\repository\com\google\gwt\gwt-user\2.4.0\gwt-user-2.4.0.jar;C:\Users\Gleeb\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;C:\Users\Gleeb\.m2\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA-sources.jar;C:\Users\Gleeb\.m2\repository\com\google\gwt\gwt-dev\2.4.0\gwt-dev-2.4.0.jar com.google.gwt.dev.DevMode -war C:\...\spring-gwt-integration\target\spring-gwt-integration-1.0-SNAPSHOT -gen C:\...\spring-gwt-integration\target\.generated -logLevel INFO -port 8888 -startupUrl gwtmodule.html org.krams.tutorial.gwtmodule
[ERROR] ]] failed with status -1073740791
I did get:debug -e and i see that i get the exception:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:debug (default-cli) on project spring-gwt-integration: Command [[
many thanks.