Debug GWT Application with Tomcat (Eclipse)

11,192

It's really easy, just follow these steps:

  1. Get google plugin for eclipse
  2. The in eclipse, right click on your project and choose Debug as -> Web Application (running on external server)
  3. Enter URL of your web app on tomcat (like http://localhost:8080/YourApp/YourApp.html and eclipse will give you new one - it will add stuff like ?gwt.codesvr=127.0.0.1:9997

And that's it. Just set up your breakpoints and debug!

Share:
11,192

Related videos on Youtube

Ashfak Balooch
Author by

Ashfak Balooch

Currently Working on MicroServices, Activiti, ODM, Spring Boot, Hibernate.

Updated on June 04, 2022

Comments

  • Ashfak Balooch
    Ashfak Balooch almost 2 years

    I have tried to deploy the application with tomcat and I am succeeded. Now instead of internal GWT server I need to set tomcat as default inbuilt server and debug my application with it. The problem here I am facing is I am able to upload file into hosted mode successfully but when I tried to deploy my application to tomcat it gives me error to Struts interceptor.

    ERROR ParametersInterceptor.setParameters():242 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'fileUploadContentType' on 'class com.example.server.actions.FileUploadAction: Error setting expression 'fileUploadContentType' with value '[Ljava.lang.String;@12569b8'
    ERROR ParametersInterceptor.setParameters():242 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'fileUploadFileName' on 'class com.example.server.actions.FileUploadAction: Error setting expression 'fileUploadFileName' with value '[Ljava.lang.String;@13fb1ab'
    

    I request you suggest me the solution to this issue or redirect me on how to debug with tomcat in eclipse (GWT).

    Can anybody redirect me on this issue...

    Any help is much appreciated.

    Thanking you,

    Regards

    • cupakob
      cupakob about 13 years
      Are you using the eclipse plugin?
  • Ashfak Balooch
    Ashfak Balooch about 13 years
    Thankx for the answer... But i dont have an option like Debug as an external server... ! :(
  • Xorty
    Xorty about 13 years
    You will have once you install google plugin and restart eclipse, I believe