Dear Schalk, When I tried to compile it there are some errors which says the same things when i tried to compile the .java file from the servlet-examples folder. I guess I missed doing some configurations which I am not familiar with.
Schalk <[EMAIL PROTECTED]> wrote: Did you compile the .java file and place the .class file in that folder? Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or disclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -----Original Message----- :: From: Brian SJ Wong [mailto:[EMAIL PROTECTED] :: Sent: Wednesday, June 30, 2004 11:08 PM :: To: [EMAIL PROTECTED] :: Subject: I need help about deploying a servlet in tomcat :: :: Dear friends, :: :: I just installed tomcat 5 in my machine. I put it in the the folder c:\Program :: Files\Apache Group\Apache\Tomcat 5.0. I tried to run the servlet examples and they :: are ok. However, I would like to try my own servlet. I wrote the HelloWorld.java and :: put it in the folder C:\Program Files\Apache Group\Apache\Tomcat :: 5.0\webapps\ROOT\WEB-INF\classes. I thought that I could just access it by :: http://localhost:8081/servlet/HelloWorld. I was hoping that the Tomcat would :: compile the java code automatically. However, it didn't happen and I got the status :: code 404, stating that the servlet couldn't be found. :: :: These are the stuff that I did :: 1. I set the environment variable CATALINA_HOME and CATALINA_BASE to :: c:\Program Files\Apache Group\Apache\Tomcat 5.0 :: 2. I put the description of the servlet HelloWorld to the file web.xml in the webapp :: folder. :: :: I really appreciate if I could get some helps. Thank you very much. :: :: Cheers, :: :: Brian :: :: :: :: --------------------------------- :: ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself :: :: :: --------------------------------- :: ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself