In autoexec.bat, insert something like the following
PATH C:\DOS;C:\JDK1.2.2\BIN;
SET CLASSPATH=.;C:\JDK1.2.2\;C:\JAVAWEBSERVER2.0\LIB\JWS.JAR
SET JAVA_HOME=C:\JDK1.2.2\
Where the PATH statement, C:\JDK1.2.2\BIN is the binary for
the JDK--for compilation
The CLASSPATH statement includes the path to the server's
JAR--in this case the JWS--so it can include the classes in
the JAR when compiling
The JAVA_HOME environment variable tells it where to look for
classes and such if not found below the server's directory
Call the servlet with
http://localhost:8080/servlet/<servletName>
Please note the subtle difference--buried in the
documentation it explains that you want the servlets to live
in <serverRoot>/servlets (with an s on the end) but you CALL
them as "a servlet" so you use
localhost:8080/servlet/servletName with NO s.
In this case, the servlet class files should be in
c:\jsdk2.1\servlets, but still are called with
http://localhost:8080/servlet/<servletName>
On Wednesday, August 25, 1999 11:58 PM, KIRAN
[SMTP:[EMAIL PROTECTED]] wrote:
> Hi everybody,
>
> Problem launching the servlet on the java web server.
> I'am sorry if this has been discussed but I could not find
> the answer in the previous mails.
> I installed the javs servlet development kit. (jsdk2.1) at
> the path
> c:\jsdk2.1\
> If I have read the README file correctly then I need to
> include the
> java.exe in the path variable, which I have done.(D:
> \jdk1.1.5\bin).
> According to the README file if I start the server and
> connect from
> the browser using the URL "http://localhost:8080",
> I should be able to see the JavaDoc documentation for the
> javax.servlet packages as well as see some examples.
>
> My default config file "default.cfg" reasd like this-
>
> # $Id: default.cfg,v 1.8 1999/04/05 21:18:16 duncan Exp $
>
> # Default configuration file for Project Tomcat
>
> server.port=8080
> server.hostname=localhost
> server.inet=
> server.docbase=webpages
> server.tempdir=tmp
>
> This is the message at the command promp when I start the
> server.
> JSDK WebServer Version 2.1
> Unknown object of type:java.net.URL
> startup.loadprops.msg arg[0]=file:C:\jsdk2.1/default.cfg
> endpoint created: :8080
> com.sun.web.core.DefaultServlet: init
>
> But when I connect from the browser I'am getting the
> following error-
> IE 5.0 - SocketError - connection refused by remote host.
> NS 4.5 - ERROR:404 - no detailed message.
>
> please help.
> Thank You.
> Bye.
> -Kiran.
>
>
____________________________________________________________
> _______________
> 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
___________________________________________________________________________
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