Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mini HowTo: Apache2 frontend with Jboss via mod_jk2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
WebSel
n00b
n00b


Joined: 09 Apr 2004
Posts: 7
Location: Maarn, The Netherlands

PostPosted: Sun Mar 27, 2005 10:59 am    Post subject: Mini HowTo: Apache2 frontend with Jboss via mod_jk2 Reply with quote

This is a fast Quick start to get Apache2 web server working with JBoss as a backend application server for the first time like me an hour ago ;-).
Both servers are running on the localhost.

For the Jboss server I use the version 4.0.1sp1, just get it from www.jboss.org unpack it under /opt, make a symbolic link from the unpacked directory to jboss and start it up with /opt/jboss/bin/run.sh
I presume you have Apache2 and Jboss already setup and running.

There is nothing to configure on the Jboss side, for extra details you can read:
JBoss 4.0 docu Connectors chap9

For the non-java side there is very little to configure thanks to the emerge guys :-)

First emerge the mod_jk2
Code:
# emerge mod_jk2


After the emerge finished, we need to make apache aware of the plugin
Code:
# vi /etc/apache2/conf/apache2.conf


Add the following line under the other LoadModule lines:
Code:
LoadModule jk2_module         extramodules/mod_jk2.so


Now add some test url. Remove this ASP it's only for testing now.
Code:
#  vi /etc/apache2/conf/workers2.properties

add the following lines to the end of the file:
Code:
[uri:/web-console/*]
worker=ajp13:localhost:8009   

This will export the web-admin of JBoss to the Apache web server.
Restart Apache
Code:
# /etc/init.d/apache2 restart

Test if JBoss is running by opening the url:
http://<your.host.name>:8080/web-console
Ok? You should see the JBoss web console
Test if Apache is running by opening the url:
http://<your.host.name>/
Ok? Now for the final test:
open the url http://<your.host.name>/web-console
You should see the web-admin console of the JBoss application server running over Apache.
Great! That's all. If you need other urls just edit the workers2.properties file.

Wessel de Roode

References:
Working with mod_jk, Jakarta-Apache
JSP Hosting: mod_jk2 Apache Connector, Rimuhosting, Different approaches for Tomcat on port 80
JBoss 4.0 Docu, 9.7 Using Apache with the Tomcat
Back to top
View user's profile Send private message
neotyk
n00b
n00b


Joined: 23 Mar 2004
Posts: 37
Location: Mind?

PostPosted: Wed Apr 13, 2005 3:23 pm    Post subject: mod_jk2 officialy unsupported by Apache Reply with quote

Please see https://bugs.gentoo.org/show_bug.cgi?id=77834 and https://bugs.gentoo.org/show_bug.cgi?id=19094, mod_jk2 is officialy not supported by Apache.
_________________
yes, yes, no, no
[img:5b0d5ae295]http://jobble.uaznia.net/images/antypixel/Jobblemap.png[/img:5b0d5ae295]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum