On Sat, 10 Oct 1998, Haobi Wang wrote:
> Yes, I moved them there as well, but still the same error ... how come?
Don't know. Try to change current directory to
C:\jsdk2.1\
before running startserver.bat
Just a guess, I think servlet engine considers the current dir as
some sort of root for the web server.
I had similar problems on a Linux Slackware box.
First of all the unix scripts tried to use /bin/ksh as interpreter,
and Linux doesnt have one. After correcting that (used /bin/sh),
some logical tests failed due to the use of double square paranthesis
instead of simple ones:
if [[ -n $CLASSPATH ]]; then
...
constructs instead of the following more portable statement, available in
all derivatives of Bourne shell (/bin/sh) :
if [ -n "$CLASSPATH" ]; then
...
Only after I made these changes the startserver script was able to
correctly build server engine's CLASSPATH, by inserting the server.jar and
servlet.jar archive path names in front of the default CLASSPATH.
........
BTW, the last line in startserver script contains:
java com.sun.web.shell.Startup $* &
Mabe I missed some docs, but could not figure out what document describes
the available arguments to the startserver script, and where is a detailed
documentation on configuration files/options of the web/servlet engine
included in jsdk2.1 ?
Thanks,
Cezar.
>
> -----Original Message-----
> From: Cezar Totth <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Wednesday, August 11, 1999 12:37 AM
> Subject: Re: where to put my servlet?
>
>
> >Hi,
> >
> >On Sat, 10 Oct 1998, Haobi Wang wrote:
> >> I put myservlet class files in the directory c: jsdk2.1\webpage\web-inf
> and tried to browser them with the url
> >> http://localhost:8080/servlet/myservelt and it gives error: 404 no
> detailed message. but http://localhost:8080 works well and it shows the
> default page. could anyone tell me if anything I did wrong or I missed here?
> where should be the right place to put my servlets?
> >
> >put them in c:\jsdk2.1\webpages\web-inf\servlets\
> >That's the same place where SnoopServlet.java and SnoopServlet.class are
> >
> >Cezar
> >
> >An authority is a person who can tell you more about something than you
> >really care to know.
> >
> >
> >>
> >> Hi all,
> >>
> >>
> >> Thanks,
> >> Michelle
> >>
> >
> >___________________________________________________________________________
> >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
>
___________________________________________________________________________
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