File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Configure Servlet in TOMCAT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Configure Servlet in TOMCAT" Watch "Configure Servlet in TOMCAT" New topic

Configure Servlet in TOMCAT


Joined: Oct 13, 2001
Posts: 7
I have created a folder called IOEmail in C:\ and made proper
changes in server.xml. and I put my compiled .class (BasicServlet.class) file in IOEmail\Web-inf\Classes in order for my .class file to be called through browser. But whenever I give URL like "http://localhost:8080/IOEmail/BasicServlet" ,it is
not working, but if I URL like
"http://localhost:8080/IOEmail/servlet/BasicServlet" , it is
working and I don't know why???
Could anybody help me to solve this problem?

Nived Kumar P N
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13035
Sounds like you forgot to make/modify web.xml for your web application. See the Tomcat example application web.xml file.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in again with a new name which meets the requirements.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Configure Servlet in TOMCAT
jQuery in Action, 3rd edition