Re: how to replace apache's mod_alias
Thanks Charles and Chris -- that works! Dennis On Oct 15, 2009, at 2:06 PM, Caldarale, Charles R wrote: From: Dennis Christopher [mailto:dchristop...@pixion.com] Subject: Re: how to replace apache's mod_alias Next, and maybe I didnt follow directions properly, I added the directory conf/localhost which then contained myapp-web.xml with the (pathless) context below. Close, but that needs to be conf/Catalina/localhost/myapp-web.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to replace apache's mod_alias
Hmm. I thought that correction would make it work, but still no go. I don't have any structure under conf, and usually add contexts in server.xml . I tried this first, giving path="/myapp-web". But this didnt work. It seems by the logic of what we are trying, i.e. making the docBase = /library/webserver/documents', that my images, e.g won't be reachable unless the symbolic link in the docBase is valid as well. It looks like it is, but just in case, I tried putting the absolute path into the docBase as well. No go either. Next, and maybe I didnt follow directions properly, I added the directory conf/localhost which then contained myapp-web.xml with the (pathless) context below. Tried this also with the absolute path and still no joy. Dennis On Oct 15, 2009, at 1:07 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: how to replace apache's mod_alias Create a file under CATALINA_BASE/conf/[service]/[host]/myapp-web.xml that contains the following: That should be docBase, not appBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to replace apache's mod_alias
Chris, the user accesses my jsps via http://host/my-app. The jsps include references of the form below, as request dumper valve tells me: /myapp-web/styles/images/mylogo.jsp where myapp-web is a directory elsewhere on the system. so the full path reference style is never done as such. Dennis On Oct 15, 2009, at 11:26 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 10/15/2009 11:15 AM, Dennis Christopher wrote: My application is a context element '/myapp' accessed via /myapp. Within the app's jsps are references to files in a folder 'myapp-web' whose real location on the server file system is outside the tomcat tree. So, the URLs for these resources are something like http://host/myapp-web/path/to/file? Are they all rooted in the same place? If so, you can basically create a dummy webapp that contains nothing but your files, served out of the location of your choice. Create a file under CATALINA_BASE/conf/[service]/[host]/myapp-web.xml that contains the following: This will deploy a new web application (into /myapp-web) that serves static documents from /library/webserver/documents. This is the equivalent of Apache httpd's: Alias /myapp-web /library/webserver/documents It probably seems a little heavy-handed, but it's because app servers are app-centric, not file/directory centric. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrXPw0ACgkQ9CaO5/Lv0PCE4wCfcZdrk0+0iolmGauFLZDiT5TX xdAAnA6+SyfnqfYirdcIaMWYy8Hrm12s =c97v -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to replace apache's mod_alias
Thanks for the reply Chris. what I want to do: I am running Tomcat as a standalone server on OSX. My application had been previously set up with apache serving in front of Tomcat. My application is a context element '/myapp' accessed via address>/myapp. Within the app's jsps are references to files in a folder 'myapp-web' whose real location on the server file system is outside the tomcat tree. I am unclear whether these references are actually supported in the previous version via mod_alias or a symbolic link created for /library/webserver/documents. Tomcat the definitive guide says that if allowLinking in the myapp context is true that it should work, but so far it has not worked for me. Dennis On Oct 15, 2009, at 10:42 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dennis, On 10/13/2009 11:30 AM, Dennis Christopher wrote: Is there any documentation on how to replace the alias elements in httpd.conf with corresponding elements in Tomcat's configuration? Not directly. But if you describe what you want to do, maybe we can help. I recommend looking at http://tuckey.org/urlrewrite/ which is likely to be the tool that provides a solution for you. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrXNLsACgkQ9CaO5/Lv0PAaZQCbBt9PQEJS/NAK9gz7y//XSp57 MNYAoL9/iIyVb1KHqRV66SACmEui7siY =R0vG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
how to replace apache's mod_alias
environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.6 (Snow Leopard). I have a web app that works under Tomcat with Apache as the front end. I have had issues with the Apache-Tomcat connectors and am trying to set up the app to be served directly by Tomcat, listening on port 80. This is working to a point, but I have some functionality that depends on accessing directories within the document base, and that was handled previously my Mod_Alias in apache. Is there any documentation on how to replace the alias elements in httpd.conf with corresponding elements in Tomcat's configuration? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, I've disabled mod_status in the httpd.conf and now the error no longer appears in mod_jk.log. I try http://localhost/sample/ on the server, as you request, and I am back to "file not found". I can reach the server from outside - the default web page shows up okay and references of the form mysite.com:8080/sample have always worked. It may be helpful to see if mod_jk is the problem. Is there any way to exercise it apart from what we have been trying? Dennis On Sep 7, 2009, at 5:46 AM, Rainer Jung wrote: On 04.09.2009 16:01, Dennis Christopher wrote: Rainer, Apparently apache is calling /server-status - I see that mod_status is No, apache itself isn't calling anything. enabled in httpd.conf and exercises that context. One of the frustrations, and I dont know Apache well, is that the access log seldom updates. The error log in the same folder does update, but contains little information--apache restarts is about it. I don't know if this helps, but I just tried to access the sample web app from the server machine's own browser httpd://localhost/sample and I get "Bad Gateway! The proxy server received an invalid response from an upstream server Error 502 locahost So that indicates, that Apache is answering via mod_jk (or mod_proxy). You should try the correct URL http://localhost/sample/ though. and this does update the access log. So you have a problem reaching your web server from outside. Firewall, DNS, routing or similar stuff. Dennis Christopher On Sep 4, 2009, at 12:49 AM, Rainer Jung wrote: On 03.09.2009 20:24, Dennis Christopher wrote: Rainer, Trying your /sample/ I get the same result. The log appears to respond to that try but the lines are similar to those I originally posted from mod_jk.log. It's as though every context request is translated into '/server-status'. Not very likely. Are those entries also appearing in times you are not testing? If so those are someone else, and your own request isn't handled by the Apache you are looking at. Can you find your request in the access log? Go through all config files and find out, what is configured about /server-status. That URL doesn't have anything to do with mod_jk. Regards, Rainer the bracketed numbers are: [221:268597152] [debug] attempting to map URI '/server-status' from 5 maps. . . [221:268597152] [debug] attempting to map context URI '/sample/*.=JBOSS1*' source JKMount . . all the entries are marked [debug]. 221 is process httpd with user _www. Dennis On Sep 3, 2009, at 1:26 PM, Rainer Jung wrote: On 03.09.2009 19:15, Dennis Christopher wrote: The problem is that I am trying to support simple references to my context without the tomcat port explicitly included. example: myexample.com/sample should invoke the web-app sample. You don't have a JkMount for /sample, only one for /sample/*. What happens, if you point your browser to http://my.apache.name/sample/ If it doesn't work, extract the lines from your mod_jk log, that refer to this request. Look for something like ... [A_NUMBER:ANOTHER_NUMBER] ... Attempting to map URI '/sample/' from ... Then note A_NUMBER:ANOTHER_NUMBER which are the process and thread id used for the request, and get all lines form the log, which have a timestamp close to your request and use the same IDs. Check whether there are any non-debug lines in there. If you can't see what goes wrong, post those lines. Regards, Rainer what happens instead: the browser tells me: "file not found". looking at catalina.out it seems the request doesnt reach Tomcat at all. How I did it: he quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a context setup (/examples"). which I have followed implicitly. I believe you have already seen what I have done with the config files I posted. Dennis P.S as it may be important - if I try example.com:8080/sample the main page of my web app loads but all of its subreferences, to gif images etc, are broken. On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: On 03.09.2009 15:34, Dennis Christopher wrote: Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, Apparently apache is calling /server-status - I see that mod_status is enabled in httpd.conf and exercises that context. One of the frustrations, and I dont know Apache well, is that the access log seldom updates. The error log in the same folder does update, but contains little information--apache restarts is about it. I don't know if this helps, but I just tried to access the sample web app from the server machine's own browser httpd://localhost/sample and I get "Bad Gateway! The proxy server received an invalid response from an upstream server Error 502 locahost and this does update the access log. Dennis Christopher On Sep 4, 2009, at 12:49 AM, Rainer Jung wrote: On 03.09.2009 20:24, Dennis Christopher wrote: Rainer, Trying your /sample/ I get the same result. The log appears to respond to that try but the lines are similar to those I originally posted from mod_jk.log. It's as though every context request is translated into '/server- status'. Not very likely. Are those entries also appearing in times you are not testing? If so those are someone else, and your own request isn't handled by the Apache you are looking at. Can you find your request in the access log? Go through all config files and find out, what is configured about /server-status. That URL doesn't have anything to do with mod_jk. Regards, Rainer the bracketed numbers are: [221:268597152] [debug] attempting to map URI '/server-status' from 5 maps. . . [221:268597152] [debug] attempting to map context URI '/sample/*.=JBOSS1*' source JKMount . . all the entries are marked [debug]. 221 is process httpd with user _www. Dennis On Sep 3, 2009, at 1:26 PM, Rainer Jung wrote: On 03.09.2009 19:15, Dennis Christopher wrote: The problem is that I am trying to support simple references to my context without the tomcat port explicitly included. example: myexample.com/sample should invoke the web-app sample. You don't have a JkMount for /sample, only one for /sample/*. What happens, if you point your browser to http://my.apache.name/sample/ If it doesn't work, extract the lines from your mod_jk log, that refer to this request. Look for something like ... [A_NUMBER:ANOTHER_NUMBER] ... Attempting to map URI '/sample/' from ... Then note A_NUMBER:ANOTHER_NUMBER which are the process and thread id used for the request, and get all lines form the log, which have a timestamp close to your request and use the same IDs. Check whether there are any non-debug lines in there. If you can't see what goes wrong, post those lines. Regards, Rainer what happens instead: the browser tells me: "file not found". looking at catalina.out it seems the request doesnt reach Tomcat at all. How I did it: he quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a context setup (/examples"). which I have followed implicitly. I believe you have already seen what I have done with the config files I posted. Dennis P.S as it may be important - if I try example.com:8080/sample the main page of my web app loads but all of its subreferences, to gif images etc, are broken. On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: On 03.09.2009 15:34, Dennis Christopher wrote: Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server- status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) a
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, Trying your /sample/ I get the same result. The log appears to respond to that try but the lines are similar to those I originally posted from mod_jk.log. It's as though every context request is translated into '/server- status'. the bracketed numbers are: [221:268597152] [debug] attempting to map URI '/server-status' from 5 maps. . . [221:268597152] [debug] attempting to map context URI '/sample/ *.=JBOSS1*' source JKMount . . all the entries are marked [debug]. 221 is process httpd with user _www. Dennis On Sep 3, 2009, at 1:26 PM, Rainer Jung wrote: On 03.09.2009 19:15, Dennis Christopher wrote: The problem is that I am trying to support simple references to my context without the tomcat port explicitly included. example: myexample.com/sample should invoke the web-app sample. You don't have a JkMount for /sample, only one for /sample/*. What happens, if you point your browser to http://my.apache.name/sample/ If it doesn't work, extract the lines from your mod_jk log, that refer to this request. Look for something like ... [A_NUMBER:ANOTHER_NUMBER] ... Attempting to map URI '/sample/' from ... Then note A_NUMBER:ANOTHER_NUMBER which are the process and thread id used for the request, and get all lines form the log, which have a timestamp close to your request and use the same IDs. Check whether there are any non-debug lines in there. If you can't see what goes wrong, post those lines. Regards, Rainer what happens instead: the browser tells me: "file not found". looking at catalina.out it seems the request doesnt reach Tomcat at all. How I did it: he quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a context setup (/examples"). which I have followed implicitly. I believe you have already seen what I have done with the config files I posted. Dennis P.S as it may be important - if I try example.com:8080/sample the main page of my web app loads but all of its subreferences, to gif images etc, are broken. On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: On 03.09.2009 15:34, Dennis Christopher wrote: Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server- status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, The problem is that I am trying to support simple references to my context without the tomcat port explicitly included. example: myexample.com/sample should invoke the web-app sample. what happens instead: the browser tells me: "file not found". looking at catalina.out it seems the request doesnt reach Tomcat at all. How I did it: he quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a context setup (/examples"). which I have followed implicitly. I believe you have already seen what I have done with the config files I posted. Dennis P.S as it may be important - if I try example.com:8080/sample the main page of my web app loads but all of its subreferences, to gif images etc, are broken. On Sep 3, 2009, at 12:48 PM, Rainer Jung wrote: On 03.09.2009 15:34, Dennis Christopher wrote: Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. No I'm pretty sure this is not the case. I expect someone has a monitoring tool running or a browser windows with auto-refresh for /server-status and that's what produces those debug log lines in mod_jk. No problem per se. So back to the basic question: what is your problem? What are you trying to achieve, what did you do to make it work, how do you test it, what result do you expect and what happens instead? Regards, Rainer I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server-status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.host=localhost worker.JBoss2.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # > If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=JBoss1, JBoss2 # # Blojsom worker # # # Worker created specifically for Blojsom. worker.blojsomworker.port=1279 worker.blojsomworker.host=127.0.0.1 worker.blojsomworker.type=ajp13 worker.blojsomworker.lbfactor=100 # END workers.properties # On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: On 27.08.2009 15:45, Dennis Christopher wrote: environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/myapplication honoured (or even localhost/myapplication). (Safari:File not found).I have googled the error messages below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, I am not sending /server-status explicitly. The mod_jk log which I excerpted earlier shows the processing of server-status before any context is asked for, apparently when Tomcat starts up. The log continues to repeat these entries - apparently mod_jk is looping trying to satisfy this context and never does. I added JkMountCopy All but this had no effect. Dennis On Sep 3, 2009, at 4:18 AM, Rainer Jung wrote: On 02.09.2009 21:45, Dennis Christopher wrote: Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 I don't understand, why you test this with a request /server-status. That doesn't make sense, because you don't want /server-status to be forwarded by mod_jk and in fact you didn't configure it. So choose a better URL to test (one of the URLs you have a JkMount for) and add "JkMountCopy All". Regards, Rainer 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.host=localhost worker.JBoss2.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # > If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=JBoss1, JBoss2 # # Blojsom worker # # # Worker created specifically for Blojsom. worker.blojsomworker.port=1279 worker.blojsomworker.host=127.0.0.1 worker.blojsomworker.type=ajp13 worker.blojsomworker.lbfactor=100 # END workers.properties # On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: On 27.08.2009 15:45, Dennis Christopher wrote: environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/myapplication honoured (or even localhost/ myapplication). (Safari:File not found).I have googled the error messages below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a connector setup (/examples"). However, this does not work, though I have followed the editing of the configuration files exactly (using JKMount in the httpd.conf etc) I get an error in mod_jk.log (set to debug level): [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): (TEST) Attempting to map URI '/server-status' from 5 maps [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1039): Initial match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/examples/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/servlet/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/sample/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.jsp=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2
Re: /context not working -- mod_jk error: no match for /server-status
Rainer, Thanks for the reply. I was confused in my orginal post: I am not using JBoss at all, only mod_jk. The file contents are as follows below. Apache has a hosts directory, but I'm not sure if the files matter. They are either the apache .default files or slight modifications of them, e.g. virtual_host_global.conf contains just: Listen *:80 Dennis 1. uriworkermap.properties -- not used 2. from apache2/httpd.conf: LoadModule jk_module libexec/apache2/mod_jk.so . . JKWorkersFile /etc/apache2/workers.properties JKLogFile /var/log/apache2/mod_jk.log JKLogLevel debug JKShmFile /var/log/apache2/mod_jk.shm JKMount /*.jsp JBoss1 JKMount /servlet/* JBoss1 JKMount /examples/* JBoss1 JKMount /picturetalk/* JBoss1 JKMount /sample/* JBoss1 . . 3. from apache2/workers.properties: worker.list=JBoss1, JBoss2, loadbalancer, blojsomworker # # First JBoss server # worker.JBoss1.port=8009 worker.JBoss1.host=127.0.0.1 worker.JBoss1.type=ajp13 # Specify the size of the open connection cache. #worker.JBoss1.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # > lbfactor must be > 0 # > Low lbfactor means less work done by the worker. worker.JBoss1.lbfactor=100 # # Second JBoss server # #worker.JBoss2.port=9008 #worker.JBoss2.host=localhost worker.JBoss2.lbfactor=100 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # > If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=JBoss1, JBoss2 # # Blojsom worker # # # Worker created specifically for Blojsom. worker.blojsomworker.port=1279 worker.blojsomworker.host=127.0.0.1 worker.blojsomworker.type=ajp13 worker.blojsomworker.lbfactor=100 # END workers.properties # On Sep 2, 2009, at 2:05 PM, Rainer Jung wrote: On 27.08.2009 15:45, Dennis Christopher wrote: environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/myapplication honoured (or even localhost/ myapplication). (Safari:File not found).I have googled the error messages below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a connector setup (/examples"). However, this does not work, though I have followed the editing of the configuration files exactly (using JKMount in the httpd.conf etc) I get an error in mod_jk.log (set to debug level): [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): (TEST) Attempting to map URI '/server-status' from 5 maps [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1039): Initial match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/examples/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/servlet/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/sample/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/*.jsp=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1047): Match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] jk_translate::mod_jk.c (3536): no match for /server-status found Any help on how to diagnose what the seeming error is pointing to would be much appreciated. This log snippet is not useful, because the request you used was for /server-status, which is most likely not a request you want mod_jk to send to JBoss. Please post all your JK directives from your httpd.conf and the files included in that. Also post your workers.properties, and if you use it the uriworkermap.properties file. The most common cause why simple setups do not work is the use of virtual hosts in the Apache configuration. If you have virtual hosts, y
mod_jk error
environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). My mod_jk error log set to debug level tells me "Attempting to map URI /server-status" then "no match for server-status found" Anyone know if this error matters, and if so where the URI "server- status" is coming from? Dennis Christopher - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: /context not working -- mod_jk error: no match for /server-status
'/ examples/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ servlet/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ sample/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ *.jsp=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1047): Match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] jk_translate::mod_jk.c (3536): no match for /server-status found Any help on how to diagnose what the seeming error is pointing to would be much appreciated. Dennis Christopher _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCB&publ=WLHMTAG&crea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
/context not working -- mod_jk error: no match for /server-status
environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/ myapplication honoured (or even localhost/myapplication). (Safari:File not found).I have googled the error messages below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a connector setup (/examples"). However, this does not work, though I have followed the editing of the configuration files exactly (using JKMount in the httpd.conf etc) I get an error in mod_jk.log (set to debug level): [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): (TEST) Attempting to map URI '/server-status' from 5 maps [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1039): Initial match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ examples/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ servlet/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.783 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ sample/*=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/ *.jsp=JBoss1' source 'JkMount' [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1047): Match value:for URI '/server-status' is -1. [Tue Aug 25 12:41:11.784 2009] [211:2688784416] [debug] jk_translate::mod_jk.c (3536): no match for /server-status found Any help on how to diagnose what the seeming error is pointing to would be much appreciated. Dennis Christopher
mod_jk connector runtime error on OS X Server
environment: Tomcat 6.0.18 under apache2 on Mac OS X Server 10.5 (Leopard). I am using a mod_jk connector with JBoss. I am having trouble getting context urls of the form website.my.com/ myapplication honoured. (Safari:File not found).I have googled the error message below but can't find anything applicable to my setup. The quick start guide at http://tomcat.apache.org/connectors-doc/generic_howto/quick.html gives a simple proof of concept for a connector setup (/examples"). However, this does not work, though I have followed the editing of the configuration files exactly. I get an error in mod_jk.log (set to debug level): (601)Attempting to map context URI '/examples/*=JBoss1' source JkMount Any help on how to diagnose what the seeming error is pointing to would be much appreciated. Dennis Christopher