newbie question: Tomcat/Apache settings
Hi, I have apache 1.3.x and tomcat 4.x installed on XP machine. apache is running at port 80 and tomcat running on port 8080. it seems that tomcat has its own web server, even i stopped the apache server process, tomcat was able to run on its own. my question is: how to integrate apache and tomcat? i think a simpler form to ask is: how to setup apache/tomcat so that apache serves the HTML/SHTML requests, and tomcat serving JSP/Servlets, while both running on port 80? please forgive me if this question has been posted and replied in the past, i am new to the list... thanks! hong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: Tomcat/Apache settings
Have a look at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html for an overview of the different type of connectors. You need the web server type rather than the HTTP type. You should use the mod_jk with Apache. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html You should use CoyoteConnector with JkCoyoteHandler for Tomcat. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyotejk.html If you will only be accessing Tomcat through Apache, you can remove the HTTP connector on port 8080 but I would leave this until everything else is working. HTH, Mark Hong wu wrote: Hi, I have apache 1.3.x and tomcat 4.x installed on XP machine. apache is running at port 80 and tomcat running on port 8080. it seems that tomcat has its own web server, even i stopped the apache server process, tomcat was able to run on its own. my question is: how to integrate apache and tomcat? i think a simpler form to ask is: how to setup apache/tomcat so that apache serves the HTML/SHTML requests, and tomcat serving JSP/Servlets, while both running on port 80? please forgive me if this question has been posted and replied in the past, i am new to the list... thanks! hong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - Apache - Jk
Is it normal that Apache configured to relay jsp's to Tomcat doesn't write the contents of the page (jpeg, gif, css and others) in it's access log ? I've configured Apache to relay only .jsp and .do requests, how is it that the images don't show up in the access log ??? Luc Boudreau Université du Québec Canada
Re: Tomcat - Apache - Jk
On 6/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is it normal that Apache configured to relay jsp's to Tomcat doesn't write the contents of the page (jpeg, gif, css and others) in it's access log ? I've configured Apache to relay only .jsp and .do requests, how is it that the images don't show up in the access log ??? I dont know answer to your question but this may help you debug the problem. You can enable the AccessLogValve in Tomcat's server.xml to see what is being served by Tomcat. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
The only change I made to httpd.conf was to add the line: Include C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\mod_jk.conf. (You can put the .conf file anywhere, you just have to tell Apache where it's located.) I did find that the HowTo instructions directed you to use Auto-configure. I ran that once to build the mod_jk.conf-auto file. What I found was that it didn't build it correctly. The JKMount paths didn't match what I had in Tomcat. I don't recall what it put in the file, but it wasn't right. I ended up removing the line that they tell you to add to server.xml to auto-configure once I had the format of the mod_jk.conf file. Also, if you examine the mod_jk.conf file, one of the first things it does is to instruct Apache to LoadModule jk_module modules/mod_jk.so, so it isn't necessary to add that to the httpd.conf file. I did populate the information for JkWorkersFile and JkLogfile. Once I had the url's correctly defined, it just worked. I wondered if it would be helpful for those who have been successful at configuring the connector to just publish a document for the various versions of Tomcat; 4.x, 5.0.x, and 5.5.x. I only say that because even the HowTo document that I used seemed to only get me about 50% of the way there. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file. So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I
Re: Tomcat/Apache/JK(2)?
I have Tomcat 5.5.9 using JK to communicate with Apache 2.0.54 just fine. The workers.properties file is configured correctly, the httpd.conf is configured correctly, and I had to make a small change to server.xml to call my new site. This is all running on one Windows 2000 Server machine. When I first started this I was getting the problem listed below. Looking at the mod_jk.log I found that Tomcat 5.5.9 wasn't listening. So, basically what I had to do was start Tomcat MANUALLY, and then everything worked perfectly. So, what I'd like to do is configure JNI so with JK (not JK2 since it is now deprecated) and get Apache 2.0.54 to automatically start Tomcat 5.5.9. Or, I'd like to use JK (via Apache 2.0.54) to start Tomcat 5.5.9 in-process. In short, can I do this? If I can, can someone refer me to the steps I have to take in workers.properties, server.xml, and httpd.config to make this happen. BTW, in my research I have found people using JK to connect Apache 2.0.x to Tomat 4.x, but it usually involves modifying server.xml to use the Tomcat4 CoyoteConnector, and I wasn;t sure if that was available for Tomcat 5.5. Any help would be much appreciated, and if you need any more information from me, please let me know. Thanks. Tom Tom Holmes Jr. wrote: I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file.So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x
Re: Tomcat/Apache/JK(2)?
Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
I agree I should work with the files first to see if I can get it to work. I used the sample workers.properties file from Tomcat 5.5 in order to create my working workers,properties file.So, now when I restart Apache2, it doesn't complain and it looks like it is communicating with Tomcat 5.5. However, when I try my JSP page, I get a big 'OK' at the top of the screen and then I get this error message: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. So . after reading the documentation you referred me to, it looks like I need to update my httpd.conf file a bit more. I mean I got the LoadModule working, but it looks like I need to add some Jk commands like JkMount to my httpd.conf file. So, I am playing with that now. I might need your files as a sample, but I'll work on this on my own for a little while. Thanks very much. Tom Darryl Wilburn wrote: Tom, If you need them, I can send you my actual files. Although I encourage you to do all you can do on your own to figure it out. It'll pay huge dividends in the end if you understand what you had to do to make it work. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Tomcat/Apache/JK(2)?
Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat/Apache/JK(2)?
I too am a Apache/Tomcat/Modjk2 vet. I have begun looking at moving to Tomcat 5.5 and evaluating the need for Apache, as well as other connectors for Modjk2. One you can look at would be Apache Mod Proxy, apparently that has caught on as an excellent way to connect Apache to Tomcat. From: Tom Holmes Jr. [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Tomcat/Apache/JK(2)? Date: Wed, 18 May 2005 11:02:00 -0400 Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache/JK(2)?
I can't thank you enough. I was wondering if anyone had done it, and you certainly have. The sample files I have has always been the biggest hurdle for me also. The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows. I'll refer to the same directions you used, and I am sure I will get it also. Thanks for giving me hope that it can be done! Now I just have to get past those sample files also. Thanks again! Tom Darryl Wilburn wrote: Tom, I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK 1.2.11, running on Win2k3 server with no problems. The biggest hurdle I had to get over was making the necessary changes on the sample files included with the software. (the worker names didn't match) The files required are mod_jk.so (downloaded at http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/) The instructions I followed are at http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html. The other files involved are workers.properties, mod_jk.conf. The HowTo instructions at the above link are excellent. DW --- Tom Holmes Jr. [EMAIL PROTECTED] wrote: Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x ... I have gotten these to work over the years with few problems either on a Windows or Linux environment. I've modified the httpd.conf file and workers2.properties files under Apache 2.x, and the server.xml and jk2.properties under Tomcat 4.x. However, now I am in unfamiliar territory once more. I am working on Windows 2000, and I want to use Apache 2.x which I have no problems working with. But now, I want it to work with Tomcat 5.5.x ... so, here the questions begins: I understand that I should be using the Java SDK 1.5 now with Tomcat 5.5.x, is that correct? I always thought that JK2 was the new version of JK. I have always used JK2 to connect tomcat 4.x to Apache 2.x. I understand that JK2 is now deprecated and is no longer getting any support? Does this mean I should now use JK to connect Tomcat 5.5.x with Apache 2.x? Do I still need a workers2.properties file? Where can I find documentation on using JK in order to connect Apache 2.x with Tomcat 5.5.x? Any sample files I need? I know I've seen a lot of questions about this on this list and on the net (yes, Google is my friend), but I only get bits and pieces of the whole, I was looking for anything more comprehensive. Thanks for any help you guys can provide! Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question: Please tell me to connect Tomcat/Apache
I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question: Please tell me to connect Tomcat/Apache
On 5/6/05, anshul [EMAIL PROTECTED] wrote: I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Why you want to use Apache in a Windows server ?. Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question: Please tell me to connect Tomcat/Apache
Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. I think/read, Apache is better than Tomcat for HTML Web pages. I asked, to run .jsp from ~/wwwroot - Original Message - From: Anto Paul [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, May 06, 2005 5:41 PM Subject: Re: Question: Please tell me to connect Tomcat/Apache On 5/6/05, anshul [EMAIL PROTECTED] wrote: I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Why you want to use Apache in a Windows server ?. Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question: Please tell me to connect Tomcat/Apache
On 5/6/05, anshul [EMAIL PROTECTED] wrote: Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. I think/read, Apache is better than Tomcat for HTML Web pages. I asked, to run .jsp from ~/wwwroot - Original Message - From: Anto Paul [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, May 06, 2005 5:41 PM Subject: Re: Question: Please tell me to connect Tomcat/Apache On 5/6/05, anshul [EMAIL PROTECTED] wrote: I'm using Windows 2003. I've installed Apache2 on port 80, using .php scripts from ~/wwwroot I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in ~/wwwroot How, this is possible? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Why you want to use Apache in a Windows server ?. Benchmarks shows that Tomcat 5 is same or better than Apache in serving static content. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Find the documentation of JK connector. http://jakarta.apache.org/tomcat/connectors-doc/ -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question: Please tell me to connect Tomcat/Apache
From: anshul [mailto:[EMAIL PROTECTED] I think/read, Apache is better than Tomcat for HTML Web pages. That is your decision, but... I asked, to run .jsp from ~/wwwroot ... you won't easily be able to mix, in the same directory, Apache serving the HTML files and Tomcat serving the JSPs. This appears to be what you want to do. *At the very least*, they will have to appear on your Web site in different directories, even if they are served from the same directory. If you're comfortable with that, start at http://jakarta.apache.org/tomcat/connectors-doc/index.html to see how to configure JK between Apache and Tomcat. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apache/mod_jk/multiple tomcat apps, port 80
Hi all, I'm having trouble getting Apache to forward requests to two webapps deployed on Tomcat. Tomcat alone works fine (webapps work on port 8080), and apache seems to forward requests to other servlets on my ISP's server the way it should. Some snippets of configuration files I got from my hosting company are confusing - Tomcat isn't generating mod_jk.conf (in {tomcatdir}/conf/auto or anywhere else), apache is using mod_jk with jk.conf which has a worker configuration, but no JkMount directives in apache.conf. This works for other people, but not for me. It seems to me that somewhere there is a JkMount *.jsp ajp13 directive in apache.conf - our applications use Tapestry so there's no JSPs...in effect, apache handles requests to my apps instead of tomcat, when using port 80. My guess is that JkMount is the proper way to configure mod_jk for my VirtualHost, how to use it for Tapestry applications? Thanks for your time, Tomislav P.S. The tomcat server admin tells me it might have something to do with having separate apps in subdirectories of public_html, each of which has it's own web.xml, but I don't believe this to be the problem: deploying an app in the public_html folder doesn't change server behaviour. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What version of Tomcat, Apache to Install
Hi, I need to install Apache, tomcat, and all related software on a UNIX computer: MACHTYPE=sparc-sun-solaris2.9 What version of Tomcat, and Apache is the best match? I try to install Apache 2.0.53. When I compile it, there is only one .so file in the modules filder. It may be the wrong version. There is no c compiler found. Should I download gcc-2.8.1 or gcc-3.3.2 for the compiler? Thanks. Daxin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What version of Tomcat, Apache to Install
From: Daxin Zuo [mailto:[EMAIL PROTECTED] Subject: What version of Tomcat, Apache to Install What version of Tomcat, and Apache is the best match? Are you sure you really need the additional complexity of Apache httpd on the same box as Tomcat? The current level of Tomcat (5.5 series) is adequte for most web server purposes. - Chuck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + Apache Web Server
Well the Coyote connector for one definitely has compression available and compresses content nicely, even dynamic content. OK, I see this now. And I see that you can configure the MIME types you want to compress. Very good. I'm not sure of the specifics of the caching mechanisms used internally to Tomcat but it achieves caching nicely giving 304 not modified responses where applicable and often the browser will cache the static content so a request isn't even made. I just test Tomcat standalone and checked the 5.0 code, and there is nothing that sets the expires or cache-control max-age. Content will not be pulled from local cache unless these are specified, unless your browser is performing some magic. So it looks to me the best you can do w/ Tomcat is achieve a 304 response. 304 responses are inefficient for truly static content like images, style sheets, external JavaScript files, and perhaps some html and/or test pages. These resources should be served from the browser cache directly w/o connecting to the server. A server is only able to handle so many connections, so it limits scalability. But I have seen filters that do this w/ Tomcat. If Tomcat would allow a configurable out-of-box way to set headers for static content, I may be out of arguments for why I personally like to use Apache to handle static content. Mike Merit Online Systems, Inc. http://www.meritonlinesystems.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
Consider the following Apache modules: mod_headers mod_expire mod_deflate I've never seen a web application that wouldn't benefit from one or all of these modules. And the performance improvements would likely more than outweigh any overhead. If Tomcat provides any of the functionality of mod_headers, mod_expire, or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a filter) when this functionality is available in Apache? I'm still unconvinced that running Apache in front of Tomcat isn't almost always a good thing. But I'm listening if someone can convince me otherwise. Configuring Tomcat is a challenge. Configuring Tomcat + mod_jk + apache is even more of a challenge (see the number of posts on this list alone!). The chance of you dropping a security screw-up into the more complicated setup is much higher than the simple set up.[*] Unless you really need the performance benefit of the above modules - and many many people don't - why go to the extra setup effort, and extra risk of making mistakes? My benchmarks showed that on cheap new hardware (P4, 2.5Ghz) that apache and tomcat were both capable at webserving at a speed that would cost me a fortune in bandwidth and any delay would be in the application code, not the performance of the webserver. My tomcat install survived a direct slashdot without issue, so all I care about is manageability, performance (for me) is a solved problem. Of course, if you're trying to run something the size of ebay it's a little different. Pete [*] Pick a random website running java. Try to download foo.com/WEB-INF/web.xml. Be scared how often it succeeds. -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ I have kleptomania, but when it gets bad, I take something for it. -- Anonymous - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
On Wed, 2005-04-06 at 07:18, Pete Stevens wrote: Consider the following Apache modules: mod_headers mod_expire mod_deflate I've never seen a web application that wouldn't benefit from one or all of these modules. And the performance improvements would likely more than outweigh any overhead. If Tomcat provides any of the functionality of mod_headers, mod_expire, or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a filter) when this functionality is available in Apache? I'm still unconvinced that running Apache in front of Tomcat isn't almost always a good thing. But I'm listening if someone can convince me otherwise. Configuring Tomcat is a challenge. Configuring Tomcat + mod_jk + apache is even more of a challenge (see the number of posts on this list alone!). The chance of you dropping a security screw-up into the more complicated setup is much higher than the simple set up.[*] Unless you really need the performance benefit of the above modules - and many many people don't - why go to the extra setup effort, and extra risk of making mistakes? Every web application can benefit from compressing and caching static resources. It decreases the number of connections your server must handle. To not have caching, I think, is to ignore a best practice. Or at the very least ignore the opportunity to improve the user experience with faster response times. It's not that hard to integrate Apache w/ Tomcat, and I still benefits to this approach that standalone Tomcat does not offer. Mike -- Merit Online Systems, Inc. http://www.meritonlinesystems.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + Apache Web Server
On Apr 6, 2005 11:20 AM, Mike Millson [EMAIL PROTECTED] wrote: Every web application can benefit from compressing and caching static resources. It decreases the number of connections your server must handle. To not have caching, I think, is to ignore a best practice. Or at the very least ignore the opportunity to improve the user experience with faster response times. It's not that hard to integrate Apache w/ Tomcat, and I still benefits to this approach that standalone Tomcat does not offer. Well the Coyote connector for one definitely has compression available and compresses content nicely, even dynamic content. I'm not sure of the specifics of the caching mechanisms used internally to Tomcat but it achieves caching nicely giving 304 not modified responses where applicable and often the browser will cache the static content so a request isn't even made. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Apache Web Server
Hello, I'm new with Apache products and this is my first post. Please see the background info - it explains what versions I have and what I have done. Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: http://localhost/servlet/HelloServlet (no Tomcat default port 8080) instead of http://localhost:8080/servlet/HelloServlet ? If I try to do http://localhost/servlet/HelloServlet I get an internal server error. It cannot find where this is located. Apache is trying to find it at C:\Documents and Settings\username\My Documents\My Website\localhost\www\servlet\HelloServlet instead of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\HelloServlet - Background: Apache 2.0.53 (Port 80 - default) Tomcat 5.5.7(Port 8080 - default) mod_jk 1.2.8 (to connect the two together) Operating System: Win 2K Server I installed both Apache and Tomcat as Windows Services using the install programs that are available. I am able to access http://localhost and http://localhost:80 (Apache Web server page comes up) I am able to access http://localhost:8080 (Tomcat page comes up) I am able to create basic servlets and run them. For example, http://localhost:8080/servlet/HelloServlet I am able to access this host from another machine running Win XP. I can bring up the Apache and Tomcat home pages on that PC's browser, and the servlets. I have placed the following in my httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/workers.properties JkLogFile C:/Program Files/Apache Group/Apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] I have the workers.properties file also set up: worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=2 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 Thank you, Sal
Re: Tomcat + Apache Web Server
You most configure mod_proxy in apache to get the configuration desired. The idea is that apache receive the request and if the request is for tomcat apache send the request at the respective servlet. http://httpd.apache.org/docs-2.0/mod/mod_proxy.html Best regards, Jorge Dvila. El mar, 05-04-2005 a las 16:50 -0400, Magnotta, Salvatore escribi: Hello, I'm new with Apache products and this is my first post. Please see the background info - it explains what versions I have and what I have done. Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: http://localhost/servlet/HelloServlet (no Tomcat default port 8080) instead of http://localhost:8080/servlet/HelloServlet ? If I try to do http://localhost/servlet/HelloServlet I get an internal server error. It cannot find where this is located. Apache is trying to find it at C:\Documents and Settings\username\My Documents\My Website\localhost\www\servlet\HelloServlet instead of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\HelloServlet - Background: Apache 2.0.53 (Port 80 - default) Tomcat 5.5.7(Port 8080 - default) mod_jk 1.2.8 (to connect the two together) Operating System: Win 2K Server I installed both Apache and Tomcat as Windows Services using the install programs that are available. I am able to access http://localhost and http://localhost:80 (Apache Web server page comes up) I am able to access http://localhost:8080 (Tomcat page comes up) I am able to create basic servlets and run them. For example, http://localhost:8080/servlet/HelloServlet I am able to access this host from another machine running Win XP. I can bring up the Apache and Tomcat home pages on that PC's browser, and the servlets. I have placed the following in my httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/workers.properties JkLogFile C:/Program Files/Apache Group/Apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] I have the workers.properties file also set up: worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=2 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 Thank you, Sal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
From: Magnotta, Salvatore [mailto:[EMAIL PROTECTED] Subject: Tomcat + Apache Web Server Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: Before introducing that complexity, why are you using Apache httpd at all? Peter Lin's recent testing showed little performance improvement using httpd vs. Tomcat 5.5.7 for static content. See http://cvs.apache.org/~woolfel/benchmark_summary.doc for details. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
Well, it is a project here at work and that is what the requirements are for this project. I'll do more research and see if I can change some minds... Is the only solution using a reverse proxy server for example to redirect the client requests? e.g. ProxyPass /servlet http://localhost:8080/servlet or something like this ? ...Thanks for the link. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 5:58 PM To: Tomcat Users List Subject: RE: Tomcat + Apache Web Server From: Magnotta, Salvatore [mailto:[EMAIL PROTECTED] Subject: Tomcat + Apache Web Server Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: Before introducing that complexity, why are you using Apache httpd at all? Peter Lin's recent testing showed little performance improvement using httpd vs. Tomcat 5.5.7 for static content. See http://cvs.apache.org/~woolfel/benchmark_summary.doc for details. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
Are you suggesting that we can drop apache and only use tomcat in some cases? El mar, 05-04-2005 a las 16:58 -0500, Caldarale, Charles R escribi: From: Magnotta, Salvatore [mailto:[EMAIL PROTECTED] Subject: Tomcat + Apache Web Server Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: Before introducing that complexity, why are you using Apache httpd at all? Peter Lin's recent testing showed little performance improvement using httpd vs. Tomcat 5.5.7 for static content. See http://cvs.apache.org/~woolfel/benchmark_summary.doc for details. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
The solution is: ProxyRequests Off ProxyPass /servlet http://localhost:8080/servlet/ Thanks Jorge! -Original Message- From: Jorge Davila [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 4:57 PM To: Tomcat Users List Subject: Re: Tomcat + Apache Web Server You most configure mod_proxy in apache to get the configuration desired. The idea is that apache receive the request and if the request is for tomcat apache send the request at the respective servlet. http://httpd.apache.org/docs-2.0/mod/mod_proxy.html Best regards, Jorge Dvila. El mar, 05-04-2005 a las 16:50 -0400, Magnotta, Salvatore escribi: Hello, I'm new with Apache products and this is my first post. Please see the background info - it explains what versions I have and what I have done. Question: How can I have both Apache and Tomcat running on a Windows platform using Internet Explorer and do the following: http://localhost/servlet/HelloServlet (no Tomcat default port 8080) instead of http://localhost:8080/servlet/HelloServlet ? If I try to do http://localhost/servlet/HelloServlet I get an internal server error. It cannot find where this is located. Apache is trying to find it at C:\Documents and Settings\username\My Documents\My Website\localhost\www\servlet\HelloServlet instead of C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\HelloServlet - Background: Apache 2.0.53 (Port 80 - default) Tomcat 5.5.7(Port 8080 - default) mod_jk 1.2.8 (to connect the two together) Operating System: Win 2K Server I installed both Apache and Tomcat as Windows Services using the install programs that are available. I am able to access http://localhost and http://localhost:80 (Apache Web server page comes up) I am able to access http://localhost:8080 (Tomcat page comes up) I am able to create basic servlets and run them. For example, http://localhost:8080/servlet/HelloServlet I am able to access this host from another machine running Win XP. I can bring up the Apache and Tomcat home pages on that PC's browser, and the servlets. I have placed the following in my httpd.conf file: LoadModule jk_module modules/mod_jk.so JkWorkersFile C:/Program Files/Apache Software Foundation/Tomcat 5.5/conf/workers.properties JkLogFile C:/Program Files/Apache Group/Apache2/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] I have the workers.properties file also set up: worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=2 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp12, ajp13 Thank you, Sal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
From: Jorge Davila [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat + Apache Web Server Are you suggesting that we can drop apache and only use tomcat in some cases? Certainly. Think of the overhead being _added_ by passing a request through httpd just to get to Tomcat. If the vast majority of the requests are for static content and only very few for dynamic, then using httpd in front of Tomcat makes sense; but if a significant fraction of the requests are targeting JSPs or servlets, then standalone Tomcat 5.5 may well result in better overall response time. Front-ending a set of Tomcats with Apache httpd for load-balancing or redundancy is also a highly appropriate (and relatively inexpensive) approach. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache Web Server
On Tue, 2005-04-05 at 18:42, Caldarale, Charles R wrote: From: Jorge Davila [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat + Apache Web Server Are you suggesting that we can drop apache and only use tomcat in some cases? Certainly. Think of the overhead being _added_ by passing a request through httpd just to get to Tomcat. If the vast majority of the requests are for static content and only very few for dynamic, then using httpd in front of Tomcat makes sense; but if a significant fraction of the requests are targeting JSPs or servlets, then standalone Tomcat 5.5 may well result in better overall response time. Front-ending a set of Tomcats with Apache httpd for load-balancing or redundancy is also a highly appropriate (and relatively inexpensive) approach. Consider the following Apache modules: mod_headers mod_expire mod_deflate I've never seen a web application that wouldn't benefit from one or all of these modules. And the performance improvements would likely more than outweigh any overhead. If Tomcat provides any of the functionality of mod_headers, mod_expire, or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a filter) when this functionality is available in Apache? I'm still unconvinced that running Apache in front of Tomcat isn't almost always a good thing. But I'm listening if someone can convince me otherwise. Mike -- Merit Online Systems, Inc. http://www.meritonlinesystems.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss + Tomcat + Apache-1.3.33
Tomcat is an application server which listens on port 8080. mod_jk is a connector between apache and tomcat. Seems like you want to have Apache get the requests and proxy them back to tomcat. If you want to make sure Tomcat is listening on port 8080, do netstat -anp and you should see java listening on port 8080. Thats your tomcat. You can also browse to port 8080, http://yourip:8080. Once you verified port 8080 is open, you can setup your proxy on apache and proxy everything to that port. Parviz On Fri, 2004-12-03 at 14:09, Warron French wrote: Yes, AJP is definitely associated with port 8009. Port 8080 with HTTP/1.1 but there is no mention of Tomcat exactly. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:55 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 port 8009 is the AJP (mod_jk) port port 8080 is the tomcat HTTP port. its in a file called server.xml under the jboss structure Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:54 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 Technically, I don't know how well configured it is. Someone else configured it, and I think it is configured for port 8009 but again... how do I know what it is configured for and that I am starting off on the right foot here. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:51 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 are you saying that your current jboss/tomcat isn't using port 8080? Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:46 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested
JBoss + Tomcat + Apache-1.3.33
I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss + Tomcat + Apache-1.3.33
for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss + Tomcat + Apache-1.3.33
OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss + Tomcat + Apache-1.3.33
yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss + Tomcat + Apache-1.3.33
How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JBoss + Tomcat + Apache-1.3.33
are you saying that your current jboss/tomcat isn't using port 8080? Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:46 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JBoss + Tomcat + Apache-1.3.33
Technically, I don't know how well configured it is. Someone else configured it, and I think it is configured for port 8009 but again... how do I know what it is configured for and that I am starting off on the right foot here. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:51 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 are you saying that your current jboss/tomcat isn't using port 8080? Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:46 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: JBoss + Tomcat + Apache-1.3.33
port 8009 is the AJP (mod_jk) port port 8080 is the tomcat HTTP port. its in a file called server.xml under the jboss structure Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:54 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 Technically, I don't know how well configured it is. Someone else configured it, and I think it is configured for port 8009 but again... how do I know what it is configured for and that I am starting off on the right foot here. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:51 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 are you saying that your current jboss/tomcat isn't using port 8080? Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:46 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: JBoss + Tomcat + Apache-1.3.33
Yes, AJP is definitely associated with port 8009. Port 8080 with HTTP/1.1 but there is no mention of Tomcat exactly. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:55 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 port 8009 is the AJP (mod_jk) port port 8080 is the tomcat HTTP port. its in a file called server.xml under the jboss structure Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:54 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 Technically, I don't know how well configured it is. Someone else configured it, and I think it is configured for port 8009 but again... how do I know what it is configured for and that I am starting off on the right foot here. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:51 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 are you saying that your current jboss/tomcat isn't using port 8080? Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:46 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be built with Apache-1.3.33 instead, so I uninstalled the Apache-2.0.40 rpm. It wasn't until a month later (last Friday, 26 November 2004) that someone noticed the website using the JBoss and Apache and Tomcat connector weren't working together. I am not a very strong developer. I have been looking for a configure script to use to reinstall Tomcat or mod_jk for my new Apache-1.3.33 which is what is currently running. People keep sending me the help pages from the website, but the site is simply lacking in defined steps and support. PLEASE HELP! Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374
Tomcat, Apache connected in interesting way
Hi all, I run a pretty high traffic site using Tomcat. We've gone through a number of configurations in the past, and I wanted to share with you the newest setup that we're using. It's a bit unorthodox perhaps, and I was wondering if anyone could think of possible problems? It does seem to be the fastest and most stable setup we've had yet. Previously we've used Apache and Tomcat connected through jk1 and jk2. Also we've run direct to tomcat's http connector. JK1 was ok, but very slow. JK2 was fast (using unixSocket communication), but very buggy and crash prone. Tomcat alone was good, but it lacked some advanced apache stuff we wanted (Mostly URL Rewriting and good SSL handling). After reading about the upcoming mod_proxy ajp connector for apache 2.2, I had the idea to use stuff that's in the current RHEL apache 2.0 release to accomplish what I feel to be a similar effect. We've set up apache to reverse proxy requests for .jsp and .do (we're using struts) to tomcat's standard http connector. From the httpd.conf: Proxy * Order deny,allow Allow from all /Proxy ProxyRequests off RewriteEngine on RewriteRule ^/$ http://128.121.26.205/index.jsp [P,NC] RewriteRule ^/(.*.jsp.*)$ http://128.121.26.205/$1 [P,NC] RewriteRule ^/(.*.do.*)$ http://128.121.26.205/$1 [P,NC] This allows apache to process additional rewriting things (I left them out) and also to serve images and other static content. I felt that apache would be better at handling static content than tomcat in general, so this will be an overall speed improvement. Anyway, any flaws here I should be aware of? Comments? Thanks! -Joshua Szmajda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, Apache connected in interesting way
Nope. That is my prefered way to go. Let apache do what it does best. Let tomcat do what it does best. You'll notice that it'll also take longer before you need to add more tomcats in your cluster by doing this. What you need to be wary of are any security issues where some static assets need to be protected. Under this scheme - you'll need to duplicate your security in apache - or make sure those static assets are served by tomcat. -Tim Joshua Szmajda wrote: Hi all, I run a pretty high traffic site using Tomcat. We've gone through a number of configurations in the past, and I wanted to share with you the newest setup that we're using. It's a bit unorthodox perhaps, and I was wondering if anyone could think of possible problems? It does seem to be the fastest and most stable setup we've had yet. Previously we've used Apache and Tomcat connected through jk1 and jk2. Also we've run direct to tomcat's http connector. JK1 was ok, but very slow. JK2 was fast (using unixSocket communication), but very buggy and crash prone. Tomcat alone was good, but it lacked some advanced apache stuff we wanted (Mostly URL Rewriting and good SSL handling). After reading about the upcoming mod_proxy ajp connector for apache 2.2, I had the idea to use stuff that's in the current RHEL apache 2.0 release to accomplish what I feel to be a similar effect. We've set up apache to reverse proxy requests for .jsp and .do (we're using struts) to tomcat's standard http connector. From the httpd.conf: Proxy * Order deny,allow Allow from all /Proxy ProxyRequests off RewriteEngine on RewriteRule ^/$ http://128.121.26.205/index.jsp [P,NC] RewriteRule ^/(.*.jsp.*)$ http://128.121.26.205/$1 [P,NC] RewriteRule ^/(.*.do.*)$ http://128.121.26.205/$1 [P,NC] This allows apache to process additional rewriting things (I left them out) and also to serve images and other static content. I felt that apache would be better at handling static content than tomcat in general, so this will be an overall speed improvement. Anyway, any flaws here I should be aware of? Comments? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, Apache connected in interesting way
Joshua Szmajda wrote: Hi all, I run a pretty high traffic site using Tomcat. We've gone through a number of configurations in the past, and I wanted to share with you the newest setup that we're using. It's a bit unorthodox perhaps, and I was wondering if anyone could think of possible problems? It does seem to be the fastest and most stable setup we've had yet. Previously we've used Apache and Tomcat connected through jk1 and jk2. Also we've run direct to tomcat's http connector. JK1 was ok, but very slow. JK2 was fast (using unixSocket communication), but very buggy and crash prone. Tomcat alone was good, but it lacked some advanced apache stuff we wanted (Mostly URL Rewriting and good SSL handling). After reading about the upcoming mod_proxy ajp connector for apache 2.2, I had the idea to use stuff that's in the current RHEL apache 2.0 release to accomplish what I feel to be a similar effect. We've set up apache to reverse proxy requests for .jsp and .do (we're using struts) to tomcat's standard http connector. From the httpd.conf: Proxy * Order deny,allow Allow from all /Proxy ProxyRequests off RewriteEngine on RewriteRule ^/$ http://128.121.26.205/index.jsp [P,NC] RewriteRule ^/(.*.jsp.*)$ http://128.121.26.205/$1 [P,NC] RewriteRule ^/(.*.do.*)$ http://128.121.26.205/$1 [P,NC] This allows apache to process additional rewriting things (I left them out) and also to serve images and other static content. I felt that apache would be better at handling static content than tomcat in general, so this will be an overall speed improvement. Anyway, any flaws here I should be aware of? Comments? Thanks! Joshua - Are tomcat and apache running on the same server? If so, it appears from what you have here that they are on the same port...so...what am I missing? Also, how do you handle .jsps and .dos that need to be handled by Tomcat securely (using SSL). This seems to pass them all off to the non-secure version. Would it just be a more complex RewriteRule that tests for https vs. http? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, Apache connected in interesting way
Both are on the same server, yes. They are however listening on different IP addresses. If needed, you could set the tomcat http connector to listen on a different port and adjust the rewrite rule accordingly. As far as SSL goes, the SSL encryption will be in place from the client to apache, but not from apache to tomcat. This is ok because apache and tomcat are both in the same trusted subnet (in fact, on the same machine). If that weren't the case, you could alter the rewrite rule on the SSL vhost to send requests to tomcat's ssl connector, thereby encrypting all connections. -Josh Joshua - Are tomcat and apache running on the same server? If so, it appears from what you have here that they are on the same port...so...what am I missing? Also, how do you handle .jsps and .dos that need to be handled by Tomcat securely (using SSL). This seems to pass them all off to the non-secure version. Would it just be a more complex RewriteRule that tests for https vs. http? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apache problem when using ssl
Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apache problem when using ssl
I'm experiencing the same problem. The issue is that microsoft (article Q316431) will not display a file from a SSL site if the cache is set to no-cache. It seems that Tomcat automatically generates a Contect-Type header that includes this parameter. I have not yet found out how to change it. If you look in the /conf/web.xml file under mime type mappings you will see this. Hopefully someone will have the answer. Stephen -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:30 To: Tomcat Users List (E-mail) Subject: tomcat/apache problem when using ssl Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apache problem when using ssl
Hello Stephen, From what you said it seems like you encountered the problem from IE, but i am not using IE and still see the error. Also, I can't even get images from the DoucmentRoot, which I have set to webapps in tomcat. Please do let me know if you come across a solution. Nandish Rudra -Original Message- From: Goldman, Stephen CIV SWRMC [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:51 PM To: Tomcat Users List Subject: RE: tomcat/apache problem when using ssl I'm experiencing the same problem. The issue is that microsoft (article Q316431) will not display a file from a SSL site if the cache is set to no-cache. It seems that Tomcat automatically generates a Contect-Type header that includes this parameter. I have not yet found out how to change it. If you look in the /conf/web.xml file under mime type mappings you will see this. Hopefully someone will have the answer. Stephen -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:30 To: Tomcat Users List (E-mail) Subject: tomcat/apache problem when using ssl Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat+Apache installation problem
Hi, I installed tomcat with apache in the program files i.e directory containg space in the name. It does not work fine. when i install it in some other directory it works fine.Could any one tell me if we ca install it in the directory containing spaces or not? Is it Documentated?? Regards, Vivek Behal. -Original Message- From: Vivek Behal [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 10:01 AM To: [EMAIL PROTECTED] Subject: can we install tomcat in the directory which contains spacen in t he name ??? Regards, Vivek Behal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat - Apache with JK2: mapping urls...
Andrzej Jan Taramina wrote: Douglas WF Acheson has said late last year: # Define the Manager proxy that comes with Tomcat [uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping But, after frustrating attempts I cannot seem to get it correct. I have search the mail archives and a few people have asked similar questions, but I have not see any replies. Hope someone can help me ... I'm trying to do the same thing. I want Apache/JK2 to trap a specific URI (tomcat/manager/* in this example), but to map it to something else (eg. manager) before it sends the request on to Tomcat through the JK connection. The context parameter shown above in workers2.properties does not do this, in fact, who knows what it does. I agree with Doug that the JK2 docs are abysmal. Hi Andrzej, I am trying to deploy a web application to multiple instances of Tomcat and it would be great to have a mapping like /tomcat1/axis - /axis on the first worker and /tomcat2/axis - /axis on the second worker. Unfortunately, the context parameter is ignored and just as You mentioned, the jk2 docs are lousy. It seems that there is no other choice but digging through the source code of JK2 or trashing JK2/Tomcat and using something well documented. Has anyone already been through the hell of digging through the source code and is there a usable documentation about jk2? Regards, Hans (sorry for being rude, but in my oppinion some guys have not discovered that the best software is worth nothing without documentation) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Apache with JK2: mapping urls...
Have you tried location matching and mod_rewrite with Apache to change your URL before jk2 takes the request? Location /tomcat1/* RewriteRule ... JkUriSet tomcat1 /Location Location /tomcat2/* RewriteRule ... JkUriSet tomcat2 /Location you would use JkUriSet in place of the workers2.properties [uri: mappings Charlie -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 9:58 AM To: Tomcat Users List Subject: Re: Tomcat - Apache with JK2: mapping urls... Andrzej Jan Taramina wrote: Douglas WF Acheson has said late last year: # Define the Manager proxy that comes with Tomcat [uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping But, after frustrating attempts I cannot seem to get it correct. I have search the mail archives and a few people have asked similar questions, but I have not see any replies. Hope someone can help me ... I'm trying to do the same thing. I want Apache/JK2 to trap a specific URI (tomcat/manager/* in this example), but to map it to something else (eg. manager) before it sends the request on to Tomcat through the JK connection. The context parameter shown above in workers2.properties does not do this, in fact, who knows what it does. I agree with Doug that the JK2 docs are abysmal. Hi Andrzej, I am trying to deploy a web application to multiple instances of Tomcat and it would be great to have a mapping like /tomcat1/axis - /axis on the first worker and /tomcat2/axis - /axis on the second worker. Unfortunately, the context parameter is ignored and just as You mentioned, the jk2 docs are lousy. It seems that there is no other choice but digging through the source code of JK2 or trashing JK2/Tomcat and using something well documented. Has anyone already been through the hell of digging through the source code and is there a usable documentation about jk2? Regards, Hans (sorry for being rude, but in my oppinion some guys have not discovered that the best software is worth nothing without documentation) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - Apache with JK2: mapping urls...
Douglas WF Acheson has said late last year: # Define the Manager proxy that comes with Tomcat [uri:/tomcat/manager/*] context=/manager info=Manager prefix mapping But, after frustrating attempts I cannot seem to get it correct. I have search the mail archives and a few people have asked similar questions, but I have not see any replies. Hope someone can help me ... I'm trying to do the same thing. I want Apache/JK2 to trap a specific URI (tomcat/manager/* in this example), but to map it to something else (eg. manager) before it sends the request on to Tomcat through the JK connection. The context parameter shown above in workers2.properties does not do this, in fact, who knows what it does. I agree with Doug that the JK2 docs are abysmal. Anyone figured out a way to do such URI mapping using JK2? Is it even possible? Thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
compilation errors while building tomcat-apache jk2 connector ISAPI module.
Microsoft VisualC++ 6.0 OS: Win 2k: SP4 I am getting following errors while building isapi module of JK2 connector. Could you pl suggest me to fix this issue? Configuration: isapi - Win32 Release Compiling... jk_isapi_plugin.c C:\jk2\native2\server\isapi\jk_isapi_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier C:\jk2\native2\server\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch C:\jk2\native2\server\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs in levels of indirection from 'int ' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(232) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(232) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(232) : error C2059: syntax error : ')' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\jk2\native2\server\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')' Error executing cl.exe. Creating browse info file... isapi_redirector2.dll - 8 error(s), 5 warning(s) regards, aato. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat-Apache and SSL- Re-Post
The localPort that mod_jk(2) sends depends on the Apache setting for UseCannonicalName. If you set it to 'off', then it should always send the TCP port (as opposed to the configured port). Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The AJP port is 8009 (stock), but the issue lies where our application takes the port (80/8000) and determines whether or not the page is suppose to be secure (https). Since the load balancer does all of the SSL for us, everything is passed to the web/app server as http, and it appears that tomcat is assuming that because it is http, it came from port 80. Apache is currently configured to listen for http traffic on both ports 80 and 8000. Jrun is able to take the port number and pass that to the app. When we do a request.getLocalPort(), it returns port 80, when it should be returning port 8000. Is there a way to tell tomcat (using the AJP/13 connector) to pass through the port number from the requestor? Do you think that this is an Apache, or Tomcat configuration issue? Again, any help is greatly appreciated. Cheers, Q. Wade Billings -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Sunday, September 12, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat-Apache and SSL- Re-Post If 8000 is the Apache port, then use request.getLocalPort(). If 8000 is the AJP port, it can't be done. Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat-Apache and SSL- Re-Post
Thank you for the suggestion, I will try this tomorrow and post the results. Cheers, Q. Wade Billings -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, September 14, 2004 7:27 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat-Apache and SSL- Re-Post The localPort that mod_jk(2) sends depends on the Apache setting for UseCannonicalName. If you set it to 'off', then it should always send the TCP port (as opposed to the configured port). Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The AJP port is 8009 (stock), but the issue lies where our application takes the port (80/8000) and determines whether or not the page is suppose to be secure (https). Since the load balancer does all of the SSL for us, everything is passed to the web/app server as http, and it appears that tomcat is assuming that because it is http, it came from port 80. Apache is currently configured to listen for http traffic on both ports 80 and 8000. Jrun is able to take the port number and pass that to the app. When we do a request.getLocalPort(), it returns port 80, when it should be returning port 8000. Is there a way to tell tomcat (using the AJP/13 connector) to pass through the port number from the requestor? Do you think that this is an Apache, or Tomcat configuration issue? Again, any help is greatly appreciated. Cheers, Q. Wade Billings -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Sunday, September 12, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat-Apache and SSL- Re-Post If 8000 is the Apache port, then use request.getLocalPort(). If 8000 is the AJP port, it can't be done. Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat-Apache and SSL- Re-Post
The AJP port is 8009 (stock), but the issue lies where our application takes the port (80/8000) and determines whether or not the page is suppose to be secure (https). Since the load balancer does all of the SSL for us, everything is passed to the web/app server as http, and it appears that tomcat is assuming that because it is http, it came from port 80. Apache is currently configured to listen for http traffic on both ports 80 and 8000. Jrun is able to take the port number and pass that to the app. When we do a request.getLocalPort(), it returns port 80, when it should be returning port 8000. Is there a way to tell tomcat (using the AJP/13 connector) to pass through the port number from the requestor? Do you think that this is an Apache, or Tomcat configuration issue? Again, any help is greatly appreciated. Cheers, Q. Wade Billings -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Sunday, September 12, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat-Apache and SSL- Re-Post If 8000 is the Apache port, then use request.getLocalPort(). If 8000 is the AJP port, it can't be done. Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat-Apache and SSL- Re-Post
Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings
AW: Tomcat-Apache and SSL- Re-Post
Hi ... that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Are you sure, you are talking about source ports? Since you need to contact tomcat on the same port every time and your target and source ips are always the same too, there would be no way for the tcp/ip stack to associate packets with connection... Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat-Apache and SSL- Re-Post
If 8000 is the Apache port, then use request.getLocalPort(). If 8000 is the AJP port, it can't be done. Wade Billings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat-Apache and SSL
Here is a fun one for ya all... We recently decided to migrate from a Jrun/Apahe platform to an Apache2.0/Tomcat5.0 platform. Everything went great until we placed it into production and found that our SSL sites were broken. Here are the details, and forgive me, as I am not a developer so I may misquote some Java terminology Be patient... WE determine whether or not a page is secured via which port it is sourced from. We have a pair of load balancers, which handle all of the SSL, and pass only HTTP/1.1 back to the actual web servers where the JVM sits. IN order for the app to determine whether or not it is secure, we source all SSL'ized traffic from port 8000. This setup works very well on Jrun, but not so well on Tomcat. It appears that for some reason, the source port of 8000 is either lost or ignored during the Apache/AJP13/Tomcat conversation. What I need to be able to do is to get Tomcat to recognize that the source port from the load balancer has changed from port 80 to port 8000 so our app will behave correctly and will present our pages as secure. Any help is greatly appreciated. Cheers, Q. Wade Billings
How to catch and redirect an error code 500 with Tomcat apache ?
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml error-page error-code500/error-code location/jsp/500.jsp/location /error-page apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] GET /Login.do HTTP/1.1 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page I posted the message before, someone told me about a ROOT webapps and creating a web.xml into this with the erro-page directive, but it does nothing ... Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie: Tomcat-Apache Error
Hello List, I don't know if i am on the right address here, but i try to ask you something. I have an Apache 2.0.49 running with jarkarta-tomcat 4.1.27 LE-jdk14 running. In my Apache errorlog i have some error messages caused from tomcat. They ar like this: [Thu Jul 01 14:35:42 2004] [error] ajp13.connect() failed ajp13:localhost:6009 [Thu Jul 01 14:35:42 2004] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error [Thu Jul 01 14:35:42 2004] [error] ajp13.service() Error forwarding ajp13:localhost:6009 1 1 [Thu Jul 01 14:35:42 2004] [error] mod_jk.handler() Error connecting to tomcat 12 [Thu Jul 01 14:35:43 2004] [error] channelSocket.open() connect failed 127.0.0.1:6009 61 Unknown error Can someone tell me the reason for this errors and how to elimitnate them ? Thak you for your response. Regards Radek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to catch and redirect an error code 500 with Tomcat apache ?
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml error-page error-code500/error-code location/jsp/500.jsp/location /error-page apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] GET /Login.do HTTP/1.1 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to catch and redirect an error code 500 with Tomcat apache ?
We had to put the error-page definition in this file: jakarta-tomcat-4.1.27-LE-jdk14/webapps/ROOT/WEB-INF/web.xml Restart tomcat and it should be picked up. Tim Julien Oix wrote: Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml error-page error-code500/error-code location/jsp/500.jsp/location /error-page apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] GET /Login.do HTTP/1.1 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Kelly, Director of Development Building Engines, Inc. Phone: 781-290-5300 Cell: 508-561-0985 www.buildingengines.com 275 Wyman Street Suite 11 Waltham MA 02451 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat apache error code 500
Hi everyone I can't manage to redirect a 500 error code page to a customized error page, even I can't see any trouble in my conf's files. # config Linux RedHat 7.1 Apache 1.3.27 (rpm) Tomcat 4.1.18 (rpm) mod_jk 1.2.2 (rpm) #apache myVH.conf ErrorDocument 500 /jsp/500.jsp #tomcat myapps/WEB-INF/web.xml error-page error-code500/error-code location/jsp/500.jsp/location /error-page apache gets a 500 error code # myapps_access_log 193.52.112.54 - - [05/Jul/2004:15:52:49 +0200] GET /Login.do HTTP/1.1 500 3990 but the browser prints the default tomcat error page and not my customized 500.jsp ... PS : there's no compilation problem in my 500.jsp, it could have been the reason why tomcat can't print it and redirects to it's own 500 error page Thanks in advance :) Julien OIX Service Informatique de Gestion - Université de Nantes Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65 Fax: 02 40 99 83 84 / abroad + (33) 240 99 83 84 Web: http://www.univ-nantes.fr mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Apache + SSL
Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache + SSL
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache + SSL
Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 2:40 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache + SSL
I followed John Turner's Web page: http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-how-to.html and it worked perfectly. This site is only for connecting Tomcat and apache through a connector. But not sure about the ssl. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 2:41 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 2:40 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache + SSL
Thanks Claudia, Do you know about TC5 and A2 -Mensaje original- De: Casas, Claudia [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 02:48 p.m. Para: Tomcat Users List Asunto: RE: Tomcat + Apache + SSL I followed John Turner's Web page: http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-how-to.html and it worked perfectly. This site is only for connecting Tomcat and apache through a connector. But not sure about the ssl. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 2:41 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 2:40 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 3:46 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat + Apache + SSL
I tried did try to install tomcat5 and apache2 with success following the same steps. BUT, I could not get the connector working since it is recommended that you use the jk2 connector when using tomcat5 already. If you get it working, please let me know. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 3:46 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks Claudia, Do you know about TC5 and A2 -Mensaje original- De: Casas, Claudia [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 02:48 p.m. Para: Tomcat Users List Asunto: RE: Tomcat + Apache + SSL I followed John Turner's Web page: http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-how-to.html and it worked perfectly. This site is only for connecting Tomcat and apache through a connector. But not sure about the ssl. -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 2:41 PM To: Tomcat Users List Subject: RE: Tomcat + Apache + SSL Importance: High Thanks. -Mensaje original- De: Lee, Paul NYC [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 01 de Julio de 2004 11:30 a.m. Para: 'Tomcat Users List' Asunto: RE: Tomcat + Apache + SSL http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html -Original Message- From: Lorenzo A. Jimenez Briceno [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 1:13 PM To: Tomcat Users List Subject: Tomcat + Apache + SSL Importance: High Hi, Where can I find info about configuring Tomcat 5 and Apache 2, so I can access apps thru SSL port 443. Do I need only to install a certificate in Apache and with port 443, the plugin connects directly. Thanks Lorenzo Jimenez _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 11:12 AM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 2:40 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately and delete this message. BICSA does not accept liability for any damage caused by virus, errors, or omissions in the contents of this message. Any unauthorized use or disclosure of its contents is prohibited. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Lorenzo A. Jimenez Briceno WebMaster Banco Internacional de Costa Rica ( (506) 243-1077 1 (506) 243-1075 - [EMAIL PROTECTED] BICSA ¡Un mundo de servicios financieros a su alcance! http://www.bicsa.com 7/1/2004 3:46 PM Este mensaje puede ser confidencial. Si usted no es la persona a quien se debió dirigir por favor notifíquenos de inmediato y borre el mensaje. BICSA no acepta responsabilidad legal por ningún daño causado por virus, errores u omisiones en el contenido de este mensaje. Todo uso o divulgación no autorizado está prohibido. Gracias. This message may be confidential. If you are not the intended recipient, please notify us immediately
AW: AW: Problem with Tomcat + Apache + mod_jk
Hello ming fang, thanks for your help. I found no 'new' way, to disable the chunked response. What I did, is to set request.setContentLength(0); When I connect directly to the tomcat, I'll see this header: Content-Length: 0 But when I connect to the Apache, I'll see this header: Transfer-Encoding: chunked It is the same request. All the tips I found, told to set set Content-Length. But when I set it, it'll be ignored whe I connect through apache and mod_jk. - Jens -Ursprüngliche Nachricht- Von: ming fang [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Juni 2004 20:05 An: Tomcat Users List Betreff: Re: AW: Problem with Tomcat + Apache + mod_jk first you seem to have a problem with those 302 responses from tomcat. you have to fix that first. i'm using tomcat5 + apache2 + mod_jk2. in my setup, the chunked header comes from tomcat. just search google for tomcat disable chunking. there are lots of hits. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tomcat + Apache + mod_jk
Hello, I have new cognitions. The failure only appears, when the server sends a 302 - Moved Temporarily, so a redirect. But not every time. The HTTP-Request looks as follow: GET /login/ HTTP/1.1\r\n Host: x\r\n Cookie: JSESSIONID=C825930D6AACACFF3C38D40E9A1AB975.e1\r\n \r\n And now the Response: 0\r\n \r\n HTTP/1.1 200 OK\r\n Date: Tue, 22 Jun 2004 12:19:43 GMT\r\n Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e\r\n Content-Length: 5123\r\n Content-Language: de\r\n Content-Type: text/html;charset=ISO-8859-1\r\n \r\n **SOME CONTENT** The first two lines from the Response are wrong at this place and I don't know, where they come from. Has anyone a tip for me, where the problem could be?? Greets Jens -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Juni 2004 14:37 An: [EMAIL PROTECTED] Betreff: *** Mail von extern mit internem Absender ***Problem with Tomcat + Apache + mod_jk Hello List, I have a problem with Tomcat 4.1.27, Apache 1.3.26, mod_jk 1.2.5, JDK1.4.2. Somethimes the Apache sends a wrong HTTP-Answer and I'll see the following HTTP-Header in the browser: #3Apache Tomcat/4.1.27 HTTP/1.1 302 Moved Temporarily Date: Fri, 18 Jun 2004 11:23:55 GMT Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Location: http://x/index.jsp Keep-Alive: timeout=50, max=297 Connection: Keep-alive Transfer-Encoding: chunked Content-Type: text/plain 0 What's wrong? I could post the configurations of apache an tomcat if it helps. Greets Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tomcat + Apache + mod_jk
it looks like the respond is in chunked format. you should have a header that reads Transfer-Encoding:chunked. mod_jk1/2 both have serious bugs with chunked encoding. try going to tomcat direct to see with the proper header is there. On Jun 22, 2004, at 8:33 AM, [EMAIL PROTECTED] wrote: Hello, I have new cognitions. The failure only appears, when the server sends a 302 - Moved Temporarily, so a redirect. But not every time. The HTTP-Request looks as follow: GET /login/ HTTP/1.1\r\n Host: x\r\n Cookie: JSESSIONID=C825930D6AACACFF3C38D40E9A1AB975.e1\r\n \r\n And now the Response: 0\r\n \r\n HTTP/1.1 200 OK\r\n Date: Tue, 22 Jun 2004 12:19:43 GMT\r\n Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e\r\n Content-Length: 5123\r\n Content-Language: de\r\n Content-Type: text/html;charset=ISO-8859-1\r\n \r\n **SOME CONTENT** The first two lines from the Response are wrong at this place and I don't know, where they come from. Has anyone a tip for me, where the problem could be?? Greets Jens -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Juni 2004 14:37 An: [EMAIL PROTECTED] Betreff: *** Mail von extern mit internem Absender ***Problem with Tomcat + Apache + mod_jk Hello List, I have a problem with Tomcat 4.1.27, Apache 1.3.26, mod_jk 1.2.5, JDK1.4.2. Somethimes the Apache sends a wrong HTTP-Answer and I'll see the following HTTP-Header in the browser: #3Apache Tomcat/4.1.27 HTTP/1.1 302 Moved Temporarily Date: Fri, 18 Jun 2004 11:23:55 GMT Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Location: http://x/index.jsp Keep-Alive: timeout=50, max=297 Connection: Keep-alive Transfer-Encoding: chunked Content-Type: text/plain 0 What's wrong? I could post the configurations of apache an tomcat if it helps. Greets Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -ming fang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tomcat + Apache + mod_jk
Without Apache and mod_jk it works fine, so the application is clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Tomcat + Apache + mod_jk
you can try turning off chunking in tomcat. On Jun 22, 2004, at 9:12 AM, [EMAIL PROTECTED] wrote: Without Apache and mod_jk it works fine, so the application is clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -ming fang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Problem with Tomcat + Apache + mod_jk
The response from the tomcat looks as follow: = HTTP/1.1 302 Moved Temporarily Set-Cookie: JSESSIONID=E733DF07439078F09D5DD92695DA91F6.e1; Path=/ Location: x/login/ Content-Type: text/plain Content-Length: 0 Date: Tue, 22 Jun 2004 14:22:37 GMT Server: Apache Coyote/1.0 And now the response from the apache: = HTTP/1.1 302 Moved Temporarily Date: Tue, 22 Jun 2004 14:26:08 GMT Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Set-Cookie: JSESSIONID=34F73FFFDB846B67D9AAD027DA152B3E.e1; Path=/ Location: x/login/ Transfer-Encoding: chunked Content-Type: text/plain Only if I send the request to the apache I will recieve a response with the header 'Transfer-Encoding: chunked'. Where does this header come from? From the apache or from the tomcat? When it comes from tomcat, it is possible to disable this 'feature'`? Greets Jens -Ursprüngliche Nachricht- Von: ming fang [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Juni 2004 15:10 An: Tomcat Users List Betreff: Re: Problem with Tomcat + Apache + mod_jk it looks like the respond is in chunked format. you should have a header that reads Transfer-Encoding:chunked. mod_jk1/2 both have serious bugs with chunked encoding. try going to tomcat direct to see with the proper header is there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Problem with Tomcat + Apache + mod_jk
first you seem to have a problem with those 302 responses from tomcat. you have to fix that first. i'm using tomcat5 + apache2 + mod_jk2. in my setup, the chunked header comes from tomcat. just search google for tomcat disable chunking. there are lots of hits. On Jun 22, 2004, at 10:30 AM, [EMAIL PROTECTED] wrote: The response from the tomcat looks as follow: = HTTP/1.1 302 Moved Temporarily Set-Cookie: JSESSIONID=E733DF07439078F09D5DD92695DA91F6.e1; Path=/ Location: x/login/ Content-Type: text/plain Content-Length: 0 Date: Tue, 22 Jun 2004 14:22:37 GMT Server: Apache Coyote/1.0 And now the response from the apache: = HTTP/1.1 302 Moved Temporarily Date: Tue, 22 Jun 2004 14:26:08 GMT Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Set-Cookie: JSESSIONID=34F73FFFDB846B67D9AAD027DA152B3E.e1; Path=/ Location: x/login/ Transfer-Encoding: chunked Content-Type: text/plain Only if I send the request to the apache I will recieve a response with the header 'Transfer-Encoding: chunked'. Where does this header come from? From the apache or from the tomcat? When it comes from tomcat, it is possible to disable this 'feature'`? Greets Jens -Ursprüngliche Nachricht- Von: ming fang [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Juni 2004 15:10 An: Tomcat Users List Betreff: Re: Problem with Tomcat + Apache + mod_jk it looks like the respond is in chunked format. you should have a header that reads Transfer-Encoding:chunked. mod_jk1/2 both have serious bugs with chunked encoding. try going to tomcat direct to see with the proper header is there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -ming fang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Tomcat + Apache + mod_jk
Hello List, I have a problem with Tomcat 4.1.27, Apache 1.3.26, mod_jk 1.2.5, JDK1.4.2. Somethimes the Apache sends a wrong HTTP-Answer and I'll see the following HTTP-Header in the browser: #3Apache Tomcat/4.1.27 HTTP/1.1 302 Moved Temporarily Date: Fri, 18 Jun 2004 11:23:55 GMT Server: Apache/1.3.26 (Unix) mod_jk/1.2.5 mod_ssl/2.8.10 OpenSSL/0.9.6e Location: http://x/index.jsp Keep-Alive: timeout=50, max=297 Connection: Keep-alive Transfer-Encoding: chunked Content-Type: text/plain 0 What's wrong? I could post the configurations of apache an tomcat if it helps. Greets Jens - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context paths, tomcat, apache, ensim 3.7
Okay I followed the below instructions, and added the bits to each file. I have therefore set up my configuration as follows : File /etc/httpd/siteXXX/tomcat4-aliases : IfModule mod_jk.c JkMount /manager ajp13 JkMount /manager/* ajp13 /IfModule File /var/tomcat4/conf/sites.xml.d/siteXXX.xml.custom : Context path=/manager debug=0 privileged=true docBase=/var/tomcat4/server/webapps/manager Realm className=org.apache.catalina.realm.MemoryRealm pathname=conf/sites.xml.d/siteXXX.xml.users / /Context File /var/tomcat4/conf/sites.xml.d/siteXXX.xml.users : tomcat-users user name=username password=password roles=manager / /tomcat-users I filled in the XXX to be 6, that is the site number. when i go to www.mysite.com/manager/ i get the following error. Apache Tomcat/4.0.6 - HTTP Status 404 - /manager/ type Status report message /manager/ description The requested resource (/manager/) is not available. I am running ensim pro 3.7though it sometimes says my apliance version is 3.5 something. I don't see anything funny in the log files of mod_jk, apache, or tomcat. Can someone think of something to look for? But wait i see this... [Tue Jun 01 18:37:45 2004] [error] [client 24.199.108.17] File does not exist: /home/virtual/site6/fst/var/www/html/manager Thanks, Tom
Re: context paths, tomcat, apache, ensim 3.7
just so everyone knows this a 404 error problem with the manager application under a virtual host. Please help, been working on this for two weeks now.girlfriend and dog mad! On Jun 1, 2004, at 9:52 PM, stella luna wrote: Okay I followed the below instructions, and added the bits to each file. I have therefore set up my configuration as follows : File /etc/httpd/siteXXX/tomcat4-aliases : IfModule mod_jk.c JkMount /manager ajp13 JkMount /manager/* ajp13 /IfModule File /var/tomcat4/conf/sites.xml.d/siteXXX.xml.custom : Context path=/manager debug=0 privileged=true docBase=/var/tomcat4/server/webapps/manager Realm className=org.apache.catalina.realm.MemoryRealm pathname=conf/sites.xml.d/siteXXX.xml.users / /Context File /var/tomcat4/conf/sites.xml.d/siteXXX.xml.users : tomcat-users user name=username password=password roles=manager / /tomcat-users I filled in the XXX to be 6, that is the site number. when i go to www.mysite.com/manager/ i get the following error. Apache Tomcat/4.0.6 - HTTP Status 404 - /manager/ type Status report message /manager/ description The requested resource (/manager/) is not available. I am running ensim pro 3.7though it sometimes says my apliance version is 3.5 something. I don't see anything funny in the log files of mod_jk, apache, or tomcat. Can someone think of something to look for? But wait i see this... [Tue Jun 01 18:37:45 2004] [error] [client 24.199.108.17] File does not exist: /home/virtual/site6/fst/var/www/html/manager Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context paths, tomcat, apache, ensim 3.7 ( with sever.xml) included
I figure it has to be something with my server.xml filecan someone take a look at it and see if something pops out? Thanks so much, TDG server_vwh.xml Description: application/xml On Jun 1, 2004, at 9:52 PM, stella luna wrote: Okay I followed the below instructions, and added the bits to each file. I have therefore set up my configuration as follows : File /etc/httpd/siteXXX/tomcat4-aliases : IfModule mod_jk.c JkMount /manager ajp13 JkMount /manager/* ajp13 /IfModule File /var/tomcat4/conf/sites.xml.d/siteXXX.xml.custom : Context path=/manager debug=0 privileged=true docBase=/var/tomcat4/server/webapps/manager Realm className=org.apache.catalina.realm.MemoryRealm pathname=conf/sites.xml.d/siteXXX.xml.users / /Context File /var/tomcat4/conf/sites.xml.d/siteXXX.xml.users : tomcat-users user name=username password=password roles=manager / /tomcat-users I filled in the XXX to be 6, that is the site number. when i go to www.mysite.com/manager/ i get the following error. Apache Tomcat/4.0.6 - HTTP Status 404 - /manager/ type Status report message /manager/ description The requested resource (/manager/) is not available. I am running ensim pro 3.7though it sometimes says my apliance version is 3.5 something. I don't see anything funny in the log files of mod_jk, apache, or tomcat. Can someone think of something to look for? But wait i see this... [Tue Jun 01 18:37:45 2004] [error] [client 24.199.108.17] File does not exist: /home/virtual/site6/fst/var/www/html/manager Thanks, Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context paths, tomcat, apache, ensim 3.7 ( with sever.xml) included
I am getting this error when i try to connect to localhost/managers/ Tue Jun 01 12:19:12 2004] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 111 [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (872)]: Error connecting to the Tomcat process. [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 0 [Tue Jun 01 12:19:12 2004] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 111 [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (872)]: Error connecting to the Tomcat process. [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 1 [Tue Jun 01 12:19:12 2004] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 111 [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111 [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (872)]: Error connecting to the Tomcat process. [Tue Jun 01 12:19:12 2004] [jk_ajp_common.c (1181)]: In jk_endpoint_t::service, ajp_send_request failed in send loop 2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat , APache , Jserv
Hi , can anyone tell me that 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong thanks in advance . Birendar Singh Waldiya DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat , APache , Jserv
- Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack) - jserv is a predessor of tomcat (historical, only in parts technical) and had no own http stack. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:03 PM To: Tomcat Users List Subject: Tomcat , APache , Jserv 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat , APache , Jserv
Thanks a lot. Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Ralph Einfeldt [EMAIL PROTECTED] 19-04-04 05:44 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Tomcat , APache , Jserv - Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack) - jserv is a predessor of tomcat (historical, only in parts technical) and had no own http stack. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 2:03 PM To: Tomcat Users List Subject: Tomcat , APache , Jserv 1. Is Tomcat a separate servlet engine and webserver ? 2. Is Apache a webserver only ? 3. Can we integrate Tomcat and Apache ?? What i understood was Tomcat is a separate webser servlet engine , Apache is a better webserver , we can have use Tomcat servlet engine and Apache Web server , And waht is Jserve??? It will help me in making my basic strong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT4506 DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Q] Tomcat, Apache Webserver and Datasources
On a standalone Tomcat server, I can define JDBC resources in a context without problems. As soon as Apache webserver is brought into the equation, the JDBC datasources fail to initialize, exceptions indicating that the resoruce parameters where null. I don't know anything about Apache webserver, but it somehow sounds as if Apache creates a new context that doesn't include my datasource settings. I've also tried to define the resources in the server.xml under GlobalNamingResources - still no luck. Are there issues around this that I need to focus on? Ie, do I need to setup datasources differently when working with Apache webserver? __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] Tomcat, Apache Webserver and Datasources
Hi, Hmm, others can help more, but maybe the mapping between apache and tomcat is wrong? Yoav Shapira Millennium Research Informatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 8:39 AM To: [EMAIL PROTECTED] Subject: [Q] Tomcat, Apache Webserver and Datasources On a standalone Tomcat server, I can define JDBC resources in a context without problems. As soon as Apache webserver is brought into the equation, the JDBC datasources fail to initialize, exceptions indicating that the resoruce parameters where null. I don't know anything about Apache webserver, but it somehow sounds as if Apache creates a new context that doesn't include my datasource settings. I've also tried to define the resources in the server.xml under GlobalNamingResources - still no luck. Are there issues around this that I need to focus on? Ie, do I need to setup datasources differently when working with Apache webserver? __ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OSX Server and Tomcat/Apache integration
I am hoping that someone out there will be able to help. I have spent about 20+ hours on this and am getting nowhere fast. I have OSX Server (v 10.3, Panther) installed and am trying to get Tomcat and Apache to connect. I have read the documentation but with little luck. I have it all working on the plain client version of Panther without a problem BUT with the Server version of Panther the configuration is very different and it's not just a matter of copying across the config files or using the same concepts. Thank you. I v a n ... -- Ivan Markovic SculptLight http://www.sculptlight.com Mobile: (+353) 87 2939256 Office: (+353) 1 2982205 Fax: (+353) 1 2966848 2 Airfield Drive, Churchtown, Dublin 14, Ireland. VAT: IE 9072482G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OSX Server and Tomcat/Apache integration
Hi, What errors are you getting? Yoav Shapira Millennium Research Informatics -Original Message- From: Ivan E. Markovic [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 31, 2004 12:09 PM To: [EMAIL PROTECTED] Subject: OSX Server and Tomcat/Apache integration I am hoping that someone out there will be able to help. I have spent about 20+ hours on this and am getting nowhere fast. I have OSX Server (v 10.3, Panther) installed and am trying to get Tomcat and Apache to connect. I have read the documentation but with little luck. I have it all working on the plain client version of Panther without a problem BUT with the Server version of Panther the configuration is very different and it's not just a matter of copying across the config files or using the same concepts. Thank you. I v a n ... -- Ivan Markovic SculptLight http://www.sculptlight.com Mobile: (+353) 87 2939256 Office: (+353) 1 2982205 Fax: (+353) 1 2966848 2 Airfield Drive, Churchtown, Dublin 14, Ireland. VAT: IE 9072482G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat/Apache: error creating shm
On Friday 26 March 2004 23:18, Robert Mazur wrote: I am running into an error when launching tomcat: shm.create(): error creating shm 70014 End of file found I have set up the coyote connector on the following system: -SUSE9 -Apache 2.0.49 -Tomcat 5.0.19 -jakarta-tomcat-connectors-jk2-2.0.4-src ...using instructions at: http://cymulacrum.net/writings/tomcat5/c831.html#USING_MOD_JK2 Can someone point me towards what this might mean in catalina.out: ---start log snip-- snip [Fri Mar 26 22:54:38 2004] ( info ) [jk_channel_un.c (152)] channelUn.init(): extracted file from name /usr/local/tomcat-5.0.19/work/jk2.socket [Fri Mar 26 22:54:38 2004] (error ) [jk_shm.c (105)] shm.create(): error creating shm 70014 End of file found [Fri Mar 26 22:54:38 2004] (error ) [jk_shm.c (178)] shm.create(): error creating shm /usr/local/tomcat-5.0.19/logs/jk2.shm snip end log snip-- The file jk2.shm exists at the location noted in the error message. Creating the *.so files went fine. I believe I have adjusted all config files accordingly (triple checked). I am running everything as root (just during this test) to assure this isn't a permission problem. Apache also gives me a related message in the error log: [Fri Mar 26 23:12:09 2004] [error] shm.create(): error creating shm 70014 End of file found [Fri Mar 26 23:12:09 2004] [error] shm.create(): error creating shm /usr/ local/tomcat-5.0.19/logs/jk2.sh Can someone tell me what may be causing this? Thanks, Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] UPDATE: OK, if I drop back to using TCP sockets instead of unix domain sockets, the error creating the shm is clear, and everything works. However I do get this in my catalina.log file while using tcp sockets: Mar 27, 2004 10:36:21 AM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request So I guess I still can not resolve two questions: 1) I am still wondering what is wrong with the unix socket option and why I'm getting shm errors. What does this mean? I've checked over and over for file permission issues: [error] shm.create(): error creating shm 70014 End of file found [error] shm.create(): error creating shm /usr/ local/tomcat-5.0.19/logs/jk2.sh 2) How scared should I be of the jk.common error above while using tcp sockets? Unfortunately I can't wrap my mind around what that means. Thanks folks, Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/Apache: error creating shm
I am running into an error when launching tomcat: shm.create(): error creating shm 70014 End of file found I have set up the coyote connector on the following system: -SUSE9 -Apache 2.0.49 -Tomcat 5.0.19 -jakarta-tomcat-connectors-jk2-2.0.4-src ...using instructions at: http://cymulacrum.net/writings/tomcat5/c831.html#USING_MOD_JK2 Can someone point me towards what this might mean in catalina.out: ---start log snip-- snip [Fri Mar 26 22:54:38 2004] ( info ) [jk_channel_un.c (152)] channelUn.init(): extracted file from name /usr/local/tomcat-5.0.19/work/jk2.socket [Fri Mar 26 22:54:38 2004] (error ) [jk_shm.c (105)] shm.create(): error creating shm 70014 End of file found [Fri Mar 26 22:54:38 2004] (error ) [jk_shm.c (178)] shm.create(): error creating shm /usr/local/tomcat-5.0.19/logs/jk2.shm snip end log snip-- The file jk2.shm exists at the location noted in the error message. Creating the *.so files went fine. I believe I have adjusted all config files accordingly (triple checked). I am running everything as root (just during this test) to assure this isn't a permission problem. Apache also gives me a related message in the error log: [Fri Mar 26 23:12:09 2004] [error] shm.create(): error creating shm 70014 End of file found [Fri Mar 26 23:12:09 2004] [error] shm.create(): error creating shm /usr/ local/tomcat-5.0.19/logs/jk2.sh Can someone tell me what may be causing this? Thanks, Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/Apache Port Settings
I need to be able to run Apache HTTP Server and Apache Tomcat at the same time, but they are both on port 8080. How can I change the configuration of one of either the HTTP server or Tomcat to resolve this? Thanks
Re: Tomcat/Apache Port Settings
Hello Neil, under regular circumstances the HTTP server port should be set to listen on port 80. So you might want to change this setting in your httpd.conf file. Pretty much at the start of your httpd.conf file there should be a line like this: Listen *:80 or in your case Listen *:8080 The asterisk can also be an ip address. Anyway, just change 8080 to 80 and your Apache server should listen on port 80. Sincerely Michael Kastner [EMAIL PROTECTED] schrieb: I need to be able to run Apache HTTP Server and Apache Tomcat at the same time, but they are both on port 8080. How can I change the configuration of one of either the HTTP server or Tomcat to resolve this? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Apache connector not working
Allan, the problem lies with the link-edit while building the mod_jk2.so module. The Makefile produced in the some_path/native2/server/apache2/ is buggy. There is some important libraries missing in the list. Also, I believe the configure is not checking everything properly. All prereqs should be check at the configure step and flagged if not satisfied. You can refer to the following final discussion in the current mailing list: http://www.mail-archive.com/[EMAIL PROTECTED]/msg104016.html What is missing, is the proper JK_LDFLAGS definition which should be: JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -laprutil-0 -lgdbm -lexpat -ldb-4.0 -lpthread -ldl In my case, everything after -lcrypt was missing. And since we are building shared objects, symbols are resolved at runtime rather than at compile or link-edit time. I used an rpm to install the connector. Do you suggest I uninstall the rpm and compile the source? Thanks Allan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Apache connector not working
Le ven 19/03/2004 à 05:11, Allan Bruce a écrit : I used an rpm to install the connector. Do you suggest I uninstall the rpm and compile the source? Thanks Allan Before you may do the following check: Locate the mod_jk2.so file and issue the following command: ldd mod_jk2.so It will list all the required libraries for the module to work properly. I got the following list on my system: /usr/lib/libgdkxft.so = /usr/lib/libgdkxft.so (0x4002c000) libgcc_s.so.1 = /usr/local/lib/libgcc_s.so.1 (0x40031000) libc.so.6 = /lib/i686/libc.so.6 (0x40054000) libgtk-1.2.so.0 = /usr/lib/libgtk-1.2.so.0 (0x4019) libgdk-1.2.so.0 = /usr/lib/libgdk-1.2.so.0 (0x402be000) libgmodule-1.2.so.0 = /usr/lib/libgmodule-1.2.so.0 (0x402f4000) libglib-1.2.so.0 = /usr/lib/libglib-1.2.so.0 (0x402f7000) libdl.so.2 = /lib/libdl.so.2 (0x4031b000) libXi.so.6 = /usr/lib/libXi.so.6 (0x4031f000) libXext.so.6 = /usr/lib/libXext.so.6 (0x40327000) libX11.so.6 = /usr/lib/libX11.so.6 (0x40336000) libm.so.6 = /lib/i686/libm.so.6 (0x4040) libXft.so.1 = /usr/lib/libXft.so.1 (0x40423000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) libXrender.so.1 = /usr/lib/libXrender.so.1 (0x4044d000) libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0x40452000) libz.so.1 = /usr/lib/libz.so.1 (0x404a3000) If you get something similar, the problem may be with the LD_LIBRARY_PATH or the /etc/ld.so.conf, your libraries are not located were they are expected and they cannot be found to resolve the symbols at runtime. It seems to me the safest approach would be to recompile from source and have some sort of control over what you are doing. There are already some recent questions on the current mailing list which described the options you should pass to the configure. Just be warn if it fails at runtime with similar problem, the solution is to edit manually the Makefile in native2/server/apache2 directory to include manually the missing libraries at the JK_LDFLAGS definition line. I found db-4.0 is not required, another version of the Berkeley DB will do as well, given you provide the correct naming to the -l option. -- === Daniel Savard === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Apache connector not working
- Original Message - From: Daniel Savard [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 19, 2004 3:27 PM Subject: Re: Tomcat Apache connector not working Le ven 19/03/2004 à 05:11, Allan Bruce a écrit : I used an rpm to install the connector. Do you suggest I uninstall the rpm and compile the source? Thanks Allan Before you may do the following check: Locate the mod_jk2.so file and issue the following command: ldd mod_jk2.so It will list all the required libraries for the module to work properly. I got the following list on my system: /usr/lib/libgdkxft.so = /usr/lib/libgdkxft.so (0x4002c000) libgcc_s.so.1 = /usr/local/lib/libgcc_s.so.1 (0x40031000) libc.so.6 = /lib/i686/libc.so.6 (0x40054000) libgtk-1.2.so.0 = /usr/lib/libgtk-1.2.so.0 (0x4019) libgdk-1.2.so.0 = /usr/lib/libgdk-1.2.so.0 (0x402be000) libgmodule-1.2.so.0 = /usr/lib/libgmodule-1.2.so.0 (0x402f4000) libglib-1.2.so.0 = /usr/lib/libglib-1.2.so.0 (0x402f7000) libdl.so.2 = /lib/libdl.so.2 (0x4031b000) libXi.so.6 = /usr/lib/libXi.so.6 (0x4031f000) libXext.so.6 = /usr/lib/libXext.so.6 (0x40327000) libX11.so.6 = /usr/lib/libX11.so.6 (0x40336000) libm.so.6 = /lib/i686/libm.so.6 (0x4040) libXft.so.1 = /usr/lib/libXft.so.1 (0x40423000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) libXrender.so.1 = /usr/lib/libXrender.so.1 (0x4044d000) libfreetype.so.6 = /usr/lib/libfreetype.so.6 (0x40452000) libz.so.1 = /usr/lib/libz.so.1 (0x404a3000) If you get something similar, the problem may be with the LD_LIBRARY_PATH or the /etc/ld.so.conf, your libraries are not located were they are expected and they cannot be found to resolve the symbols at runtime. It seems to me the safest approach would be to recompile from source and have some sort of control over what you are doing. There are already some recent questions on the current mailing list which described the options you should pass to the configure. Just be warn if it fails at runtime with similar problem, the solution is to edit manually the Makefile in native2/server/apache2 directory to include manually the missing libraries at the JK_LDFLAGS definition line. I found db-4.0 is not required, another version of the Berkeley DB will do as well, given you provide the correct naming to the -l option. My output is: [EMAIL PROTECTED] apache2]# ldd mod_jk2.so libc.so.6 = /lib/i686/libc.so.6 (0x4003) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) is this a problem? I am quite new to linux so I dont know much about libraries. Thanks Allan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Apache connector not working
Le ven 19/03/2004 à 12:30, Allan Bruce a écrit : My output is: [EMAIL PROTECTED] apache2]# ldd mod_jk2.so libc.so.6 = /lib/i686/libc.so.6 (0x4003) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000) is this a problem? I am quite new to linux so I dont know much about libraries. Thanks Allan Yes, that is. Your output indicates the mod_jk2.so doesn't know it needs to bind with many other shared libraries in order to resolve all symbols. So, it will look only in the two above libraries to resolve all the symbols, and will not find the ap_server_root (as well as many others) symbol causing the error. You may look at the list of symbols which will required to be resolved at runtime with the nm command: nm mod_jk2.so and all lines beginning with a U are for undefined symbols. Those with a T are defined within the current library. There is no other way than building the module yourself to make it aware it requires to bind with all other libraries. -- === Daniel Savard === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Apache connector not working
I have apache and tomcat both up and running. Now I want to be able to set up a connector so that I can browse the 'examples' directory of the tomcat installation through apaches port. The below config doesnt seem to work, can somebody please tell me where I am going wrong? Thanks - catalina.out 18-Mar-2004 10:01:57 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni components: java.io.IOException: /usr/lib/apache2/mod_jk2.so: /usr/lib/apache2/mod_jk2.so: undefined symbol: ap_server_root 18-Mar-2004 10:01:58 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8019 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=23/505 config=/usr/local/sites/tomcat/tomcat/conf/jk2.properties 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni components: java.io.IOException: /usr/lib/apache2/mod_jk2.so: /usr/lib/apache2/mod_jk2.so: undefined symbol: ap_server_root 18-Mar-2004 10:01:58 org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 18-Mar-2004 10:01:58 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=5/126 config=/usr/local/sites/tomcat/tomcat/conf/jk2.properties --added to commonhttpd.conf LoadModule jk2_module /usr/lib/apache2/mod_jk2.so --/etc/httpd2/conf/workers2.properties #min for working [channel.socket:localhost:8019] info=Ajp13 forwarding over socket tomcatId=localhost:8019 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp [shm] file=/tmp/shm.out size=10 --/usr/local/tomcat/conf/jk2.properies # list of needed handlers. handler.list=apr,channelSocket,request # Override the default port for the channelSocket channelSocket.port=8019 # Dynamic library apr.NativeSo=/usr/lib/apache2/mod_jk2.so --added to /usr/local/tomcat/conf/server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8019 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]