tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Weibust <eweib...@yahoo.com>
Subject deploy question/problem
Date Thu, 30 Oct 2003 15:12:33 GMT
I am having a problem deploying/installing (I think
these words can be used interchangeably) my war file. 
I am copying my war to the webapps directory of my
Tomcat installation (Apache Tomcat/4.1.27).  When I
try to access my simple servlet I get a "The requested
resource (/quiz_servlet/quizpage.html) is not
available." error message.  My war is named
quiz_servlet.war.  I am also including my web.xml.

Thanks,
Erik

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>Welcome to Tomcat</display-name>
  <description>Here is my quiz servlet.</description>

<servlet>
   <servlet-name>
     quiz
   </servlet-name>
   <servlet-class>
     QuizServlet
   </servlet-class>
   <init-param>
     <param-name>question</param-name>
     <param-value>What is the best
sport?</param-value>
   </init-param>
   <init-param>
     <param-name>answerA</param-name>
     <param-value>baseball</param-value>
   </init-param>
   <init-param>
     <param-name>answerB</param-name>
     <param-value>football</param-value>
   </init-param>
   <init-param>
     <param-name>answerC</param-name>
     <param-value>basketball</param-value>
   </init-param>
   <init-param>
     <param-name>answerD</param-name>
	  <param-value>hockey</param-value>
   </init-param>
   <init-param>
     <param-name>correct</param-name>
     <param-value>A</param-value>
   </init-param>
 </servlet>

<servlet-mapping>
	<servlet-name>quiz</servlet-name>
	<url-pattern>/quizpage.html</url-pattern>
</servlet-mapping>

</web-app>

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message