Tomcat/Apache coexisting

I

Ike

I just put tomcat 5.0.28 on a server running Apache 1.3.33.

I thought I had it all configured perfectly. However, Apache seems to yeild
all the time to Tomcat. In tomcat's server.xml file, I replaced all
instances of "localhost" with "64.233.244.104". Likewise in
workers.properties.

In httpd.conf, I have :

JkMount /gg/servlet/* example

which properly executes the servlet 64.233.244.104/gg/servlet/IsItWorking

However, on the server, I get a dialog box which say:

Apache port (80) is used by ""(tomcat5.exe) !

I notice my apache server is not serving up any pages -- they are all being
served up by Tomcat. Does anyone have any clue where I can look to solve
this? Thanks, Ike
 
I

IchBin

Ike said:
I just put tomcat 5.0.28 on a server running Apache 1.3.33.

I thought I had it all configured perfectly. However, Apache seems to yeild
all the time to Tomcat. In tomcat's server.xml file, I replaced all
instances of "localhost" with "64.233.244.104". Likewise in
workers.properties.

In httpd.conf, I have :

JkMount /gg/servlet/* example

which properly executes the servlet 64.233.244.104/gg/servlet/IsItWorking

However, on the server, I get a dialog box which say:

Apache port (80) is used by ""(tomcat5.exe) !

I notice my apache server is not serving up any pages -- they are all being
served up by Tomcat. Does anyone have any clue where I can look to solve
this? Thanks, Ike
Typically you set port 80 for Apache and port 8080 for Tomcat.

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
I

IchBin

Ike said:
I just put tomcat 5.0.28 on a server running Apache 1.3.33.

I thought I had it all configured perfectly. However, Apache seems to yeild
all the time to Tomcat. In tomcat's server.xml file, I replaced all
instances of "localhost" with "64.233.244.104". Likewise in
workers.properties.

In httpd.conf, I have :

JkMount /gg/servlet/* example

which properly executes the servlet 64.233.244.104/gg/servlet/IsItWorking

However, on the server, I get a dialog box which say:

Apache port (80) is used by ""(tomcat5.exe) !

I notice my apache server is not serving up any pages -- they are all being
served up by Tomcat. Does anyone have any clue where I can look to solve
this? Thanks, Ike
Typically you set port 80 to Apache and port 8080 to Tomcat.

I assume that you setup the mode_JK module and the workers.properties file.

workers,properities:

workers.tomcat_home=C:\ApacheGroup\Tomcat5.5
workers.java_home=C:\Progra~1\Java\JDK15~2.0_0

# ps=\ on NT and / on UNIX
ps=\

#
# Defining a worker named default and of type ajp13
# Note that the name and the type do not have to match.
#
worker.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13

#
# lbfactor specifies the load balance factor when used with
# a load balancing worker.
# Note:
# ----> lbfactor must be > 0
# ----> Low lbfactor means less work done by the worker.
worker.default.lbfactor=1

--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
S

Simon Brooke

Ike said:
I just put tomcat 5.0.28 on a server running Apache 1.3.33.

I thought I had it all configured perfectly. However, Apache seems to
yeild
all the time to Tomcat.

You cannot run both Apache and Tomcat on the same port, which is what I
suspect you're trying to do. When the first starts up it will bind to the
port, and the second will fail. Run Tomcat on a separate port - by default
8080 - and use mod_jk to broker requests between Apache and Tomcat.

--
(e-mail address removed) (Simon Brooke) http://www.jasmine.org.uk/~simon/

'Victories are not solutions.'
;; John Hume, Northern Irish politician, on Radio Scotland 1/2/95
;; Nobel Peace Prize laureate 1998; few have deserved it so much
 
I

Ike

Thanks guys!

Yes, I had mistakenly had:

<Service name="Catalina">
<Connector port="80" ....

instead of

<Connector port="8080"

Thanks again -- I would have looked forever without your help! -Ike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top