• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 – Not Found  RSS feed

 
Adhikari Prasanna
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The output on browser is: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

After compiling DemoServlet.java using: It generates

And in command prompt when I run it gives the message:



I have the Environment Variable(System) as:
 
Rob Spoor
Sheriff
Posts: 20943
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

You can't run servlets from the command line. You need to put them in a WAR, and have a mapping in that WAR's web.xml file. Then you can deploy the WAR to Tomcat and open a web browser to access the servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!