I'm just beginning to delve into servlets and I'm having a bit of a issue. I'm using Tomcat 5.5 and have just created and compiled my first servlet... Bar.class. I began the Bar.java file with
package you.foo
So once the servlet was compiled I created a classes file in my web-inf folder inside webapps, and inside classes I created a folder named you, and within you I created a folder named foo. I then placed my Bar.class file inside the foo folder.
So now I type localhost:8080/servlet/you.foo.Bar but instead of getting my servlet I get a 404 page saying that servlet/you.foo.Bar is not available. The server itself is up and running and working fine, so it's not a server issue. I guess what I'm wondering is if I have either improperly placed the servlet, or if perhaps there is something else I need to do on Tomcat to make it see the file.
package you.foo
So once the servlet was compiled I created a classes file in my web-inf folder inside webapps, and inside classes I created a folder named you, and within you I created a folder named foo. I then placed my Bar.class file inside the foo folder.
So now I type localhost:8080/servlet/you.foo.Bar but instead of getting my servlet I get a 404 page saying that servlet/you.foo.Bar is not available. The server itself is up and running and working fine, so it's not a server issue. I guess what I'm wondering is if I have either improperly placed the servlet, or if perhaps there is something else I need to do on Tomcat to make it see the file.