Dear Mr. Shash Jee,
It really isn't working. I'm using proxy server to connect to my server.
But, I don't see any thing that my be restricting from sending requests to the
localhost.
I did ping it successfully but the browser seems to be busy for long when
accessing servlet.
My servlet directory structure is something like this:
c:\jsdwk-1.0.1\examples\web-inf\servlets\HelloWorldExample.class
please do help me sort out the problem.
An other thing is that when I write the URL like
http://127.0.0.1:8080/servletclass or http://localhost:8080/servletclass
the connection is refused straight away (remote host not found)
but if I write the URL
http://localhost/127.0.0.1:8080/servletclass
it seems to be busy fetching something, but gets nothing.
After spending too much time, it only flases a message "document contains no
data"
but this is not the case always( often no message).
Yes when I see the server window it sometimes shows the line saying
defaultservlet init (with com.web etc)
Thanks.
Mukesh
Shash Chatterjee wrote:
> Mukesh,
>
> If you have not modified the default directory structure of the JSWDK
> distribution and have left the "webserver.xml" file alone, then to
> execute the HelloWorldExample servlet, here's what you should use:
>
> http://localhost:8080/examples/servlet/HelloWorldServlet
>
> Or, better yet, go to http://localhost:8080/examples/index.html and
> choose as necessary.
>
> Also, you need to make sure that a) your TCP/IP stack is indeed
> resolving localhost/127.0.0.1 correctly (try, "ping localhost" or "ping
> 127.0.0.1" or even "telnet localhost 8080") and b) if you use proxies,
> your browser is setup to not send requests for localhost to the proxy.
>
> Hope this helps,
> Shash
>
> Mukesh wrote:
> >
> > I tried a lot to execute HelloWorldExample servelet using JSWK1.0.1 kit,
> >
> > but all in vain.
> > I tried following URLs
> > http://localhost/127.0.0.1:8080/Web-inf/servelets/HelloWorldExample
> > http://localhost/127.0.0.1:8080/HelloWorldExample
> > http://127.0.0.1:8080/Web-inf/servelets/HelloWorldExample
> > http://localhost:8080/Web-inf/servelets/HelloWorldExample
> > When I started server using startserver.bat file, the following message
> > is flashed by the server
> > endpoint created at localhost/127.0.01:8080
> > please help any body.
> > Thanks.
> > Mukesh
> >
> > ___________________________________________________________________________
> > 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