Reputation: 13515
I installed Jetty and I run it with ./jetty.sh start
, and it is running:
a@a:~/java/jetty/bin$ ./jetty.sh start
Starting Jetty: Already Running!
a@a:~/java/jetty/bin$
But when I go to localhost:8080
, I see
Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are:
Powered by Jetty:// Java Web Server
What am I doing wrong?
Upvotes: 0
Views: 3208
Reputation: 2847
Jetty is probably running fine - the 404 is coming from the server. You probably don't have a default web page set to respond to a root request (where something like index.html would be).
Take a look at this: Jetty - Default page for root path
* EDIT 2013-12-22T16:25Z *
If you make changes to your application you'll have to release your war file & bounce the Jetty process unless you've got the Jetty deployment set up to automatically refresh the application.
Take a look at this: Auto-Reloading WAR in Jetty standalone
Upvotes: 1