Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 855237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:02:44+00:00 2026-05-15T08:02:44+00:00

I’m developing a web UI using GWT. While working only with the widgets I

  • 0

I’m developing a web UI using GWT. While working only with the widgets I could debug from Eclipse using the Firefox extension, but now that I’m integrating the UI with other OSGi bundles I cannot use this solution.

For deploying the GWT application I create the .war and convert it to an OSGi bundle using BND. Then I launch the OSGi container with all the bundles using Pax Runner and Pax Web and the application works correctly, but when something fails in the generated javascript code I don’t have any decent output error or debugging facility.

Is there any way to launch the GWT application in “debug mode” from OSGi?

Any other idea that could help in this scenario?

Update: Could it be possible to instantiate com.google.gwt.dev.DevMode or its part with the browser connector from the Activator?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:02:44+00:00Added an answer on May 15, 2026 at 8:02 am

    I’ve finally managed to launch development mode using OSGi, GWT and optionally eclipse. The solution was on the -noserver flag of the GWT dev mode, it’s not aware of the changes in code while the application is running, but it can be used for debugging the compiled code and to receive the exception traces.

    I also managed to run the development shell without eclipse, but if you are not interested on this solution you can directly jump to the eclipse integration section.

    Without Eclipse (only exceptions, no debug)

    You need to know the following information:

    • Where do you have your source ($SRC)
    • Where do you have your GWT libraries ($GWT_PATH), specially gwt-user.jar and gwt-dev.jar.
    • (Optionally) the port from wich your HTTP OSGi server serves the application ($PORT).
    • The startUp url of your application ($URL)
    • The package containing the .gwt.xml file for your application ($PACKAGE).

    Then you need to run:

    java -cp $SRC:$GWT_PATH/gwt-user.jar:$GWT_PATH/gwt-dev.jar \
        com.google.gwt.dev.DevMode -noserver -port $PORT \
        -startupUrl $URL $PACKAGE
    

    E.g.:

    java -cp src/:lib/gwt-2.0.3/gwt-user.jar:lib/gwt-2.0.3/gwt-dev.jar \
        com.google.gwt.dev.DevMode -noserver -port 8080 \
        -startupUrl httplocalgui.html es.warp.samples.httplocalgui
    

    And finally you only need to deploy your application as usual, in my example I do it with pax-runner and pax-web, using the default port 8080.

    With Eclipse

    1. Open the debug configuration for your project
    2. Go to Server tab and uncheck “Run built-in server”
    3. Go to Attributes tab and add “-port 8080” (if 8080 is the port used by your web container). I think that this argument without the built-in server is only used to create the url that the development mode generates to invoke the browser (or that elipse uses to generate an url you can copy and paste in your browser’s address bar).
    4. Deploy your application.
    5. Access it from a browser with the GWT extension installed (and don’t forget to add ?gwt.codesvr=127.0.0.1:9997)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 438k
  • Answers 438k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I would suggest EclipseLink over Hibernate because of some lazy-loading… May 15, 2026 at 4:38 pm
  • Editorial Team
    Editorial Team added an answer There is no need to use the TextChanged_event or the… May 15, 2026 at 4:38 pm
  • Editorial Team
    Editorial Team added an answer In the case of your error, it looks to me… May 15, 2026 at 4:38 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.