Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1109675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:16:28+00:00 2026-05-17T02:16:28+00:00

I am trying to set up a JBoss Cluster with Apache Load Balancing. Basically

  • 0

I am trying to set up a JBoss Cluster with Apache Load Balancing. Basically I have followed the guide from here. No problem faced. The only issue I have would be, how do I access my own application? From the guide, it didnt mention how do I mount my own application.

Here’s my environment setup:

  • Windows XP
  • JBoss AS 5.0
  • Apache 2.2.16
  • mod_jk 1.2.30

Here’s my properties setting:

httpf.conf

Include conf/mod_jk.conf

mod_jk.conf

LoadModule jk_module modules/mod_jk.so   
JkWorkersFile conf/workers.properties   
JkLogFile logs/mod_jk.log   
JkLogLevel info   
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"   
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories   
JkRequestLogFormat "%w %V %T"   
JkMount /application/* loadbalancer   
JkUnMount /application/images/* loadbalancer   
JkMountFile conf/uriworkermap.properties   
JkShmFile run/jk.shm

<Location /jkstatus>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

workers.properties

worker.list=loadbalancer,status
worker.node1.port=8009
worker.node1.host=10.67.51.129
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.prepost_timeout=10000 #Not required if using ping_mode=A
worker.node1.connect_timeout=10000 #Not required if using ping_mode=A
worker.node1.ping_mode=A #As of mod_jk 1.2.27

worker.node2.port=8009
worker.node2.host= 10.67.51.64
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.prepost_timeout=10000 #Not required if using ping_mode=A
worker.node2.connect_timeout=10000 #Not required if using ping_mode=A
worker.node2.ping_mode=A #As of mod_jk 1.2.27

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2

worker.status.type=status

uriworkermap.properties

/jmx-console=loadbalancer
/jmx-console/*=loadbalancer

/web-console=loadbalancer
/web-console/*=loadbalancer

/admin-console=loadbalancer
/admin-console/*=loadbalancer

/myapp/*=loadbalancer
!/myapp/images/*=loadbalancer

server.xml in JBoss

<Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
<!-- A AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="${jboss.bind.address}"
  emptySessionPath="true" enableLookups="false" redirectPort="8443" 
  protocol="AJP/1.3" connectionTimeout="600000" maxThreads="200"/>

This is how I start the JBoss

Comp1

run.bat -c all -g DefaultPartition -u 230.0.0.4 -b 10.67.51.129 -Djboss.messaging.ServerPeerID=1 -Djboss.service.binding.set=ports-default

Comp2

run.bat -c all -g DefaultPartition -u 230.0.0.4 -b 10.67.51.64 -Djboss.messaging.ServerPeerID=2 -Djboss.service.binding.set=ports-01

My application name is called JBossDB. When i tired to access 10.67.51.129:8080/JBossDB
I am able to launch my application. But if I tried to launch localhost/JBossDB it doesnt load. Note, I am able to launch localhost/admin-console.

I hope I have provided all the necessary info. Please help me out. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:16:29+00:00Added an answer on May 17, 2026 at 2:16 am

    You forget to add proper address mapping to uriworkermap.properties file or to JkMount options.

    In uriworkermap.properties you should put such line:

    /JBossDB=loadbalancer
    /JBossDB/*=loadbalancer
    

    OR in mod_jk.conf such line:

    JkMount /JBossDB loadbalancer
    JkMount /JBossDB/* loadbalancer
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up jBoss with LDAP auth. I have already configured the
I am trying to upload my rules from jboss-brms to my eclipse in order
Trying to set a sprite filename with an if statement, then load the proper
I am using jboss-as-7.1.0.Final-SNAPSHOT and trying to set up custom login module that uses
Hie all, I indeed underline to points. I have been trying jboss 7 +
Trying to set 301 redirect in .htaccess file and here is what i am
I am trying to set up jboss on my machine and getting errors. There
I'm trying to set up Spring 3.0.6 libraries as a module in JBoss 7.
I am trying to login to my JBoss webapp using the example code from
I'm trying to set up Solr 3.5.0 on JBoss 5.1. Everything works quite fine.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.