Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 27664 invoked from network); 14 Nov 2000 10:51:02 -0000 Received: from email.easynet.fr (HELO zmail6.easynet.fr) (195.114.64.207) by locus.apache.org with SMTP; 14 Nov 2000 10:51:02 -0000 Received: (qmail 75535 invoked from network); 14 Nov 2000 10:50:50 -0000 Received: from mailgate1.easynet.fr (192.168.1.2) by mailserver.easynet.fr with QMQP; 14 Nov 2000 10:50:50 -0000 Received: from adsl-rdo-1-65.pops.easynet.fr (HELO domi) (212.11.38.65) by mrelay1.easynet.fr with SMTP; 14 Nov 2000 10:50:49 -0000 Message-ID: <008601c04e29$a4af9550$0c19e48c@easynet.fr> From: "Dominique BATARD" To: References: <005301c04e05$e76edfa0$2100a8c0@silicomp.com.sg> Subject: Re: servlets problem is still there Date: Tue, 14 Nov 2000 11:57:12 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0083_01C04E32.060472A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N C'est un message de format MIME en plusieurs parties. ------=_NextPart_000_0083_01C04E32.060472A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Did you try http://localhost:8004/servlet/hi ? Dom ----- Original Message -----=20 From: Rasika=20 To: tomcat-user@jakarta.apache.org=20 Sent: Tuesday, November 14, 2000 7:41 AM Subject: servlets problem is still there Hello, I have installed TOMCAT with Apache. I followed your user guide and = then tomcat faqs to install tomcat. Now I am able to run .jsp files using both tomcat as well as Apache. I = can also run sample servlet provided alongwith examples. But I cannot = run my own servlet. I have stored itin webapps/root/web-inf/classes directory.=20 I still don't understand which files need to be configured in order to = run my servlets? =20 I have added following block to web.xml file hi hi hi /hi =20 where "hi" is the name of my servlet file. But when I try to run it = through browser giving command http://localhost:8040//hi where 8040 is = apache port(which I have changed ) it gives me 404 error. =20 Can you please help me in configuring files so as to run my own = servlets? =20 Thanks, Rasikaj ------=_NextPart_000_0083_01C04E32.060472A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Did you try http://localhost:8004/servlet/h= i=20 ?
 
Dom
----- Original Message -----
From:=20 Rasika=20
To: tomcat-user@jakarta.apache= .org=20
Sent: Tuesday, November 14, = 2000 7:41=20 AM
Subject: servlets problem is = still=20 there

Hello,
I have installed TOMCAT = with Apache. I=20 followed your user guide and then tomcat faqs to install = tomcat.
Now I am=20 able to run .jsp files using both tomcat as well as Apache. I can also = run=20 sample servlet provided alongwith examples. But I cannot run my own=20 servlet.
I have stored itin webapps/root/web-inf/classes directory. =
I=20 still don't understand which files need to be configured in order to = run my=20 servlets?
 
I have added following block to web.xml=20 file
<servlet>
     =20 = <servlet-name>hi</servlet-name>
    &n= bsp;=20 <servlet-class>hi</servlet-class>
   =20 </servlet>
        =20 <servlet-mapping>
       =20 = <servlet-name>hi</servlet-name>
    &n= bsp;  =20 = <url-pattern>/hi</url-pattern>
    &nb= sp;  =20 </servlet-mapping>

 
where "hi" is the name of my = servlet file.=20 But when I try to run it through browser giving command http://localhost:8040//hi where = 8040 is=20 apache port(which I have changed ) it gives me 404 = error.
 
Can you=20 please help me in configuring files so as to run my own=20 = servlets?
 
Thanks,
Rasikaj
=
------=_NextPart_000_0083_01C04E32.060472A0--