Meaningless Drivel is fun!*
The moose likes JBoss/WildFly and the fly likes Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304)" Watch "Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304)" New topic
Author

Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304)

naguri narayanareddy
Greenhorn

Joined: Sep 07, 2013
Posts: 5
Hi ,

I am using Jboss 5.1.x , Apache 2.2.22 and Mod_jk.so(1.2.37) . When i am trying to integrate between apache and jboss i am getting followed log in access.log and error.log files.


access.log:-

------------


127.0.0.1 - - [07/Sep/2013:12:48:10 +0530] "GET / HTTP/1.1" 304 -
127.0.0.1 - - [07/Sep/2013:12:48:11 +0530] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [07/Sep/2013:12:48:14 +0530] "GET / HTTP/1.1" 304 -
127.0.0.1 - - [07/Sep/2013:12:48:15 +0530] "GET / HTTP/1.1" 304 -
127.0.0.1 - - [07/Sep/2013:12:48:19 +0530] "GET /sample HTTP/1.1" 503 323
127.0.0.1 - - [07/Sep/2013:12:48:20 +0530] "GET /sample HTTP/1.1" 503 323
127.0.0.1 - - [07/Sep/2013:12:48:24 +0530] "GET /sample HTTP/1.1" 503 323
127.0.0.1 - - [07/Sep/2013:12:48:25 +0530] "GET /sample HTTP/1.1" 503 323



Error.log :-
---------------

[Sat Sep 07 12:46:34 2013] [notice] Apache/2.2.22 (Win32) mod_jk/1.2.37 configured -- resuming normal operations
[Sat Sep 07 12:46:34 2013] [notice] Server built: Jan 28 2012 11:16:39
[Sat Sep 07 12:46:34 2013] [notice] Parent: Created child process 4864
[Sat Sep 07 12:46:34 2013] [notice] Child 4864: Child process is running
[Sat Sep 07 12:46:34 2013] [notice] Child 4864: Acquired the start mutex.
[Sat Sep 07 12:46:34 2013] [notice] Child 4864: Starting 64 worker threads.
[Sat Sep 07 12:46:34 2013] [notice] Child 4864: Starting thread to listen on port 80.




I am using followed configuration files in apache side.

Mod-jk.conf:-
--------------



LoadModule jk_module modules\mod_jk.so

JkWorkersFile conf\workers.properties
JkMountFile conf\uriworkermap.properties


JkLogFile conf\mod.jklog
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkShmFile conf\mod.jkshm

JkMount /jkstatus/* jkstatus

JKMount /servlet* loadbalancer
JKMount /sample* loadbalancer



workers.prop:-
--------------------

# Workers

worker.jkstatus.type=status
worker.jkstatus.read_only=True

worker.node-1.port=8109
worker.node-1.host=localhost
worker.node-1.type=ajp13
worker.node-1.lbfactor=1
worker.node-1.socket_timeout=5
worker.node-1.socket_keepalive=1
worker.node-1.connection_pool_timeout=300
worker.node-1.connection_pool_size=20

worker.node-2.port=8209
worker.node-2.host=localhost
worker.node-2.type=ajp13
worker.node-2.lbfactor=1
worker.node-2.socket_timeout=5
worker.node-2.socket_keepalive=1
worker.node-2.connection_pool_timeout=300
worker.node-2.connection_pool_size=20

# Load-balancing pools

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node-1,node-2,
worker.loadbalancer.sticky_session=1

# Worker list
worker.list=loadbalancer,jkstatus



---->

When i am trying to access with localhost/sample request i am getting follwed response from browser window.

Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Could anyone helps with reasonable explanation is appreciable ?

Regards,
Narayan.
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Hi Narayan,

The issue occurs if the apache is unable to proxy the request to servers or load balancer
This could be due to some disconnect between the request processing between apache and Jboss cluster. You might want to revisit the works.properties file.

Or there could be scenario where backend cluster servers are unavailable.

You can find a working sample on the below link.

http://weblogic-wonders.com/weblogic/2010/04/07/configure-apache-webserver-with-jboss-cluster/



Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss5.1.x---Apache 2.2.22 Integration-Service Temporarily Unavailable(503 304)