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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Servlets using web.xml

Status
Not open for further replies.

AR1982

MIS
Jun 16, 2003
9
0
0
US
I am running Tomcat 4.0.6 and J2SE 1.4.1.03. When try to run my servlets from the name I have mapped to it from the descriptor it will not run. It will only run when I put the full name of the class into the URL. What is causing this problem??
My file directory is - C:\Program Files\ApacheTomcat4.0\webapps\myApp. In this directory I have an image folder, jsp folder, WEB-INF and servlet folder. In the WEB-INF directory is my web.xml file and another folder called classes which contains my Java class files. The other folders are empty in the myApp directory. The text in my WEB-INF file is

<?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?>
<!DOCTYPE web-app (View Source for full doctype...)>
<web-app>
<servlet>
<servlet-name>Testing</servlet-name>
<servlet-class>TestingServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>Primitive</servlet-name>
<servlet-class>PrimitiveServlet</servlet-class>
</servlet>
</web-app>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top