|
Hi,
For your case, you have to use http://localhost:8080//HelloWorld
instead for initialising the servlet HelloWorld. Because the directory
root/jsdk2.1/webpages/
is declared in the file "default.cfg" as follows :
Tudor Bratescu a écrit : Hi,I am trying to install and use your Web server that comes with the jsdk2.1 in order to develop some servlets. To make it simple, I copyed the HelloWorld class from "JAVA Servlet Programming (Jason Hunter)" and I am trying to run it. I am trying with no success to run a HelloWorld servlet, and I am always getting the message "URL not found in offline mode". Here is what I did so far:- CLASSPATH points to root/jsdk2.1/server.jar- CLASSPATH points to root/jsdk2.1/servlet.jar- I put the HelloWorld.class in root/jsdk2.1/webpages/Web-inf/servlets- I changed the Initial environment in the DOS window from "Auto" to 2816- I started the server using startserver command- I started the Internet Explorer in offline mode- I tryed the address : http://localhost:8080/servlet/HelloWorld (I got "URL not found in offline mode")- I tryed the address : http://localhost:8080/jsdk1.2/webpages/Web-inf/servlet/HelloWorld (I got "URL not found in offline mode")- I tryed then to run Snoop servlet which is registred using the URL: http://localhost:8080/webpages/web-inf/servlet/snoopas well as http://localhost:8080/servlet/snoop (I got "URL not found in offline mode" in both cases) "This sounds like a problem with your system whereby it can't resolve a localhost lookup" ,saied James Todd from [EMAIL PROTECTED] who recomended me to post the question at the present adress. Can you please tell me what do you think is missing or mistaken when running HelloWorld ?Thanks,Teodor-- Tran Sy Nguyen mailto:[EMAIL PROTECTED] Tél: (84 4) 8696017 Fax: (84 4) 8694509 Promotion 1997, Institut de la Francophonie pour l'Informatique, Nha D, Ngo 42, Ta Quang Buu - Ha Noi - Viet Nam |
- using the local Server for servlets' testing Tudor Bratescu
- Re: using the local Server for servlets' testing Tran Sy Nguyen
- Re: using the local Server for servlets' testing Cezar Totth
