[jboss-user] [Installation, Configuration & DEPLOYMENT] - Configuring Jboss + Apache HTTPD + tomcat

sbarreros do-not-reply at jboss.com
Mon Dec 10 00:15:19 EST 2007


Hello,
after 2 days of trying multiple things I finally have decided to seek for expert advice from you guys.
Here is my scenerio, I have Apache2, jboss4.2.2, and tomcat 5 all running on the same linux server and I need to have them work all together which they were to a certain extent.

We recently installed a php application to our apache server and that is when things started to get a but much for me.
The problem is that I need to have diferent directories respond to different applications.
For example 

www.mydomain.com/mail goes to the stand alone tomcat
www.mydomain.com/customapp goes to my php application
www.mydomain.com goes to my Jboss server
www.mydomain.com/jbossapp goes to my jboss server

Let me show you my configuration files first.

This is my modjk configuration file for apache
===============================================
LoadModule      jk_module       /usr/lib/apache2/mod_jk.so

JkWorkersFile /etc/apache2/conf.d/workers.properties
#JkShmFile /var/log/apache2/mod_jk.shm
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkLogLevel debug

JkMount /* jboss
JkMount /mail/*  tomcat



This is my workers.properties file
==============================================
worker.list=tomcat,jboss
worker.jboss.port=8009
worker.jboss.host=localhost
worker.jboss.type=ajp13
worker.jboss.lbfactor=1

worker.tomcat.port=8008
worker.tomcat.host=localhost
worker.tomcat.type=ajp13
worker.tomcat.lbfactor=1

And this is the configuration for the PHP application
==============================================
<IfModule mod_alias.c>
    Alias /customapp          /home/apps/apache/www/customapp


<IfModule sapi_apache2.c>

<Directory /home/apps/apache/www/customapp>
    Options -Indexes -FollowSymLinks +ExecCGI
    AllowOverride None

    Order allow,deny
    Allow from all

    php_value session.save_handler user

    php_value max_execution_time 300


    AddDefaultCharset ISO-8859-1

    php_value register_globals 1




<Directory /home/apps/apache/www/customapp/bin>
    Order deny,allow
    Deny from all





The problem with Jboss is that if I set JkMount /* jboss  in my configurations it will respond  for the path that my php application should be responding. And the response is one of those generic Jboss errors directory not found.
 
I know I am mounting Jboss to respond to anything when I set it like that.
But first, if I set something like JkMount /jmx-console/* jboss I get an error message from the apache server and in my modjk log I get this error message

[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/jmx-console'
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/jmx-console'
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/HTTP_NOT_FOUND.html.var'
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Sun Dec 09 23:06:09 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker


when I had only the jboss server and the tomcat server running simultaniously I had no problem mounting jboss as JkMount /* but now that I need the php application I can't mount it like that.

-First, why when I set JkMount /jmx-console/* jboss it does not work?
 Only when I set it as JkMount /* jboss I can access the jmx console 

Once I get the issue above resolved, 
-How do I get my application to be the root application for my domain?
Like I mentioned before I was accomplishing this by setting JkMount /* but I can't do that any more....

Sorry I know it is a lot to digest, but I am pulling my hair out trying to make this work

Any help is greatly appreciated!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111504#4111504

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111504



More information about the jboss-user mailing list