RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I finally got this working

I used the min configuration given in the jk docs of.

jk2.properties: 

# The default port is 8009 but you can use another one
# channelSocket.port=8019

workers2.properties: 

# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

And this works, which means my problem, is in trying to create the Unix
channel.  I don't know why the Unix channel config did not work, heck I
don't even know the difference between a Unix channel and socket
channel!



Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 8:06 AM
To: Tim Wills
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Dale, Matt

I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tonte Pouncil
I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Dale, Matt

The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tonte Pouncil
Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Dale, Matt
Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tonte Pouncil
Okay, will do.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:35 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Birt, Jeffrey
Arrgg Still no luck.  This is a copy of my error log.  I still can't seem to get 
Apache2 and Tomcat 5 to work together.  I tried creating an emty file called 
jk2.socket in /opt/tomcat/work.  When Apache starts jk2.shm is created and the 
jk2.socket file I created disappeared.  This error report looks like the unix socket 
is not being created but I don't know why.  BTW, I added a group and user called 
tomcat and made tomcat owner of opt/tomcat and added the user apache to the tomcat 
group.  AFAIK this should give Apache appropriate permissions to the needed files in 
teh tomcaat folders.  My jk2.properties file etc are listed with the original post.

Any other ideas guys?  

Thanks,

Jeff_Birt


[Thu Jul 08 14:48:04 2004] [error] channelUn.connect() connect failed 2 No such file 
or directory
[Thu Jul 08 14:48:04 2004] [error] ajp13.connect() failed 
ajp13:/opt/tomcat/work/jk2.socket
[Thu Jul 08 14:48:04 2004] [error] ajp13.service() failed to connect endpoint errno=2 
No such file or directory
[Thu Jul 08 14:48:04 2004] [error] ajp13.service() Error  forwarding 
ajp13:/opt/tomcat/work/jk2.socket 1 1
[Thu Jul 08 14:48:04 2004] [error] lb.service() worker failed 12 for 
ajp13:/opt/tomcat/work/jk2.socket
[Thu Jul 08 14:48:04 2004] [error] lb_worker.service() all workers in error or 
disabled state
[Thu Jul 08 14:48:04 2004] [error] mod_jk2.handler() Error connecting to tomcat 
12, status 503

-Original Message-
From:   Dale, Matt [mailto:[EMAIL PROTECTED]
Sent:   Thu 7/8/2004 10:34 AM
To: Tomcat Users List
Cc: 
Subject:RE: Newbie question: Error 503 Service Temp. Unavailable
Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tont

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tim Wills
I had the same Error 503 on Linux (not Windows) and found that was caused by
Apache running as Nobody. Apache couldn't write to the socket because the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a Windows
server so can't be more helpful.

Cheers

Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]