tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rcastagnoli@katamail.com" <rcastagn...@katamail.com>
Subject Re: deploy question/problem
Date Thu, 30 Oct 2003 15:36:57 GMT
Erik,

send the request of the page directly to TOMCAT.

have you stop and (after 10 seconds...) start tomcat?

Can you unzip the war file of your web application in the webapps directory? It must have
the same structure of other web application.

Riccardo


> Da: Erik Weibust <eweibust@yahoo.com>
> Data: Thu, 30 Oct 2003 07:12:33 -0800 (PST)
> A: tomcat-user@jakarta.apache.org
> Oggetto: deploy question/problem
>
> 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


---------------------------------------------------------------------
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