-
1. Re: deploying application on root context of jboss/apache co
darranl May 13, 2004 4:34 AM (in response to aalmero)Have you got your application configured to work with apache on a non root context?
-
2. Re: deploying application on root context of jboss/apache co
aalmero May 18, 2004 11:08 AM (in response to aalmero)yes i did.
-
3. Re: deploying application on root context of jboss/apache co
eusdart May 21, 2004 9:18 AM (in response to aalmero)Hello,
I am trying to get apache 1.3 integrated with Jboss-3.2.4 and I can't seem to get it working. Apache is running on port 80 and JBoss/tomcat is on port 8080 (though the apj13 is using 8009). I have tried using info from various postings on the Jboss wiki (though most reference Apache 2.0 and mod_jk2) but I cannot get apache to pass control to JBoss/Tomcat. Can you give me some guidance on how you did it and what reference material you used to integrate the two? I am stuck on th Apache 1.3 release due to issues running Pearl reports that fail when we attempt to use Apache 2.0.
Here is the Apache "httpd.conf" entries I added at the end of the file:
Alias /static 'c:/static/'
<Directory 'c:/static/'>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile C:/appServer/Apache13/Apache/conf/workers.properties
JkLogFile C:/Tomcat4_1_12/logs/mod_jk.log
JkLogLevel debug
Alias /web-console C:/appServer/jboss-3.2.4RC2/server/default/deploy
JkMount /web-console/* worker2
JkMount /web-console/*.jsp worker2
<Location "/web-console/WEB-INF/">
AllowOverride None
deny from all
Here is the "workers.properties" file I created (its in the Apache /conf dir)
# Set properties for worker2 (ajp13)
worker.list=worker2
worker.worker2.type=ajp13
worker.worker2.host=locahost
worker.worker2.port=8009
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300
Is this correct?
Is workers.props file in the right dir?
Is there more to configure?
according to doc I read there is nothing to configure on the JBoss side becase the APJ13 entries are already established "on-of-the-box"...
Thanks for any help you can provide.
eusdart -
4. Re: deploying application on root context of jboss/apache co
aalmero May 25, 2004 10:30 PM (in response to aalmero)provided you have the right dll. please note the this i only a sample config.
1. create a file mod_jk.conf in /conf with the following entries
#
# mod_jk configuration file
# by: alex almero alex_almero@yahoo.com
#
#
# Load mod_jk
#
LoadModule jk_module modules/mod_jk.dll
#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /sampleapp/* loadbalancer
JkMount /jmx-console/* loadbalancer
2. create a file workers.properties in /conf with the following entries
#
# workers.properties file
# by: aalmero alex_almero@yahoo.com
#
ps=\
# list workers
worker.list=loadbalancer
# define the workers
# first ajp13 worker
worker.instance1.port=8009
worker.instance1.host=localhost
worker.instance1.type=ajp13
#worker.instance1.cachesize
worker.instance1.lbfactor=100
# second ajp13 worker
worker.instance2.port=9009
worker.instance2.host=localhost
worker.instance2.type=ajp13
#worker.instance2.cachesize
worker.instance2.lbfactor=100
# first loadbalancer worker
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=instance1,intance2
# end workers.properties
3. insert on the last line of your httpd.conf
Include conf/mod_jk.conf
4. modify JBOSS_HOME\server\default\deploy\jbossweb-tomcat41.sar\META-INF\jboss-service.xml
define AJP 1.0 workers that corresponds to definitions made on workers.properties.
e.g
<!-- A AJP 1.3 Connector on port 8009 -->
<!-- A AJP 1.3 Connector on port 8009 -->
5. restart your apache the jboss
alex -
5. Re: deploying application on root context of jboss/apache co
aalmero May 25, 2004 10:35 PM (in response to aalmero)i think the problem with your config is
# Set properties for worker2 (ajp13)
worker.list=worker2
worker.worker2.type=ajp13
worker.worker2.host=locahost
worker.worker2.port=8009
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300