This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See web container like Tomcat to run a web component ...
Firstly i get compilation error due to some HttpServlet related classes. Then i add the classpath variable servlet-api.jar form the tomcat\common\lib\ and the program compiles successfully. But now i get 404 not found error from the browser. I make these put Hello.class file into webapps\ex1\WEB-INF\classes\ and make a web.xml file and put it webapps\ex1\WEB-INF\ and from the browser http://localhost:8080/ex1/Hello
It get me the 404 file not found error. I need to dig it why this happens. Any advice will be appreciated.
posted 10 years ago
My problem was solved. It's wordpad related problem. I edit my web.xml file using wordpad and its add some extra character which give me these trouble.