Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!!

share|improve this question

1 Answer 1

first, if you run jboss7 ajp is listening?

example:
ubuntu@dtub001:~$ netstat -na|grep 8009
tcp        0      0 127.0.0.1:8009          0.0.0.0:*               LISTEN

post your: netstat -na|grep 8009

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.