Joel,

It may have been my mail server - I'm having lots of problems with newsgroup submissions
I recently ended up submitting the same request twice because my mail server reported a "Couldn't deliver" message
when it actually did.

bummer.

glad you got it working on your own! The port # hasn't got anything to do with the servlet spec. It's to do with the
configured port number of your container. Normally a web-server is listening on port 80, and your browser will,
by default actually translate http:localhost/... to http:/localhost:80.

Of course it doesn't /actually/ change the request, just tries to talk to a server on that port.

You can change that behavior by altering port parameter of the HttpConnectionHandler Connector
in server.xml e.g. in the following example I've changed it to 80.
 

        <!-- Normal HTTP -->
        <Connector className="org.apache.tomcat.service.PoolTcpConnector">
            <Parameter name="handler"
                value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
            <Parameter name="port"
                value="80"/>
        </Connector>

Now, provided that you haven't got a web server (e.g. Apache, IIS, Personal Webserver whatever) listening on that
port, you can now just use your original URL to get to the web-container.

-Thom

p.s. If you have for a web server, then you'll get a 'port already in use' error or somesuch.

"Joel R. Cochran" wrote:

 Thanks T. Park!  That was exactly what I did...wonder why there is such a lag in the list mail delivery today? Joel
[jrc] 

-----Original Message-----
From: T. Park [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Running my first servlet...doesn't display
 

have you tried:
 http://localhost:8080/servlet/MyFirstServlet
 
 

"Joel R. Cochran" wrote:

Hello again from Super Newbie...

I (finally) got Tomcat installed on my Win98 machine:
1.  I have Tomcat started.
2.  I have my CLASSPATH set to include servlet.jar and jasper.jar
3.  I have a compiled class called MyFirstServlet.class in
c:/jsp/tomcat/webapps/ROOT/INF-WEB/classes
        (This is just a typical "Hello World" file)
4.  In my browser I have entered http://localhost/servlet/MyFirstServlet
5.  I get a response saying "The Page Cannot Be Displayed" (standard
unavailable script).

Anyone know why???  I also tried replacing the "/servlet" with the full
path, but to no avail. HELP!!!!!

Joel

--
http://www.borland.com/newsgroups
http://www.borland.com/devsupport/disclaim.html
 

--
http://www.borland.com/newsgroups
http://www.borland.com/devsupport/disclaim.html
 

Reply via email to