Thanks for responding, but my wepapp was put together fine -- it works at
work here on my NT box, but not at home on my Win98.
The good news is that I finally resolved this issue. It's an issue related
to proxy / network settings.
To share my findings, this is what happened:
On my Win98 box, I couldn't get http://localhost:8080/mywebapp/index.jsp to
work but could get http://127.0.0.1:8080/mywebapp/index.jsp to return the
desirable content. This led me to examine what happened to my network and
browser settings. Though my home pc isn't networked, I verified that I could
ping to localhost fine (yes, it does resolve to IP address 127.0.0.1). This
meant as far as the Winsock network protocol stack in concerned, it's
configured fine. Then I went ahead to examine my IE5.0's settings -- it has
use Proxy Server option enabled, and the proxy server's address is set to
'localhost', port 80, for http. I don't really want to dial up to internet
using this home pc, which is actually a toy machine for my kid. These
settings were there to do away with the popup dialog for "Modem Dial Up
Internet Connection" that would otherwise show up everytime I launched
IE5.0.
And then I found the real problem -- the 'Bypass Proxy Server for local
addresses' wasn't checked. It worked like a charm once I enabled the
setting.
Some background note for those who're interested: This setting should be
enabled so that IP packets for 'localhost', a local IP address, wouldn't be
required to get routed through a proxy server (which I don't have anyway).
This is a tricky way for configuring a local http loopback while diabling
the bothersome "Modem Dial Up Internet Connection" dialog.
-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 4:30 PM
To: [EMAIL PROTECTED]
Subject: Re: How is HttpConnectionHandler used, please?
"Siak Keong, Cheong" wrote:
> I'm trying to see whether it's possible to run tomcat 3.2.1 standalone
> without tying it to any web server.
> I found in server.xml the HttpConnectionHandler which is preconfigured
> against port 8080. I could see from the init message of tomcat that this
> connector is running. But when I try access it it via
> http://myhost:8080/mywebapp/index.jsp , I can't get it to return anything.
I
> even try telnet to port 8080 and then issue the http GET command, it still
> can't trigger my jsp.
>
> How is this HttpConnectionHandler used ? What am I doing wrong (or
supposed
> to do) ?
>
You should not have to worry about the connection handler parameters -- port
8080 is fine.
In order for the URL above to work, you should have placed your webapp in
directory "$TOMCAT_HOME/webapps/mywebapp", and your webapp must have the
directory structure that is specified in the Servlet Specification, version
2.2,
available at <http://java.sun.com/products/servlet/download.html>.
In addition, Tomcat 3.2.1 includes an "Application Developer's Guide"
document
that describes how to put together a web app -- point your browser at file
"$TOMCAT_HOME/doc/appdev/index.html".
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]