Setting up AJP with JBoss 7
        Posted  
        
            by 
                purlogic
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by purlogic
        
        
        
        Published on 2011-12-21T11:48:21Z
        Indexed on 
            2012/09/18
            21:41 UTC
        
        
        Read the original article
        Hit count: 595
        
I have two different versions of JBoss on a server, JBoss 6.0 Final and JBoss 7.0.2. I can one run or the other by switching a couple of sym links and issuing a "service jboss start" command. I am, by no means, an expert in JBoss, however JBoss 6.0 appears to have AJP running out of the box with no initial configuration required on port 8009.
With JBoss 7, however, I had to vi the file "standalone/configuration/standalone.xml" and add a few entries. Those entries are:
In the <subsystem /> tag, I added:
<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" />
In the <socket-binding-group /> tag I added:
<socket-binding name="ajp" port="8009"/>
Then in Apache's configuration file (httpd.conf), I added:
<Proxy *>
  AddDefaultCharset Off
  Order deny,allow
  Allow from all
</Proxy>
ProxyPass /app ajp://localhost:8009/app
ProxyPassReverse /app ajp://localhost:8009/app
AJP proxying works with 6, not with 7... I assume it's because I haven't properly set up AJP in JBoss 7 and not entirely sure how to do that. I have searched documentation on their site with not a lot of specifics on how to do so. Any help or insight into setting up AJP with JBoss 7 would be much appreciated!!
© Server Fault or respective owner