Dropwizard 0.8 and Jetty fail return 404 resources

I am trying to connect dropwizard 0.8 application. *, and I used a welcome example for beginners.

The code remains intact and the application usually starts.

Although, when I try to access the path specified in the GET hello world request, the browser returns a:

HTTP ERROR 404 Problem accessing /hello-world. Reason: Not Found 

This is strange because application logs say differently and return 200 for this request:

 0:0:0:0:0:0:0:1 - - [15/Sep/2015:07:33:58 +0000] "GET /hello-world HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36" 0 

I have nothing to lose in terms of configuration, otherwise? I work under OSX and Google Chrome.

Adding More Information I tried two different hello-world examples and both fail. Upstairs with spring boot as well as akka-http I have no problem.

+6
source share
1 answer

I had the same problem

When the server starts, it says: "MutableServletContextHandler @ 4b2a30d {/ application, null, AVAILABLE}"

so try / application / hello-world,

It worked for me. (Credit to my friend who helped me :))

http://tips.tutorialhorizon.com/2015/10/03/dropwizard-0-8-and-jetty-fail-return-404-on-resources/

+6
source

All Articles