• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configure Servlet in TOMCAT

 
nivedkumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
------------------
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you forgot to make/modify web.xml for your web application. See the Tomcat example application web.xml file.
Bill
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"nivedkumar",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
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.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic