|
Home > Archive > Apache Server configuration support > November 2006 > Apache + JK Connector 1.2.19 + JBoss 4.03 Configuration Issue
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Apache + JK Connector 1.2.19 + JBoss 4.03 Configuration Issue
|
|
| patil.sunita@gmail.com 2006-11-20, 7:33 am |
| Environment:
Redhat Enterprise Server 4, 64Bit
Apache Web server 2.0.59
JBoss 4.03(includes Tomcat 5.5)
JK Connector 1.2.19
The xyz.war file is under
<JBOSS_HOME>/server/web/deploy folder
The httpd.conf for apache is below(relevent lines):
LoadModule jk_module modules/mod_jk.so
DocumentRoot "<static_content_home>" <--- not the jboss home
<Directory "<static_content_home>">
DirectoryIndex /jsp/account/login.jsp login.jsp index.jsp index.html
index.html.var
JkWorkersFile /opt/apache2/conf/workers.properties
JkLogFile /opt/apache2/logs/mod_jk.log
JkLogLevel debug
JkMount /xyz/*.jsp worker1
The workers.properties is below:
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300
I start apache server and the JBOSS server without problems.
When I try the URL http://localhost/ I get JBOSS console.
However, when I try the URL http://localhost/xyz, I get 404 Page not
found error. Seems like my configuration is not right.
Any suggestions or how to configure a similar environment will be
appreciated.
Thanks in advance..
Sunita
| |
| Davide Bianchi 2006-11-20, 7:33 am |
| On 2006-11-20, patil.sunita@gmail.com <patil.sunita@gmail.com> wrote:
> JkMount /xyz/*.jsp worker1
>
> When I try the URL http://localhost/ I get JBOSS console.
Hummm... something make me think that you should NOT get the JBoss
console without requesting it...
> However, when I try the URL http://localhost/xyz, I get 404 Page not
And if you remove the '*.jsp' bit from your JkMount statement? Anything
relevant in the logs?
Davide
--
Eh? Linux is luserproof? What kind of "proper" set up is that,
ripping out all removable media devices and ethernet, freezing the
hard drive spindle, encasing it in concrete and dropping it off a pier?
-- Greg Andrews on alt.sysadmin.recovery
| |
| patil.sunita@gmail.com 2006-11-20, 7:23 pm |
| Thanks for your reply.
When I remove the JkMount bit, all I get on the web browser is a file
directory listing of the static content directory(DocumentRoot in
httpd.conf).
In the mod_jk.log all it says is, a series of the debug information
shown below. Basically it is going through all the items in
DirectoryIndex in httpd.conf and trying to map the uri to the worker
and finding 0 maps.
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/jsp/account/login.jsp' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/login.jsp' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/login.jsp' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/index.jsp' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/index.jsp' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/index.html' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/index.html' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/index.html.var' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/index.html.var' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/HEADER.html' from 0 maps
[Mon Nov 20 18:46:23 2006] [24780:41440] [debug]
map_uri_to_worker::jk_uri_worker_map.c (513): Attempting to map URI
'/xyz/HEADER.html' from 0 maps
Any clues?
Thanks again for your help.
Davide Bianchi wrote:
> On 2006-11-20, patil.sunita@gmail.com <patil.sunita@gmail.com> wrote:
>
> Hummm... something make me think that you should NOT get the JBoss
> console without requesting it...
>
>
> And if you remove the '*.jsp' bit from your JkMount statement? Anything
> relevant in the logs?
>
> Davide
>
> --
> Eh? Linux is luserproof? What kind of "proper" set up is that,
> ripping out all removable media devices and ethernet, freezing the
> hard drive spindle, encasing it in concrete and dropping it off a pier?
> -- Greg Andrews on alt.sysadmin.recovery
|
|
|
|
|