How to integrate Apache HTTPD 2.0.x + Tomcat 6.0.x
Hi guys, I was trying to find some tutorial on integrating Apache HTTPD 2 + Tomcat 6 but has no luck. All of them just don't work. I found 1 here http://blog.taragana.com/index.php/archive/5-steps-to-integrate-tomcat-55-with-apache-20/ but doesn't work at all. Anyone pls kindly give a working tutorial here or got any website showing working example? Thanks -- View this message in context: http://www.nabble.com/How-to-integrate-Apache-HTTPD-2.0.x-%2B-Tomcat-6.0.x-tf4542545.html#a12963417 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to integrate Apache HTTPD 2.0.x + Tomcat 6.0.x
Plant More Tree wrote: > Hi guys, > >I was trying to find some tutorial on integrating Apache HTTPD 2 + Tomcat > 6 but has no luck. All of them just don't work. I found 1 here > > http://blog.taragana.com/index.php/archive/5-steps-to-integrate-tomcat-55-with-apache-20/ > > but doesn't work at all. > > Anyone pls kindly give a working tutorial here or got any website showing > working example? > > Thanks You could list what you've already tried out, and what went wrong/error messages and we'd have a bit more to work with. mod_jk is probably preferable, it uses the AJP connector listed in the server.xml. there are binaries and src available from Tomcat, called Connectors: http://tomcat.apache.org/connectors-doc/ did you install httpd from src or a binary, and which OS are you using? p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to integrate Apache HTTPD 2.0.x + Tomcat 6.0.x
Plant More Tree <[EMAIL PROTECTED]> kirjoitti: Hi guys, I was trying to find some tutorial on integrating Apache HTTPD 2 + Tomcat 6 but has no luck. All of them just don't work. I found 1 here http://blog.taragana.com/index.php/archive/5-steps-to-integrate-tomcat-55-with-apache-20/ but doesn't work at all. Anyone pls kindly give a working tutorial here or got any website showing working example? don't have a working sample, never done that. But as both use the http protocol, you need apache (as described in the link you gave) to query the tomcat server. Then things depend on which port youset tomcat to work on, by default on 8080. in the example given it was 8081. LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so ProxyPass /test/ http://localhost:8081/mytest/ ProxyPassReverse /test/ http://localhost:8081/mytest/ naturally you need to replace the above directories and port withthe one you are using on tomcat. as I see it the proxypass and proxyreverse lines give proxy access to tomcats application which is accessable in /mytest/ hope this helps Thanks -- View this message in context: http://www.nabble.com/How-to-integrate-Apache-HTTPD-2.0.x-%2B-Tomcat-6.0.x-tf4542545.html#a12963417 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to integrate Apache HTTPD 2.0.x + Tomcat 6.0.x
Could you provide some more detail on what you've tried? "... but it doesn't work" is not an effective request for help. Specifically we'd like to see the ports tomcat is running on as well as relevant portions of your apache config and the urls you have tried. --David Plant More Tree wrote: Hi guys, I was trying to find some tutorial on integrating Apache HTTPD 2 + Tomcat 6 but has no luck. All of them just don't work. I found 1 here http://blog.taragana.com/index.php/archive/5-steps-to-integrate-tomcat-55-with-apache-20/ but doesn't work at all. Anyone pls kindly give a working tutorial here or got any website showing working example? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify a default context?
Is there no other way, one which leaves the app with its original name? Because of the convoluted way I've written the app, renaming it to ROOT has bad effects. Thanks, Ken Bowen Hassan Schroeder wrote: On 9/29/07, Ken Bowen <[EMAIL PROTECTED]> wrote: When no contexts for a Host are specified in server.xml, but all are placed in the META-INF of their respective apps, how does one specify one of them as the default Context for that Host? Name it ROOT (directory) or ROOT.war, as appropriate. HTH, - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to specify a default context?
> From: Ken Bowen [mailto:[EMAIL PROTECTED] > Subject: Re: How to specify a default context? > > Is there no other way, one which leaves the app with its > original name? Place your webapp outside of the 's appBase directory, and put your element in conf/Catalina/[host]/ROOT.xml with a docBase attribute pointing to the absolute file system location of your webapp. > Because of the convoluted way I've written the app, renaming > it to ROOT has bad effects. If you have coded the app to use a specific URL to refer to itself, then it can't be the default app, can it? If you've coded I/O paths within the app, then you've violated the servlet spec, which expects that webapps can be deployed on devices without file systems. Either are major design flaws that should never make it into a production system. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to specify a default context?
Absolutely all correct, including the design flaws (partly due to the learning curve, partly to the process of pasting together non-web software which has such embedded knowledge -- needs to be overcome). However, after my 3rd cup of coffee this morning, it occurrs to me that what I'm after is not really that myapp be the /default/ application, but that myapp be the application which runs when the server receives the request http://myhost, where myhost is the name of the HOST in which myapp is a Context. As a Context for HOST, the request http://myhost/myapp/ causes myapp to run. Since I plan to use http://tuckey.org/urlrewrite/ to rewrite URLs, and since "/" will rewrite to "/myapp/", then the request htpp://myhost/ will ending up causing myapp to handle the request. Is this sound? Am I missing something here? Thanks, Ken Caldarale, Charles R wrote: From: Ken Bowen [mailto:[EMAIL PROTECTED] Subject: Re: How to specify a default context? Is there no other way, one which leaves the app with its original name? Place your webapp outside of the 's appBase directory, and put your element in conf/Catalina/[host]/ROOT.xml with a docBase attribute pointing to the absolute file system location of your webapp. Because of the convoluted way I've written the app, renaming it to ROOT has bad effects. If you have coded the app to use a specific URL to refer to itself, then it can't be the default app, can it? If you've coded I/O paths within the app, then you've violated the servlet spec, which expects that webapps can be deployed on devices without file systems. Either are major design flaws that should never make it into a production system. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to specify a default context?
> From: Ken Bowen [mailto:[EMAIL PROTECTED] > Subject: Re: How to specify a default context? > > Since I plan to use http://tuckey.org/urlrewrite/ to > rewrite URLs, and since "/" will rewrite to "/myapp/", > then the request htpp://myhost/ will ending up causing > myapp to handle the request. Yes, using a filter or valve to forward or redirect requests to the desired URI should work. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OOME crushing tomcat
Hi, one of my customers recently increased amount of memory they use, so OOME are happening more often. Most of them however do no harm, since just the request is aborted, but the container remains functional and next request wents well (they have a throughput of >100MB per second in young generation so chances are good next request will get some memory again). However, this exception killed tomcat completely (no replies anymore): Sep 30, 2007 6:56:51 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing [EMAIL PROTECTED], terminating thread Any opinions, is that a bug in tomcat or is it inescapable after an OOME? regards Leon - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]