Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Servlet Problem 1

Status
Not open for further replies.

GiffordS

Programmer
Joined
May 31, 2001
Messages
194
Location
CA
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.
 
You were exactly right, Dian. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top