File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes GWT works but Jetty doesn't Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT works but Jetty doesn Watch "GWT works but Jetty doesn New topic

GWT works but Jetty doesn't

Clive vanHiltenn

Joined: Feb 03, 2010
Posts: 6
Hello all. I am running Jetty 7.2.0 on Ubuntu and have a webapp which makes uses of Jetty's ContinuationFilter and ProxyServlet. Part of my webapp (built using GWT - Google Web Toolkit v2.2.0) enables access to a Bugzilla installation running on Apache (on the localhost). Accessing Bugzilla through http://localhost/bugzilla runs just fine, i.e. Apache and Bugzilla are playing nicely together. Running the webapp in GWT's development mode works just fine.

However, the link to Bugzilla fails with a 404 not found error when I try and access it through my webapp at http://localhost:8080/dash ('dash' is the name of the webapp folder); so there must be some problem with my Jetty setup. The link to Bugzilla is contained in this fragment of GWT code:

Bugzilla's welcome page is index.cgi, and this is found in /var/www/bugzilla on my Ubuntu machine. As I say, accessing http://localhost/bugzilla returns this welcome page and I can use Bugzilla just fine if I go direct rather than via my webapp.

Apache's log file indicates that requests from Jetty don't make it to Apache.

The Jetty request log confirms that the URL requested is not found:

This leads me to believe that Jetty fails to proxy the request to localhost.

I would be really grateful if anyone can help on this. I've spent days on it and posted to both the GWT group on Google groups and on, but no success yet. Thank you.

My webapp's web.xml reads as follows, are there any other relevant Jetty config files I need to dig into?

subject: GWT works but Jetty doesn't