Ying, by the way, if you have the default configuration you will have to add
8080 to your URL. For example http://localhost:8080/tom/servlet/mySerlvet

Tom K.

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Ying
Su
Sent: Wednesday, March 13, 2002 1:53 AM
To: [EMAIL PROTECTED]
Subject: Problems in configuring Tomcat


Dear all,
I have set up Tomcat and seen the welcome page successfully. But I can't run
servlet. For example, I wrote a simple servlet "HelloWorld.java" which
prints "hello world" in brower, then put the "HelloWorld.class" file in
Tomcat's "examples"  directory. But when I visit it by
http://localhost/examples/HelloWorld,  Tomcat gives me an error message "The
requested resource (/HelloWorld) is not available." However, jsp files could
be executed properly.  Does anyone know how to run my servlet?

Thanks a lot!

Sincerely
Ying
N�����r��zǧu� [h�+-��ڲ�ܢf�v)ܖ�^ {ay� ʇ�鞲� z� ���HDU,D�51  $���b�
�!�� ��܆+޲6�j˧r��j�! ���ǫ�W� {^��-�٥E�(�� � m���j���w(��k�ۜ���z��z����
���kz�.�Ǭ�٥,��HDU �i��i��0�[(~�(����楳��z����

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to