This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi all, I have the servlets in the examples folder that comes with tomcat running fine. I have created a new directory under webapps called site1. I have added a WEB-INF directory and a directory called classes. I have added a very simple servlet called HelloWorld to site1/WEB-INF/classes. After restarting tomcat i goto the following url http://localhost:8080/site1/servlet/HelloWorld. It generates a 404 error. However if i put the same servlet in the examples/WEB-INF/classes folder and access it using its URL it works fine. I think it may have something to do with the web.xml file. Do I have to update that with the details of my servlet and if so how? Regards david