OT on Tomcat and Apache

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Not totally OT, but close.

Building a new CGI with Perl and mod_perl, I was given a Windows
server that runs (and is running) Tomcat. Rather than configuring
Tomcat to run CGI, I installed Apache 2.2.11, but when I started
Apache I got the following error message:

(OS 10048)Only one usage of each socket address (protocol/network
is normally permitted.  : make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit.

Can I run both Apache and Tomcat on port 80? This machine runs JSP
apps so they need Tomcat.

Does anyone have any experience running Perl scripts with Tomcat?

Where can I get help?

Thanks, CC.

Re: OT on Tomcat and Apache

Quoted text here. Click to load it

No, only one thing at a time can run on port 80.  That's what the
error message is telling you.  If you'll think about it, it makes
perfect sense.  Assume the machine let you run both Tomcat and Apache
on port 80.  In comes a connection request for port 80 from another
machine.  Who answers: Apache or Tomcat?  There is absolutely no way
to tell.

Quoted text here. Click to load it

Either Apache or Tomcat will need to listen on a port other than 80, with
the applications that use it configured to connect on that port.
Quoted text here. Click to load it

             Christopher Mattern

Thank you for noticing this new notice
Your noticing it has been noted
And will be reported to the authorities

Re: OT on Tomcat and Apache

Quoted text here. Click to load it

That's not quite correct: They can both listen on port 80, *iff* they
listen on different IP addresses. So you could have Tomcat on and Apache on

Quoted text here. Click to load it

Right. Either the IP address or the port number has to differ.

If you need Apache and Tomcat for the same website, the normal way is
let Apache listen on port 80 and pass requests to Tomcat via mod_jk.
Using a reverse proxy should work, too.


Site Timeline