Dear all,
Thank you very much for your help!
But what if my servlet contains package info? I.e. My servlet HelloWorld.java has this
sentence:
package com.myapi.msgservice.server;
In com.myapi, I defined some other packages other than msgservice, and I don't want to
change the directory of the HelloWorld servlet. Can you tell me how to access it by
http://localhost/servlet/HelloWorld ? I've changed the port to 80. Thanks a lot!
best regards
Ying
----- Original Message -----
From: "Tom Kochanowicz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 5:16 PM
Subject: Re: Problems in configuring Tomcat
> 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�s [h-+-��ڲ�ܢf�v)�-�^ {ay� �?�.�z�� z� z?�HDU,D�51 $���b�
> �!�� ���?+6�j˧r?�j�! ���ǫ�W� {^��-?٥E�(�� � m���j���w(>�k��o���z��z����
> ���kz�.�Ǭ?٥,""HDU �i?�i��0�[(~�(>�sz楳��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
>
>
>
�{.n�+���zw^�����b����ڽ�.��&jwb��nu觶��ܨ~�^��,j�� �}�ER�L�SL
܆+m��ڭ�b��#j���w(���r�z��z��zا���m�T^���q�!���6�j˧r������l�ǫ�W���mz�ږ�����z�m�R�I4�EQޖ�m����
%���r�����j[?�ǫ���f