-
1. Re: how to integrate apache web server and jboss 7
rhusar Oct 23, 2011 3:37 PM (in response to aupres)1 of 1 people found this helpfulJoseph,
I recommend you try out mod_cluster which heavily simplifies the configuration plus provides multiple advantages over mod_jk plus its bundled in AS7 as well, ceck out the doc: https://docs.jboss.org/author/display/AS7/mod_cluster+in+AS7
Rado
-
2. Re: how to integrate apache web server and jboss 7
aupres Oct 23, 2011 9:24 PM (in response to rhusar)Thanks for your reply ,Ragdo I will check integration with mod_cluster.
And also I want to know how to integerate with 'jvmRoute' and 'UseJK' element as well.
Pls, kindly inform me. Thanks.
Joseph
-
3. Re: how to integrate apache web server and jboss 7
greco Dec 14, 2011 3:20 PM (in response to aupres)In a single instance configuration mod_cluster is overkill and too time consuming to configure. The simplicity of mod_jk is that you tell your container which port to listen to for AJP traffic and apache will handle serving the traffic. It's frustrating that a platform as evolved as JBoss still hasn't mastered a simple integration that has been around for close to a decade. Reason's like this make me wonder if leaving Glassfish for JBoss was a good move.
UPDATE: I added the changes to the standalone.xml file as per https://docs.jboss.org/author/display/AS7/AJP+Connectors and everything is working.
Back to feeling good about JBoss.
-
4. Re: how to integrate apache web server and jboss 7
rhusar Dec 14, 2011 8:08 PM (in response to greco)Greco, mod_cluster was designed to simplify configuration by having it autoconfigure. I agree that adding modules to HTTPd can be a little pain, but no less than adding mod_jk (unless its pulled in via GNU/Linux software mgmt tools). Please share your experience if you think different.
-
5. Re: how to integrate apache web server and jboss 7
greco Dec 15, 2011 9:01 AM (in response to greco)Awesome!
I guess I kind of overreacted on the whole thing, not being able to find any solution online until I stumbled onto the doc, should have searched for it in the begining.
Radoslav, my point was that mod_cluster was an overkill solution for a single instance install, and that simply adding 2 lines in the standalone configuration was exactly what I was looking for.
-
6. Re: how to integrate apache web server and jboss 7
aupres Dec 16, 2011 6:08 AM (in response to greco)Hello again, greco!
Would you attach your standalone.xml of jboss 7 on this reply, please? I failed
Best regards!
-
7. Re: how to integrate apache web server and jboss 7
greco Dec 16, 2011 8:54 AM (in response to aupres)Changes made to standalone.xml are in bold.
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" enabled="true"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
<subsystem xmlns="urn:jboss:domain:weld:1.0"/>
</profile>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public">
<socket-binding name="ajp" port="8009"/>
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
<socket-binding name="jmx-connector-registry" port="1090" interface="management"/>
<socket-binding name="jmx-connector-server" port="1091" interface="management"/>
<socket-binding name="jndi" port="1099"/>
<socket-binding name="osgi-http" port="8090" interface="management"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
</socket-binding-group>
-
8. Re: how to integrate apache web server and jboss 7
shasho Oct 6, 2012 2:18 AM (in response to greco)Hello
in AS 7.1.1 you need to add "scheme="ajp"
the corrent line is
<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" enabled="true" scheme="ajp" />
Amir
-
9. Re: how to integrate apache web server and jboss 7
erasmomarciano Oct 8, 2012 6:24 AM (in response to shasho)I think
<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" enabled="true" scheme="http" />
Amir Shay ha scritto:
Hello
in AS 7.1.1 you need to add "scheme="ajp"
the corrent line is
<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" enabled="true" scheme="ajp" />
Amir
Now it works?
-
10. Re: how to integrate apache web server and jboss 7
shasho Oct 9, 2012 5:07 AM (in response to erasmomarciano)It worked but with some bugs. So I moved to mod_proxy http://www.rosehosting.com/blog/how-to-install-and-configure-jboss-as-with-java-and-apache2-as-a-reverse-proxy/
I am still testing the proxy configuration
-
11. Re: how to integrate apache web server and jboss 7
erasmomarciano Oct 9, 2012 9:39 AM (in response to shasho)Remember
You can configure the mod_proxy of Apache usig three different protocol
http
https
ajp
-
12. Re: how to integrate apache web server and jboss 7
ouapdouap Dec 11, 2012 5:30 AM (in response to aupres)Hi there,
Sorry to bring that up, but did exactly what you did, the exact same configuration, but I can manage to make it work.
I'm using Apache 2.2.22 and JBoss 7.1.1-final, under Windows 7 64 bits.
I can't have http://localhost to display JBoss's welcome page, which is displayed using http://localhost:8080.
Any help would be appreciated.
Sebastien
-
13. Re: how to integrate apache web server and jboss 7
aupres Dec 11, 2012 5:49 AM (in response to ouapdouap)Greco's reply above is correct when you type in standalone.xml of JBoss 7.1.1. In apache web server side your work is the same as that in prevous jboss 5.1 things.
If there is no JBoss welcome page on http://localhost, it is not incorrect. In my case I could not, either.
I coded some JSP file, for example http://localhost:8080/example.jsp. Then I erased port number 8080 http://localhost/example.jsp , I checked the configuration with this url.
I hope this is helpful.
Joseph
-
14. Re: how to integrate apache web server and jboss 7
ouapdouap Dec 11, 2012 6:09 AM (in response to aupres)Maybe I'm wrong, but isn't URI mappings defined into the uriworkermap.properties file supposed to "redirect" these requests to JBoss ?
I have a war deployed in JBoss, which has a "myApplication" context.
I added the following in the uriworkermap.properties file:
/myApplication/*=loadbalancer
/myApplication=loadbalancer
http://localhost:8080/myApplication gives me access to the welcome page of my application while http://localhost/myApplication just gives me a 404.
Maybe I'm missing something.