|
(This mail was send yesterday at 15:12 but
unfortunately with a wrong address)
Hi!
I had the same problems when i wanted to use the jsdk2.1 with NT4 and i find it easier to use the Java Web Server that can be downloaded from sun for evalution. This server povides an administration tool which makes it easier to configure the server and the servlets. With jsdk2.1 i could just run the sample servlets provided. This is possible without any change to the default.cfg. The xxx you mentionned is for a directory that acts just like the "examples" directory located under jsdk2.1's tree. See the structure of that directory. It is: <your installation directory>/jsdk2.1/exemples/Web-inf/servlets/<sample servlet files>. If you create your own directory under jsdk2.1 (that is the xxx), it must have subdirectories named "Web-inf" and "servlets" with the same structure as "examples". To run the HelloWord sample servlet located in servlets directory as described, you must type in your browser: http://localhost:8080/exemples/servlet/HelloWord If your server starts successfully the dos console should not vanish. Its stays open as long as the server is running. With windows NT you can get your server run correctly but as for windows 95 or 98 i'am not sure wether it's possible or not. Well this is just some ideas for new servlets users as i am not an old one too. Hope it helps Ibrahim -----Message d'origine----- De : Gwendoline BASSET <[EMAIL PROTECTED]> À : [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date : jeudi 8 juillet 1999 13:34 Objet : Re: webserver is not running???? >Hi, >I am new to servlet programming too. >what is the xxx?, because, to access to your servlet, you need to put it on: >xxx\WEB-INF\servlets\ directorie and call it like that: > http://localhost:8080/xxx/servlet/ServletTest > >but whithout 's' to servlet... > >in the default.cfg: >server.webapp.xxx.mapping=/xxx >server.webapp.xxx.docbase=xxx > >maybe you did it... then i don't know what is the problem. > >I have a problem too: my servlets run, but when I just call >http://localhost:8080/ >I can't have the index.html and have an 404 error on window 95 and NT. > >maybe you had the same problem? >have a good day >Gwen > >pradeep a écrit : > >> Hi all >> >> paltform: JDK1.1/JSDK2.1/Win95 >> >> I am new to servlet programming.When I tried to "startserver",the Webserver >> downloaded >> from java.sun.com along with the JSDK2.1, the console window is just showing >> up and vanishing . I doubt whether the web server is started succesfully or >> not.Any comment? >> >> When I ran a servlet with http://localhost:8080/xxx/ServletTest (in the >> documentation it is written that http server listens port 8080,and I have >> ServletTest class in xxx directory),web browser is displaying error dialog. >> >> Any suggestions please? >> >> TIA >> -pradeep >> >> |
