Re: Tomcat Alone or tomcat+IIS/Apache
We required IIS for a CGI ecommerce solution that was required. Plug and Pay I think is the company we bought it from. I came in late on the project and haven't had a lot of time to mess with it. Does Tomcat support CGI bins utalizing non-java technology? Gregg On 9/30/05, Peddireddy Srikanth [EMAIL PROTECTED] wrote: thanks for all the replies On 9/30/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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 Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache Does Tomcat support CGI bins utalizing non-java technology? As usual, RTFM: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/cgi-howto.html - 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 Alone or tomcat+IIS/Apache
Dear Chuck, your mail is very informative. We r facing a similar issue in our organization :: Tomcat or Apache+tomcat. And the supporters of Apache+tomcat are arguing that as Apache/IIS can make use of native OS (windows inour case) libraries for thread management , memory mangement etc, they will fare well under high loads. And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. Is this argument a valid one or just a misunderstanding?? thanx for any kind of info in this regard. Regards Srikanth On 9/20/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Tomcat Alone or tomcat+IIS/Apache I know that delivering static content with Apache/IIS is preferred. Urban myth, based primarily on older Tomcat versions that did not perform anywhere near as well as the current one. But does that matter if every single request has to go to Tomcat because the data is dynamic? Think about it: How could adding path length and latency for every request improve performance? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Job security perhaps? Also increased stress levels, if you enjoy that sort of thing. Unless there's something specific for httpd or IIS to do (e.g., poor man's load balancing), simplify your life and leave them out. Check out Peter Lin's performance measurements for just static content, and you may decide you don't need httpd or IIS for that, either. http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf - 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 Alone or tomcat+IIS/Apache
Peddireddy Srikanth wrote: And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. Is this argument a valid one or just a misunderstanding?? The statement for threads is probably valid if you read some Java 1.1 book. From version 1.2 Java uses platform native threads. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Alone or tomcat+IIS/Apache
We had the same discussion a year ago, as we switched to tomcat 5 and was testing whether we do need apache in front of it. Actually the only advantage for this solution left were apache mods like url-rewriting - http://mydomain - http://mydomain/myapp/mypath - better for some search engines and so on. mod_gzip - now supported by tomcat directly. But this isn't worth installing an apache. The real problem with serving static content that tomcat has is the thread-model - one thread per connection is a bit messy if you have http 1.1 (keep-alives) on. But apache has the same issue. So if you have a log of static content to serve I'd strongly suggest you put a squid in front of your tomcats instead of apache (iis is a joke anyway). regards leon On 9/30/05, Mladen Turk [EMAIL PROTECTED] wrote: Peddireddy Srikanth wrote: And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. Is this argument a valid one or just a misunderstanding?? The statement for threads is probably valid if you read some Java 1.1 book. From version 1.2 Java uses platform native threads. Regards, Mladen. - 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 Alone or tomcat+IIS/Apache
From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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 Alone or tomcat+IIS/Apache
thanks for all the replies On 9/30/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat Alone or tomcat+IIS/Apache And they argue that as Tomcat it self runs inside a JVM, which inturn is a single process all the threads etc wil be simulted ones (and not the native threads) and hence it will not scale up well under high loads. More urban myth. As another respondent pointed out, all modern JVMs (i.e., from JRE 1.2 on) use native threads and the underlying OS for thread dispatching. Coupled with thread-local object allocation (available since JRE 1.3), scaling of Tomcat itself is not a problem; it runs happily on our 32-CPU servers as long as the applications themselves have no inherent bottlenecks. You do want to adjust the heap parameters for any serious work, especially on a Windows platform, where the default maximum borders on the miniscule. - 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]
Running Perl script from tomcat ( no apache ) on windows
Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Perl script from tomcat ( no apache ) on windows
Am Mittwoch, 28. September 2005 16:34 schrieb alebu: Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Perl script from tomcat ( no apache ) on windows
alebu wrote: Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Simply use something like this in a jsp/servlet: Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(cmd); proc.getInputStream() // std out proc.getErrorStream() // std err Where cmd is a String[] with at index 0 the path to the command, the path to perl in your case and the rest of the array the commandline options param=value, --someoption, There's also a variant of the exec method where you can set env variables, I think. This is all documented in the Java API of course. It might be that the default security manager settings in your appserver have a rule against executing native commands in which case you will need to tweak these settings. Good luck, Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Alone or tomcat+IIS/Apache
I am just curious. I know that delivering static content with Apache/IIS is preferred. But does that matter if every single request has to go to Tomcat because the data is dynamic? Is there some caching that gets involved here? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Gregg
Re: Tomcat Alone or tomcat+IIS/Apache
Well I'm sure you can imagine that if all of your content is dynamic then layering tomcat behind Apache/IIS will only add latency/resources to your requests... nothing significant.. but maybe if your serving up a ton of requests it might be worthwhile to run tomcat standalone. -David Quoting Gregg D Bolinger [EMAIL PROTECTED]: I am just curious. I know that delivering static content with Apache/IIS is preferred. But does that matter if every single request has to go to Tomcat because the data is dynamic? Is there some caching that gets involved here? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Gregg This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Alone or tomcat+IIS/Apache
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Tomcat Alone or tomcat+IIS/Apache I know that delivering static content with Apache/IIS is preferred. Urban myth, based primarily on older Tomcat versions that did not perform anywhere near as well as the current one. But does that matter if every single request has to go to Tomcat because the data is dynamic? Think about it: How could adding path length and latency for every request improve performance? What is the benefit of Tomcat + Apache/IIS on major J2EE apps? Job security perhaps? Also increased stress levels, if you enjoy that sort of thing. Unless there's something specific for httpd or IIS to do (e.g., poor man's load balancing), simplify your life and leave them out. Check out Peter Lin's performance measurements for just static content, and you may decide you don't need httpd or IIS for that, either. http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf - 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 5 - apache 2 - ldap
But, you will run into problems if you use JNDIRealm with SSL (ldap with ssl - Container Managed Security)use mozilla-java sdk if you prefer to do this way. http://www.mozilla.org/directory On 7/27/05, Nili Adoram [EMAIL PROTECTED] wrote: What about single sign-on for web applications and PHP? Does tomcat delegate credentials back to Apache so Apache would not authenticate again? Thanks Nili On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: If you use Form-based authentication (login page) then tomcat needs to do it... Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:02 To: 'Tomcat Users List' Subject: RE: tomcat 5 - apache 2 - ldap Ask tomcat Because if sometime you change the webserver ( in the worst case ) then you don't need to change anything :) Tomcat has good support for OpenLdap ... ( I have been using it for 1 year ) Guru -Original Message- From: Nili Adoram [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:54 To: tomcat-user@jakarta.apache.org Subject: tomcat 5 - apache 2 - ldap Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram ([EMAIL PROTECTED]) SEMPRE Team, RD Qlusters Inc. 972-3-6081976 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 - apache 2 - ldap
Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5 - apache 2 - ldap
Ask tomcat Because if sometime you change the webserver ( in the worst case ) then you don't need to change anything :) Tomcat has good support for OpenLdap ... ( I have been using it for 1 year ) Guru -Original Message- From: Nili Adoram [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:54 To: tomcat-user@jakarta.apache.org Subject: tomcat 5 - apache 2 - ldap Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram - 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 5 - apache 2 - ldap
If you use Form-based authentication (login page) then tomcat needs to do it... Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:02 To: 'Tomcat Users List' Subject: RE: tomcat 5 - apache 2 - ldap Ask tomcat Because if sometime you change the webserver ( in the worst case ) then you don't need to change anything :) Tomcat has good support for OpenLdap ... ( I have been using it for 1 year ) Guru -Original Message- From: Nili Adoram [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:54 To: tomcat-user@jakarta.apache.org Subject: tomcat 5 - apache 2 - ldap Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram - 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 5 - apache 2 - ldap
What about single sign-on for web applications and PHP? Does tomcat delegate credentials back to Apache so Apache would not authenticate again? Thanks Nili On Wed, 27 Jul 2005 13:05:49 +0100, Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote: If you use Form-based authentication (login page) then tomcat needs to do it... Regards Guru -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 13:02 To: 'Tomcat Users List' Subject: RE: tomcat 5 - apache 2 - ldap Ask tomcat Because if sometime you change the webserver ( in the worst case ) then you don't need to change anything :) Tomcat has good support for OpenLdap ... ( I have been using it for 1 year ) Guru -Original Message- From: Nili Adoram [mailto:[EMAIL PROTECTED] Sent: 27 July 2005 12:54 To: tomcat-user@jakarta.apache.org Subject: tomcat 5 - apache 2 - ldap Hi, I need to setup the following system: - Tomcat 5.5.9 - Apache 2 (using mod_jk) - Redhat 7.3 - User authentication against Ldap (using OpenLdap) - Single sign-on (e.g. if the user is authenticated for entering a web application he will not have to authenticate again when browsing a PHP page) - Form-based authentication (login page) I still need to figure out the following: - Should Tomcat or Apache do ldap authentication ? - How are credentials passed between Tomcat and Apache (to ensure single sign-on) ? Your help is appreciated. -- Nili Adoram ([EMAIL PROTECTED]) SEMPRE Team, RD Qlusters Inc. 972-3-6081976 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linking Tomcat to Apache
How is it all currently configured (the mod_jk portions)? Bryan On 7/13/05, Ben Stuart [EMAIL PROTECTED] wrote: I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9 I followed the instructions and I thought I had it all right! But I edited my httpd.cong file to support virtual hosts and pointed the document root to the jsp and the servlet examples and apache serves those pages to the web but the examples come through as html so its not using tomcat Can anyone help? I will send you my files if that will help? -Ben - 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]
Linking Tomcat to Apache
I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9 I followed the instructions and I thought I had it all right! But I edited my httpd.cong file to support virtual hosts and pointed the document root to the jsp and the servlet examples and apache serves those pages to the web but the examples come through as html so its not using tomcat Can anyone help? I will send you my files if that will help? -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Linking Tomcat to Apache
Check out http://jakarta.apache.org/tomcat/connectors-doc/ for infromation on how to configure mod_jk to server up specific sorts of URLs. Ben Ricker On 7/13/05, Ben Stuart [EMAIL PROTECTED] wrote: I am trying to use ModJk to Link Apache 2 and Tomcat 5.5.9 I followed the instructions and I thought I had it all right! But I edited my httpd.cong file to support virtual hosts and pointed the document root to the jsp and the servlet examples and apache serves those pages to the web but the examples come through as html so its not using tomcat Can anyone help? I will send you my files if that will help? -Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Apache
Hello together, I still have some trouble running Apache and Tomcat together in one host. I heard that I have to write a j_secutiry_check into apache.conf or httpd.conf. Where exactly I have to write this, and with which syntax. What else I have to consider while running Apache and Tomcat together. Important: Tomcat is not embedded in Apache in my case. It has its own process!!! Thank you... Gruss Christian -- Christian Stalp Institut für Medizinische Biometrie, Epidemiologie und Informatik Johannes-Gutenberg-Universität Mainz Tel.: 06131 / 17-3107 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache
I don t know details about your problem but i can answer that j_secutiry_check is not a way of integrating tomcat into apache. It is an authentition scheme defined by J2EE specs. What you need is the jk_mount apache module, to let your Apache install bypass the dynamic calls to tomcat, and then to serve only static content with apache. Details of configuration can be found at: http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/ Christian Stalp escribió: Hello together, I still have some trouble running Apache and Tomcat together in one host. I heard that I have to write a j_secutiry_check into apache.conf or httpd.conf. Where exactly I have to write this, and with which syntax. What else I have to consider while running Apache and Tomcat together. Important: Tomcat is not embedded in Apache in my case. It has its own process!!! Thank you... Gruss Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache
Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez: I don t know details about your problem but i can answer that j_secutiry_check is not a way of integrating tomcat into apache. It is an authentition scheme defined by J2EE specs. What you need is the jk_mount apache module, to let your Apache install bypass the dynamic calls to tomcat, and then to serve only static content with apache. Details of configuration can be found at: http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/ No this isn't the solution. Tomcat and Apache are full independent. They don't cooperate together nor they communicate. Apache listens at port 80 and Tomcat at port 8180 ( its the Debian Solution ). But I cannot run tomcat under these configuration. I get an error dump each time: [quote] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000 (ApplicationFilterChain.java:51) at org.apache.cata. .. [/quote] Apache works fine and makes no trouble. Gruss Christian -- Christian Stalp Institut für Medizinische Biometrie, Epidemiologie und Informatik Johannes-Gutenberg-Universität Mainz Tel.: 06131 / 17-3107 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache
I have the same issue! with debian sarge, and tomcat installed from scratch: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The return type is incompatible with JspSourceDependent.getDependants() org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397) jakarta-tomcat-5.5.9-src.tar.gz Debian GNU/Linux 3.1 jdk1.5.0_03 No this isn't the solution. Tomcat and Apache are full independent. They don't cooperate together nor they communicate. Apache listens at port 80 and Tomcat at port 8180 ( its the Debian Solution ). But I cannot run tomcat under these configuration. I get an error dump each time: [quote] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000 (ApplicationFilterChain.java:51) at org.apache.cata. .. [/quote] Apache works fine and makes no trouble. Gruss Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Apache
Check the permission in the work directory change it to 777 and try -Original Message- From: Ivan Rodriguez [mailto:[EMAIL PROTECTED] Sent: 11 July 2005 15:14 To: Tomcat Users List Subject: Re: Tomcat and Apache I have the same issue! with debian sarge, and tomcat installed from scratch: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: The return type is incompatible with JspSourceDependent.getDependants() org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397) jakarta-tomcat-5.5.9-src.tar.gz Debian GNU/Linux 3.1 jdk1.5.0_03 No this isn't the solution. Tomcat and Apache are full independent. They don't cooperate together nor they communicate. Apache listens at port 80 and Tomcat at port 8180 ( its the Debian Solution ). But I cannot run tomcat under these configuration. I get an error dump each time: [quote] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 432) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 142) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio nFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000 (ApplicationFilterChain.java:51) at org.apache.cata. .. [/quote] Apache works fine and makes no trouble. Gruss Christian - 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 and Apache
It was my first attempt. I think i have problems with library dependencies, cause I have copied the install from development to integration enviroment. Development is a mandriva cooker (urpmi setup), and integration a debian sarge system(from scratch setup). Installing and getting running tomcat 5.5 is not as easy than with 5.0 series :) Raghupathy,Gurumoorthy escribió: Check the permission in the work directory change it to 777 and try - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and Apache
From: Christian Stalp [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Tomcat and Apache Date: Mon, 11 Jul 2005 13:53:09 +0200 Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez: I don t know details about your problem but i can answer that j_secutiry_check is not a way of integrating tomcat into apache. It is an authentition scheme defined by J2EE specs. What you need is the jk_mount apache module, to let your Apache install bypass the dynamic calls to tomcat, and then to serve only static content with apache. Details of configuration can be found at: http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/ No this isn't the solution. Tomcat and Apache are full independent. They don't cooperate together nor they communicate. Apache listens at port 80 and Tomcat at port 8180 ( its the Debian Solution ). But I cannot run tomcat under these configuration. I get an error dump each time: [quote] HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) at org.apache.catalina.core.ApplicationFilterChain.access$000 (ApplicationFilterChain.java:51) at org.apache.cata. .. [/quote] Apache works fine and makes no trouble. Gruss Christian -- Christian Stalp Institut für Medizinische Biometrie, Epidemiologie und Informatik Johannes-Gutenberg-Universität Mainz Tel.: 06131 / 17-3107 E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Tomcat and apache are fully independent, but to enable Apache to use Tomcat as the J2EE container, you need to use mod_jk, which is what Ivan stated. Then when a request comes into Apache, your jk mount point will tell it to deliver the JSP from tomcat. That's a high level anyway. Do you really need apache? You can just use Tomcat for your static content, JSP, beans etc... _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT AND APACHE question
Hey guys, I was wondering if anybody has seen an intermittent communication error between Apache web server and Tomcat. We were seeing something happening intermittently about every 15-30 minutes where the apache logs were showing something like this: [Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: error reading status line from remote server MY IP ADDRESS, referer: https://blah.blah.blah/blah/blah.do [Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: Error reading from remote server returned by /blah/blah.do, referer: https://blah.blah.blah/blah/blah.do And neither the tomcat logs nor the tomcat access logs actually showed any entries around this time. Amarish NOTE: THIS DOCUMENT MAY CONTAIN CONFIDENTIAL AND NONPUBLIC INFORMATION. IT IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL(S) OR ENTITY(IES) NAMED ABOVE, AND OTHERS SPECIFICALLY AUTHORIZED TO RECEIVE IT. If you are not the intended recipient of this document, you are notified that any review, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify me immediately by return email, delete the electronic message and destroy any printed copies. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0 + Apache 2.0 + ErrorDocument
Hi I would like to have Tomcat handle all the error documents, how can I do this? At this stage, whenever there is a page not found, I see an Apache error page. I have already setup mod_jk. I have this: JKMount /*.jsp ajp13 In my web.xml, I have this: error-page error-code404/error-code location/WEB-INF/errors/404.jsp/location /error-page My mod_jk log has the following lines: jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13 jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13 Somehow I can't see my /WEB-INF/errors/404.jsp when there is a page not found. Thanks, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 + Apache 2.0 + ErrorDocument
in your Apache PUT ErrorDocument 400 /errors/404.jsp ErrorDocument 500 /errors/500.jsp And move /errors/404.jsp and /errors/404.jsp to the context path .. .not in WEB-INF as apache wont be able to see the code in WeB-INF ( UNLESS YOU ALIAS IT WHICH I DONT THINK IS A GOOD IDEA ) Any Doubts ? Give me a shout ... - Original Message - From: Ben [EMAIL PROTECTED] To: Tomcat tomcat-user@jakarta.apache.org Sent: Friday, June 17, 2005 1:39 PM Subject: Tomcat 5.0 + Apache 2.0 + ErrorDocument Hi I would like to have Tomcat handle all the error documents, how can I do this? At this stage, whenever there is a page not found, I see an Apache error page. I have already setup mod_jk. I have this: JKMount /*.jsp ajp13 In my web.xml, I have this: error-page error-code404/error-code location/WEB-INF/errors/404.jsp/location /error-page My mod_jk log has the following lines: jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13 jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13 Somehow I can't see my /WEB-INF/errors/404.jsp when there is a page not found. Thanks, Ben - 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]
Problems with Tomcat 5.5.9 + Apache 2.0.49
Hi. I'm with problems to integrate Tomcat 5.5.9 and Apache 2.0.49. I'm using module Mod_jk2, but doesn't functioned. Could somebody help me? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with Tomcat 5.5.9 + Apache 2.0.49
As I do not use Mod_jk or jk2 and so I will not be able to help in that sense, but often I see the time spent on this when Apache is not needed. So I ask, why do you want Apache? If you have valid reasons, no problem, just trying to save you some time. A couple of points to consider: Mod_jk2 is abandoned and no longer being developed. Mod_jk is still alive and active. Yes they are different and so is the setup. An alternative is mod_proxy. Just a few thoughts. Doug - Original Message - From: Fabricio Veiga [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, June 01, 2005 3:37 PM Subject: Problems with Tomcat 5.5.9 + Apache 2.0.49 Hi. I'm with problems to integrate Tomcat 5.5.9 and Apache 2.0.49. I'm using module Mod_jk2, but doesn't functioned. Could somebody help me? - 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 vs Apache
Hi Woodchuck, Am Mittwoch, 18. Mai 2005 21:46 schrieb Woodchuck: another (simple) way to think about the difference is that Apache serves static web pages, whereas Tomcat *can* do some server-side processing and serve dynamic web pages. all else being equal (and with no mods installed on Apache such as CGI/SSI/PHP), everyone visiting an Apache hosted website will see exactly the same set of web pages. in contrast, a Tomcat hosted website *can* display different content for the same requested web page for each visitor. you can use Tomcat to host totally static websites and not use Apache if you wanted to. but Tomcat is meant for dynamic websites that interact in some way with the user (ie. capture and process user information) to produce custom results. You are aware, that Apache can do the same as Tomcat. The only difference is that it will use PHP or Perl for doing this. You can run totally dynamic php websites with Apache and they can be as scalable and performant as JSP websites. I.e. PHP provides caching technologies which are very simple but at the same time close to static page performance. It only depends on your programming capabilities and your understanding of how the technology you are using ist working. You can write non-scalable and unperformant applications with both, PHP and Java. And if you try to programme PHP like Java or the other way round, yo will very likely not get the best results. So, the real difference between Tomcat and Apache - in my eyes - is not what each of them can do but how heydo it. The technology makes the difference. It is a decision between two different worlds and philosophies. I like both. Both have there strengthes. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
Hi - thanks for that, I hadn't realised that the servlet-name default would still work in my webapp's web.xml. So I can reverse the logic as you suggest. Works great. Tim Parsons Technical Services wrote: Look here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html If you override the mapping by putting your own reference to the default in your web.xml for the app, you should be able to map it the way you want and then have a mapping to your servlet with the / path. Or have your Spring dispatcher catch everything and parse the path to redirect the static stuff. Haven't tried this myself, just some thoughts. Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat vs Apache
You can find Peter's Benchmarks at http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf kr Marco --- http://www.kontaktlinsen-preisvergleich.de http://www.parfuem-faq.de Am Mittwoch, den 18.05.2005, 16:50 -0500 schrieb Caldarale, Charles R: From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat vs Apache I think there is not much question that the Apache server is far more efficient serving static html. Is there really any issue on that? If so, things sure have changed. I thought the comparison was like 5 to 1. Is that no longer true? That is definitely no longer true - search the archives for Peter Lin's test results. It's not quite parity, but it's close. - 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 vs Apache
This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim Fritz Schneider wrote: Chris, Earlier versions of Tomcat were quite a bit slower than Apache when delivering static pages. For high volume work the preferred solution was to have Apache listening on port 80, and when it received a request for a page from in a J2EE context, to forward it to Tomcat, listening on 8080. A similar connector is used for Microsoft IIS. Tomcat had a major rewrite for Tomcat 5, and the performance difference on static pages is now minor. An Apache-to-Tomcat connector is now used for the following reasons (and probably a few more): 1) History. We started out that way, and there's no reason to change. 2) Expansion. We have been running Apache (or IIS) and we need to add a J2EE container. 3) Load balancing. We have too many requests for a single server, so we have Apache take the incoming requests and dole them out to three or four Tomcat servers. 4) Management. We have a lot of customers. Some need CGI, some need PHP, and some need J2EE. I hope this helps, Fritz -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:39 AM To: Tomcat Users List Subject: Re: Tomcat vs Apache Apache is not a J2EE container - you are off-roading on this one ;-) Thanks. That was pretty much what I wanted to find out. BTW, I keep hearing of people using Apache and Tomcat in conjunction. How does that work? Chris - 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 vs Apache
(Er, and sorry I just realised I posted __some__ of this as part of a question on the list last week, but the question I have is now posed more concretely and wasn't answered then)! Tim Diggins wrote: This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Tomcat vs Apache
See comment in message. -Message d'origine- De : Tim Diggins [mailto:[EMAIL PROTECTED] Envoyé : jeudi 19 mai 2005 13:24 À : Tomcat Users List Objet : Re: Tomcat vs Apache (Er, and sorry I just realised I posted __some__ of this as part of a question on the list last week, but the question I have is now posed more concretely and wasn't answered then)! Tim Diggins wrote: This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? SRV.11.2 Specification of Mappings In the web application deployment descriptor, the following syntax is used to define mappings: * A string beginning with a '/' character and ending with a '/*' postfix is used for path mapping. * A string beginning with a '*.' prefix is used as an extension mapping. * A string containing only the '/' character indicates the default servlet of the application. In this case the servlet path is the request URI minus the context pth and the path info is null. * All other strings are used for exact matches only. (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim - 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 vs Apache
Look here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/default-servlet.html If you override the mapping by putting your own reference to the default in your web.xml for the app, you should be able to map it the way you want and then have a mapping to your servlet with the / path. Or have your Spring dispatcher catch everything and parse the path to redirect the static stuff. Haven't tried this myself, just some thoughts. Doug - Original Message - From: Tim Diggins [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 19, 2005 7:23 AM Subject: Re: Tomcat vs Apache (Er, and sorry I just realised I posted __some__ of this as part of a question on the list last week, but the question I have is now posed more concretely and wasn't answered then)! Tim Diggins wrote: This has been a great and informative thread... I'm wondering now, how to accomplish what I want to do in Tomcat alone, rather than looking for a Tomcat+Apache solution (sounds simpler). The issue is that I want ALL directory-like urls resolved by a particular servlet (which is a Spring dispatcher servlet, but never mind that), but I would like very few kinds of static files (which I could name explictly *.gif, *.png, *.css or put under a static place) served statically (ie by the default servlet. The problem is that the url-pattern for a directory-like urls covers all urls. Is there a way to do the reverse of normal, state that you want a particular url-pattern (e.g. /static/*) to go to the default servlet , and everything else (e.g. /*) to go to a particular servlet. If so, how do I indicate the default servlet in my web.xml? (And I've already had recommendations from people to change the URLs for the dynamic stuff to something else, but that's not what the client/customer/user/design wants -- the url is very much part of the user interface in this application). thanks Tim - 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 vs Apache
I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? -Anthony On May 18, 2005, at 10:37 AM, Chris wrote: I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - 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 vs Apache
If all you're doing is serve static pages, both are equivalent. However, if you ever need dynamic content, either client or server side, for example a page whose content is extracted from a database, or a form for which you need to record the values, you need some kind of intelligence. For that job, Apache relies on cgi and php, while Tomcat relies on Servlets and JSP, both based on Java. Unless you have a good reason to switch to Apache, you should stick to Tomcat. Le 18 mai 05 à 16:37, Chris a écrit : I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - 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 vs Apache
Apache is not a J2EE container - you are off-roading on this one ;-) Michael - Original Message - From: Chris [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, May 18, 2005 7:37 AM Subject: Tomcat vs Apache I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - 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 vs Apache
I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? We have a large java applet that runs in the client's browser window. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
If all you're doing is serve static pages, both are equivalent. However, if you ever need dynamic content, either client or server side, for example a page whose content is extracted from a database, or a form for which you need to record the values, you need some kind of intelligence. For that job, Apache relies on cgi and php, while Tomcat relies on Servlets and JSP, both based on Java. Unless you have a good reason to switch to Apache, you should stick to Tomcat. Ah, okay. The only reason we were considering switching to Apache was to possibly improve the performance of our Java applet. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
Apache is not a J2EE container - you are off-roading on this one ;-) Thanks. That was pretty much what I wanted to find out. BTW, I keep hearing of people using Apache and Tomcat in conjunction. How does that work? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
Chris: I guess that the applet is just a static file that is served to the client's browser window. Therefore, ANY web server would work just fine. There are no appreciable differences between Tomcat and Apache for your requirements so far. They act very similarly when serving static content. Some can spout off about performance, configurability, etc... But, if you've got it working on Tomcat, I don't think that you'll see any difference using Apache-- unless, of course, there's more to your situation than meets the eye. Hope it helps, -Anthony On May 18, 2005, at 12:14 PM, Chris wrote: I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? We have a large java applet that runs in the client's browser window. Chris - 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 vs Apache
Chris wrote: Ah, okay. The only reason we were considering switching to Apache was to possibly improve the performance of our Java applet. The performance of the applet should have nothing to do with the server that delivers it, unless perhaps the server happens to be downloading slower than the user's link would allow. The applet by definition runs on the browser's computer, not the server. A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
On 5/18/05, Chris [EMAIL PROTECTED] wrote: If all you're doing is serve static pages, both are equivalent. However, if you ever need dynamic content, either client or server side, for example a page whose content is extracted from a database, or a form for which you need to record the values, you need some kind of intelligence. For that job, Apache relies on cgi and php, while Tomcat relies on Servlets and JSP, both based on Java. Unless you have a good reason to switch to Apache, you should stick to Tomcat. Ah, okay. The only reason we were considering switching to Apache was to possibly improve the performance of our Java applet. However the Apache Web Server may well have better performance when serving large files, I don't believe I have seen any benchmarks dealing with large files only smaller ones that you typically see included in a web page like images. I would recommend at least doing some testing by serving your applet under Apache. Just out of curiosity what does your large applet do? From the sound of it it was like 60mb, which is quite a large applet to say the least... -- 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]
RE: Tomcat vs Apache
Chris, Earlier versions of Tomcat were quite a bit slower than Apache when delivering static pages. For high volume work the preferred solution was to have Apache listening on port 80, and when it received a request for a page from in a J2EE context, to forward it to Tomcat, listening on 8080. A similar connector is used for Microsoft IIS. Tomcat had a major rewrite for Tomcat 5, and the performance difference on static pages is now minor. An Apache-to-Tomcat connector is now used for the following reasons (and probably a few more): 1) History. We started out that way, and there's no reason to change. 2) Expansion. We have been running Apache (or IIS) and we need to add a J2EE container. 3) Load balancing. We have too many requests for a single server, so we have Apache take the incoming requests and dole them out to three or four Tomcat servers. 4) Management. We have a lot of customers. Some need CGI, some need PHP, and some need J2EE. I hope this helps, Fritz -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 9:39 AM To: Tomcat Users List Subject: Re: Tomcat vs Apache Apache is not a J2EE container - you are off-roading on this one ;-) Thanks. That was pretty much what I wanted to find out. BTW, I keep hearing of people using Apache and Tomcat in conjunction. How does that work? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
The dynamic aspect of Tomcat is used to write HTML dynamically. This is unrelated to the service of applets. If all you are doing is serving an applet, you don't need Tomcat, as your HTML is static. I don't know what some of the other replies mean, but this much is clear. On 5/18/05, Anthony E. Carlos [EMAIL PROTECTED] wrote: I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? -Anthony On May 18, 2005, at 10:37 AM, Chris wrote: I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - 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] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
For my own education, what the heck is off-roading? On 5/18/05, Chris [EMAIL PROTECTED] wrote: Apache is not a J2EE container - you are off-roading on this one ;-) Thanks. That was pretty much what I wanted to find out. BTW, I keep hearing of people using Apache and Tomcat in conjunction. How does that work? Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
I think there is not much question that the Apache server is far more efficient serving static html. Is there really any issue on that? If so, things sure have changed. I thought the comparison was like 5 to 1. Is that no longer true? On 5/18/05, Jason Bainbridge [EMAIL PROTECTED] wrote: On 5/18/05, Chris [EMAIL PROTECTED] wrote: If all you're doing is serve static pages, both are equivalent. However, if you ever need dynamic content, either client or server side, for example a page whose content is extracted from a database, or a form for which you need to record the values, you need some kind of intelligence. For that job, Apache relies on cgi and php, while Tomcat relies on Servlets and JSP, both based on Java. Unless you have a good reason to switch to Apache, you should stick to Tomcat. Ah, okay. The only reason we were considering switching to Apache was to possibly improve the performance of our Java applet. However the Apache Web Server may well have better performance when serving large files, I don't believe I have seen any benchmarks dealing with large files only smaller ones that you typically see included in a web page like images. I would recommend at least doing some testing by serving your applet under Apache. Just out of curiosity what does your large applet do? From the sound of it it was like 60mb, which is quite a large applet to say the least... -- 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] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
hihi, another (simple) way to think about the difference is that Apache serves static web pages, whereas Tomcat *can* do some server-side processing and serve dynamic web pages. all else being equal (and with no mods installed on Apache such as CGI/SSI/PHP), everyone visiting an Apache hosted website will see exactly the same set of web pages. in contrast, a Tomcat hosted website *can* display different content for the same requested web page for each visitor. you can use Tomcat to host totally static websites and not use Apache if you wanted to. but Tomcat is meant for dynamic websites that interact in some way with the user (ie. capture and process user information) to produce custom results. hth, woodchuck --- Dakota Jack [EMAIL PROTECTED] wrote: The dynamic aspect of Tomcat is used to write HTML dynamically. This is unrelated to the service of applets. If all you are doing is serving an applet, you don't need Tomcat, as your HTML is static. I don't know what some of the other replies mean, but this much is clear. On 5/18/05, Anthony E. Carlos [EMAIL PROTECTED] wrote: I think I need to ask a question before offering any information. When you say applet, do you mean a java applet that runs in a client's browser window? Or, do you have a web application comprised of servlets/jsps (or some analogous configuration)? -Anthony On May 18, 2005, at 10:37 AM, Chris wrote: I've been working with Tomcat for a while now, but I haven't messed with Apache yet. Could someone explain or point me to something explaining the differences between Tomcat and Apache? I have a large applet hosted on Tomcat, and am investigating using Apache instead. Is this feasable? TIA. Chris - 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] -- You can lead a horse to water but you cannot make it float on its back. ~Dakota Jack~ - 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 vs Apache
Ah, okay. The only reason we were considering switching to Apache was to possibly improve the performance of our Java applet. However the Apache Web Server may well have better performance when serving large files, I don't believe I have seen any benchmarks dealing with large files only smaller ones that you typically see included in a web page like images. I would recommend at least doing some testing by serving your applet under Apache. Just out of curiosity what does your large applet do? From the sound of it it was like 60mb, which is quite a large applet to say the least... Basically it's the desktop version of our app redone as an applet. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat vs Apache
According to benchmarks posted a few months ago, depending on your circumstances, that may no longer be true (or it may even be the reverse). I don't have the url, but I am sure someone else does, or search for the benchmark site. On May 18, 2005, at 1:01 PM, Dakota Jack wrote: I think there is not much question that the Apache server is far more efficient serving static html. Is there really any issue on that? If so, things sure have changed. I thought the comparison was like 5 to 1. Is that no longer true? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat vs Apache
-Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 2:01 PM To: Tomcat Users List; Jason Bainbridge Subject: Re: Tomcat vs Apache I think there is not much question that the Apache server is far more efficient serving static html. Is there really any issue on that? If so, things sure have changed. I thought the comparison was like 5 to 1. Is that no longer true? /me awaits an email from Remy or Peter. ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat vs Apache
From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat vs Apache I think there is not much question that the Apache server is far more efficient serving static html. Is there really any issue on that? If so, things sure have changed. I thought the comparison was like 5 to 1. Is that no longer true? That is definitely no longer true - search the archives for Peter Lin's test results. It's not quite parity, but it's close. - 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]
Tomcat 5 + Apache SOAP?
Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 + Apache SOAP?
Apache SOAP is the original apache SOAP implementation. I recommend you check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a year. Just make sure that the jar files that Axis needs are in the common/lib directory (if Tomcat needs them also). Not sure if HttpServlet is in that catagory, but worth a try. Kristian Rink wrote: Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - 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 5 + Apache SOAP?
I also would recommend Axis, but if you put the jar files in common/lib you will not be able to reload your app. At least that happened to me with axis 1.1 under 5.0.28... That also breaks the rule that the app should be as self-contained as possible to make it as portable as possible. Trond Mark Leone wrote: Apache SOAP is the original apache SOAP implementation. I recommend you check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a year. Just make sure that the jar files that Axis needs are in the common/lib directory (if Tomcat needs them also). Not sure if HttpServlet is in that catagory, but worth a try. Kristian Rink wrote: Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - 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 5 + Apache SOAP?
I agree with Trond. And since I wrote my reply rather quickly I want to make sure I'm clear. You only need to put in common/lib any jar files that both Tomcat and Axis need, which certainly does not include axis.jar and the other jars that come with the Axis distribution. I thought that maybe Axis needed access to the jar file that contains class HttpServlet, because I remember the installation instructions aaying that certian other jar files had to be on the classpath; but I checked and it doesn't look like axis needs to see HttpServlet. Other than needing access to an XML parser, I don't think there's much the Axis server needs beyond what you already have in Tomcat. You should be able to just drop Axis in to Tomcat and have it run almost immediately, unless you have a non-standard configuration. Maybe apache SOAP required it, but it seems doubtful. It seems like the reported error is more of a Tomcat problem. If you install Axis and get the same error, please report back to us. Trond G. Ziarkowski wrote: I also would recommend Axis, but if you put the jar files in common/lib you will not be able to reload your app. At least that happened to me with axis 1.1 under 5.0.28... That also breaks the rule that the app should be as self-contained as possible to make it as portable as possible. Trond Mark Leone wrote: Apache SOAP is the original apache SOAP implementation. I recommend you check out apache Axis, its successor. I have Axis 1.2 (formerly ran 1.1) running in Tomcat 5.5.8, and I had it running in Tomcat 4.x for over a year. Just make sure that the jar files that Axis needs are in the common/lib directory (if Tomcat needs them also). Not sure if HttpServlet is in that catagory, but worth a try. Kristian Rink wrote: Hi all; being into the state of having to check out several SOAP implementations to decide which one to be used for a certain project, I currently (for the first time) am playing around with Tomcat and Apache SOAP, trying to get a simple SOAP service up and running... Actually, I'm not very close to that, right now, getting stuck in the very first stage of getting Tomcat to work with Apache-SOAP: * Tomcat itself is up and running. * http://localhost:8080/soap/ works * Trying to access http://localhost:8080/soap/servlet/rpcrouter ends up with an error message like this: ---snip--- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error allocating a servlet instance org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:856) org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.processConnection(Http11Protocol.java:744) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) java.lang.Thread.run(Thread.java:595) root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:124) java.net.URLClassLoader.defineClass (URLClassLoader.java:260) java.net.URLClassLoader.access$100 (URLClassLoader.java:56) java.net.URLClassLoader$1.run (URLClassLoader.java:195) java.security.AccessController.doPrivileged (Native Method) java.net.URLClassLoader.findClass (URLClassLoader.java:188) ---snip--- Googling for that error left me pretty helpless since I by now tried several hints regarding problems with Apache SOAP on top of Tomcat 4.x, but none of these worked. So, can anyone enlighten me on where to tweak to make the SOAP package find the javax.servlet package? System I'm running: Debian unstable Tomcat 5.5.9 JDK 1.5.0 Apache SOAP 2.3.1 Additionally: Are there any other implementations of SOAP for Tomcat that might be worth investigating? Thanks for your patience and bye, Kris - 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]
Tomcat 5/Apache 2 in-process
Has anyone succeeded in getting Tomcat 5 to run in-process with Apache 2 using mod_jk? Does anyone know of a howto on this? I've read the docs, I've searched the web, I have it working using AJP13 but I have had no luck on getting it to work in-process. I don't even know where to start. Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5/Apache 2 in-process
Faine, Mark wrote: Has anyone succeeded in getting Tomcat 5 to run in-process with Apache 2 using mod_jk? Does anyone know of a howto on this? I've read the docs, I've searched the web, I have it working using AJP13 but I have had no luck on getting it to work in-process. I don't even know where to start. Forget the in-process. The JNI connector is deprecated, and the reasons are many. On of the major is that it can work only on WIN32 Apache and IIS. Also bringing JVM in the same address space as web server, makes you server unusable in case of OutOfMemory errors, etc... There is a project called tomcat-native that will eventually bring faster connections to WS-TC by using unix sockets or windows named pipes, and still offer the process isolation. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk under Win32 (Tomcat 5.0.28, apache 1.13.33)
I thought that for apache 1.3, the modules go in the libexec directory, and if so then your statement above should look like: LoadModule jk_module libexec/mod_jk.so On Fri, 18 Mar 2005 13:10:42 +0100 (CET), Christoph Kukulies [EMAIL PROTECTED] wrote: I installed apache 1.13.33 and tomcat 5.0.28. Both servers are running. I can test tomcat fine on port 8080. Now I want to integrate apache with tomcat and downloaded the mod_jk 1.2 binary .so file from http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi I installed it as mod_jk.so in Apache\modules but when starting apache I get an error G:\Programme\Apache_Group\Apacheapache Syntax error on line 992 of g:/programme/apache_group/apache/conf/httpd.conf: Cannot load g:/programme/apache_group/apache/modules/mod_jk.so into server: (127 ) Die angegebene Prozedur wurde nicht gefunden: Portions of my httpd.conf: ClearModuleList #AddModule mod_vhost_alias.c AddModule mod_env.c AddModule mod_log_config.c #AddModule mod_mime_magic.c AddModule mod_mime.c AddModule mod_negotiation.c #AddModule mod_status.c #AddModule mod_info.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c # and at the end: LoadModule jk_module modules/mod_jk.so JkWorkersFile g:\Programme\Apache_Group\Tomcat 5.0\conf\workers.properties JkLogFile g:\Programme\Apache_Group\Apache\logs\mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 --- AddModule mod_isapi.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c #AddModule mod_speling.c AddModule mod_userdir.c AddModule mod_alias.c #AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c #AddModule mod_auth_anon.c Any clues? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - 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]
mod_jk under Win32 (Tomcat 5.0.28, apache 1.13.33)
I installed apache 1.13.33 and tomcat 5.0.28. Both servers are running. I can test tomcat fine on port 8080. Now I want to integrate apache with tomcat and downloaded the mod_jk 1.2 binary .so file from http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.cgi I installed it as mod_jk.so in Apache\modules but when starting apache I get an error G:\Programme\Apache_Group\Apacheapache Syntax error on line 992 of g:/programme/apache_group/apache/conf/httpd.conf: Cannot load g:/programme/apache_group/apache/modules/mod_jk.so into server: (127 ) Die angegebene Prozedur wurde nicht gefunden: Portions of my httpd.conf: ClearModuleList #AddModule mod_vhost_alias.c AddModule mod_env.c AddModule mod_log_config.c #AddModule mod_mime_magic.c AddModule mod_mime.c AddModule mod_negotiation.c #AddModule mod_status.c #AddModule mod_info.c AddModule mod_include.c AddModule mod_autoindex.c AddModule mod_dir.c # and at the end: LoadModule jk_module modules/mod_jk.so JkWorkersFile g:\Programme\Apache_Group\Tomcat 5.0\conf\workers.properties JkLogFile g:\Programme\Apache_Group\Apache\logs\mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp ajp13 --- AddModule mod_isapi.c AddModule mod_cgi.c AddModule mod_asis.c AddModule mod_imap.c AddModule mod_actions.c #AddModule mod_speling.c AddModule mod_userdir.c AddModule mod_alias.c #AddModule mod_rewrite.c AddModule mod_access.c AddModule mod_auth.c #AddModule mod_auth_anon.c Any clues? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat behind Apache + SSL + htaccess
Hello Sorry if this is a trivial question. I have read Tomcat Documentation and list Archive and as I am not a specialist of Tomcat, I am not sure of my understanding. first, tomcat is behind apache. I want the access to a servlet be secured by client certificate and to check who can access to this servlet. I want to use the FakeBasicAuth of mod_SSL (SSLOptions +FakeBasicAuth). This type of authentication allows apache to check whether a certificate (the DN of the certificate) is contained in file (the name of this file is contained in .htaccess), to let the client access to the URL (in my case a servlet). I have understood that it can be possible. how can I do it ? Where must I put my .htaccess file ? thanks in advance Best Regards xJ -- _ Xavier Jeannin UREC/CNRS Université P. M. Curie, Courrier : case 171, 4 place Jussieu 75252 PARIS CEDEX 05 Tél : 01 44 27 42 59 - Fax : 01 44 27 42 61 - Courriel : [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
HttpServletRequest.getInputStream(), InputStream.read() doesn't work (it blocks) if tomcat uses apache as frontend. Any idea?
Hi, 1) I am trying to send some data (content of a file)from an standalone command line application to the servlet over the (http) stream. It works well. 2) When I am using apache as frontend to the tomcat, servlet blocks. It blocks when I try to read input stream: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { BufferedReader inputFromClient = null; PrintWriter out= null; BufferedWriter impFileWriter = null; // BufferedReader inTest = null; try { // get an input stream from the applet inputFromClient = new BufferedReader(new InputStreamReader(request.getInputStream())); show(Connected); // writng initialization impFileWriter = new BufferedWriter(new FileWriter(importFile)); // read the serialized student data from applet show(Importing data...); String str; while ((str = inputFromClient.readLine()) != null) { show(str); impFileWriter.write(str); impFileWriter.flush(); } 3) InputStreamReader.ready() returns false Thoughts? Thnx, Bojan -- Open WebMail Project (http://openwebmail.org) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat + SSL, apache
Is there any way to have the Tomcat with SSL and a front-end Apache, wich should only serve as a interface between client and tomcat? I mean tomcat should serve the certificates and do all the ssl, apache only to redirect traffic to it. thanks. Laurentiu VasiescuNetwork Administrator S.A. Tri-Pen TravelMaster Technologies, SRL Eastern Europe - Bucharest (Romania) Office: +40 (31) 401 1152+40 (31) 402 5027 Fax: +40 (21) 323 4357 E-mail: [EMAIL PROTECTED] Web: http://www.tri-pen.ro Confidentiality Notice: This email message, including any attachments,is for the sole use of the intended recipient(s) and may contain confidentialand privileged information. Any unauthorized review, use, disclosure ordistribution is prohibited. If you are not the intended recipient, pleasecontact Tri-Pen TavelMaster Technologies at +40 (31) 401 1152 and destroyall copies of the original message.
Re: tomcat + SSL, apache
Don't think so. Apache takes on the connection and therefore is in charge of the SSL handshake. So you will have to confiure apache to support SSL. They only way to make tomcat handle the handshake is to make it directly available to the browser. But guess you allready kind of suspected it :) Regards, Wouter On Mon, 14 Feb 2005 15:25:59 +0200, Laurentiu Vasiescu [EMAIL PROTECTED] wrote: Is there any way to have the Tomcat with SSL and a front-end Apache, wich should only serve as a interface between client and tomcat? I mean tomcat should serve the certificates and do all the ssl, apache only to redirect traffic to it. thanks. Laurentiu Vasiescu Network Administrator S.A. Tri-Pen TravelMaster Technologies, SRL Eastern Europe - Bucharest (Romania) Office: +40 (31) 401 1152 +40 (31) 402 5027 Fax: +40 (21) 323 4357 E-mail: [EMAIL PROTECTED] Web: http://www.tri-pen.ro Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact Tri-Pen TavelMaster Technologies at +40 (31) 401 1152 and destroy all copies of the original message. -- Regards, Wouter Boers business: http://www.abcdarium.nl personal: http://www.ikke.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat + SSL, apache
On Mon, 14 Feb 2005 15:25:59 +0200, Laurentiu Vasiescu [EMAIL PROTECTED] wrote: Is there any way to have the Tomcat with SSL and a front-end Apache, wich should only serve as a interface between client and tomcat? I mean tomcat should serve the certificates and do all the ssl, apache only to redirect traffic to it. thanks. Google for configuring Apache as a Forward Proxy, I think that should do what you want but not 100% sure. Regards, -- Jason Bainbridge KDE - Conquer Your Desktop - http://kde.org KDE Web Team - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat + SSL, apache
Actually I believe its the opposite. Apache serves the certificate the communication between Tomcat and Apache shouldnt be public anyway. From: Laurentiu Vasiescu [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: tomcat + SSL, apache Date: Mon, 14 Feb 2005 15:25:59 +0200 Is there any way to have the Tomcat with SSL and a front-end Apache, wich should only serve as a interface between client and tomcat? I mean tomcat should serve the certificates and do all the ssl, apache only to redirect traffic to it. thanks. Laurentiu Vasiescu Network Administrator S.A. Tri-Pen TravelMaster Technologies, SRL Eastern Europe - Bucharest (Romania) Office: +40 (31) 401 1152 +40 (31) 402 5027 Fax: +40 (21) 323 4357 E-mail: [EMAIL PROTECTED] Web: http://www.tri-pen.ro Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact Tri-Pen TavelMaster Technologies at +40 (31) 401 1152 and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat + SSL, apache
Didier McGillis wrote: Actually I believe its the opposite. Apache serves the certificate the communication between Tomcat and Apache shouldnt be public anyway. Apache makes the SSL handshake and passes any client certificate to Tomcat. Any servlet sees that like it came directly from Tomcat. Communication between apache and tomcat is not encrypted, so if you are concerned about the security, put the apache on the box with two NIC cards, and use the second for the apache-tomcat communication. AJP14 protocol will have encryption embedded, so until then :). Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 Apache Authentication
Hi, I´m having problems getting Tomcat 5 to use Apache authentication. I´am using: apache 2.0.49 + tomcat 5.0.19 + mod_jk2 2.0.4 I have added tomcatAuthentication=false to server.xml and request.tomcatAuthentication=false to jk2.properties. I´am using the Directory directive and .htaccess files, but it doesn´t work. Directory /app/ AllowOverride AuthConfig Order allow,deny Satisfy Any /Directory Could you help me please? Thanks in advanced. Arantza ** DISCLAIMER *** This message may contain confidential, proprietary or legally privileged information. If you are not the intended recipient of this message, please notify it to the sender and delete without resending or backing it, as it is legally prohibited. ** AVISO LEGAL ** Este mensaje puede contener información confidencial, en propiedad o legalmente protegida. Si usted no es el destinatario, le rogamos lo comunique al remitente y proceda a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no autorizado está prohibido legalmente. **
Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
Hi all, Has anyone successfully configured Tomcat 5.5.4 with Apache and mod_jk to do load balancing and session replication? I did everything as documents suggested but with no luck. If so, could you advise? I have configured TWO tomcat instances and a lb worker. Whenever I map the lb worker to URLs, I got Server Internal error. Then, just change the URL mapping to one of the TWO tomcat backend workers, it works as expected. Thus, it indicated that Apache can talk to Tomcat through mod_jk. I need your confirmation before trying to use another version of Tomcat. Thanks. Gary
Re: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
Gary Zhu wrote: Hi all, Has anyone successfully configured Tomcat 5.5.4 with Apache and mod_jk to do load balancing and session replication? I did everything as documents suggested but with no luck. If so, could you advise? Not if you don't send the workers.properties :). I have configured TWO tomcat instances and a lb worker. Whenever I map the lb worker to URLs, I got Server Internal error. Then, just change the URL mapping to one of the TWO tomcat backend workers, it works as expected. Thus, it indicated that Apache can talk to Tomcat through mod_jk. You made some configuration error in workers properties. Probably not added lb worker to worker.list Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
Thanks Mladen, The document for Tomcat has explicitly emphasized NOT to add the lb worker to the worker.list. Attached is my workers properties file. Gary -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: January 11, 2005 9:54 AM To: Tomcat Users List Subject: Re: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk? Gary Zhu wrote: Hi all, Has anyone successfully configured Tomcat 5.5.4 with Apache and mod_jk to do load balancing and session replication? I did everything as documents suggested but with no luck. If so, could you advise? Not if you don't send the workers.properties :). I have configured TWO tomcat instances and a lb worker. Whenever I map the lb worker to URLs, I got Server Internal error. Then, just change the URL mapping to one of the TWO tomcat backend workers, it works as expected. Thus, it indicated that Apache can talk to Tomcat through mod_jk. You made some configuration error in workers properties. Probably not added lb worker to worker.list Mladen. - 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: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
Gary Zhu wrote: Thanks Mladen, The document for Tomcat has explicitly emphasized NOT to add the lb worker to the worker.list. Can you point where this statement exists? If it does then I'll chage it, because it's wrong. Here is what documentation says: worker.list: A comma separated list of workers names that the JK will use. When starting up, the web server plugin will instantiate the workers whose name appears in the worker.list property, these are also the workers to whom you can map requests. Attached is my workers properties file. No it is not ;). Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
In the document for workers.properties, there are TWO places emphasizing NOT to put the lb in the worker.list. One is right in the first paragraph of Sub Titled Load Balancing directives; and the other one is within the Description column for the directive balance(ed)_workers. Here is the doc link: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html Thanks. Gary -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: January 11, 2005 10:07 AM To: Tomcat Users List Subject: Re: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk? Gary Zhu wrote: Thanks Mladen, The document for Tomcat has explicitly emphasized NOT to add the lb worker to the worker.list. Can you point where this statement exists? If it does then I'll chage it, because it's wrong. Here is what documentation says: worker.list: A comma separated list of workers names that the JK will use. When starting up, the web server plugin will instantiate the workers whose name appears in the worker.list property, these are also the workers to whom you can map requests. Attached is my workers properties file. No it is not ;). Mladen. - 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: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
Gary Zhu wrote: In the document for workers.properties, there are TWO places emphasizing NOT to put the lb in the worker.list. One is right in the first paragraph of Sub Titled Load Balancing directives; and the other one is within the Description column for the directive balance(ed)_workers. No it says: The workers that are member of load balancer must not appear in the worker.list directive. So you don't put the workers that belong to load balancer to worker.list only the lb worker(s). Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk?
Oh that's confusing to me. Would it be clearer to say something like The workers that are to be loadbalanced/managed by the lb worker must not appear in the worker.list directive.? Anyway, very much appreciate your assistance. I will now try it out. Thanks. Gary -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: January 11, 2005 10:31 AM To: Tomcat Users List Subject: Re: Has anyone managed clustering with Tomcat 5.5.4+Apache+mod_jk? Gary Zhu wrote: In the document for workers.properties, there are TWO places emphasizing NOT to put the lb in the worker.list. One is right in the first paragraph of Sub Titled Load Balancing directives; and the other one is within the Description column for the directive balance(ed)_workers. No it says: The workers that are member of load balancer must not appear in the worker.list directive. So you don't put the workers that belong to load balancer to worker.list only the lb worker(s). Mladen. - 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]
How to use Tomcat with Apache
Hi, I had successfully installed Apache Tomcat/5.0. I can login into http://domain.com:8080/admin. I am using http-proxy as the connector. I would like to enable a vhost which i host to run jsp. What should i edit in the httpd.conf to work with tomcat? Thanks VirtualHost 203.208.228.153:80 Directory /home/www/monster/html AllowOverride All /Directory ServerAdmin [EMAIL PROTECTED] ServerName monster.domain.com DocumentRoot /home/www/monster/html/ ScriptAlias /cgi-bin/ /home/www/monster/html/cgi-bin/ /VirtualHost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.27/Apache 2.0.40 with mutible developers
Hello All, I have successfully set up tomcat/ apache /mod_jk Just one quick question I need all the developers to have access like http://hostname/~username And I need tomcat to automatically pick up the developers accounts so they can write web-applications. I got everything else working fine just need this last piece. Your help is greatly appreciated. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.27/Apache 2.0.40 with mutible developers
Dwayne Ghant wrote: Hello All, I have successfully set up tomcat/ apache /mod_jk Just one quick question I need all the developers to have access like http://hostname/~username And I need tomcat to automatically pick up the developers accounts so they can write web-applications. I got everything else working fine just need this last piece. Your help is greatly appreciated. If someone could just point me to a place to read I will be fine. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.27/Apache 2.0.40 with mutible developers
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html section User Web Applications may help. -Original Message- From: Dwayne Ghant [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 17:31 To: Tomcat Users List Subject: Re: Tomcat 5.0.27/Apache 2.0.40 with mutible developers Dwayne Ghant wrote: Hello All, I have successfully set up tomcat/ apache /mod_jk Just one quick question I need all the developers to have access like http://hostname/~username And I need tomcat to automatically pick up the developers accounts so they can write web-applications. I got everything else working fine just need this last piece. Your help is greatly appreciated. If someone could just point me to a place to read I will be fine. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2 (in process support tomcat 4.1.31 + apache 2)
I need a configuration example to build this I was finding a lot, is possible that can be a bug? anyone has get to work with these versions? -- Un saludo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and apache in Oracle9.2.0.1
After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and apache in Oracle9.2.0.1
How about http://www.oracle.com/support/index.html ? -Tim Daxin Zuo wrote: After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and apache in Oracle9.2.0.1
Can anybody forward more specific information? This Oracle site definitely has the information. But the doc sea is too wide. Thanks -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 4:14 PM To: Tomcat Users List Subject: Re: Tomcat and apache in Oracle9.2.0.1 How about http://www.oracle.com/support/index.html ? -Tim Daxin Zuo wrote: After install Oracle9.2.0.1, Apache and Tomcat are installed. What are the versions of the TOMCAT and the apache in this version of Oracle? Do you know the location of the document where oracle describe its http server? - 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: Unknown errors when running tomcat via apache/jk2
Just a note that I figured out that the logging configuration for the jk connector has been moved to the workers.properties file. I have enabled debug there. If there is anything within tomcat that I can enable to see more debug type information, I would appreciate any pointers. I would like to bring the application back up with Apache but I want to make sure I have all appropriate logging enabled first. thnx -Blaine In message [EMAIL PROTECTED]you write: I have been running tomcat behind Apache 2 and the jk2 binary for RedHat. We noticed in the apache access log that we were sending a lot of 500 responses back to requests for a supported URL. When we stopped apache and sent all of the requests directly to the Coyote HTTP connector, all responses were successful (200). We would really like to use Apache on the front end - can anyone recommend som e logging settings within Apache/Tomcat in order to find out which requests are returning with a server error? I have enabled the tomcat access log but that doesn't really tell me much. Thanks for any assistance. -Blaine - 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]
Unknown errors when running tomcat via apache/jk2
I have been running tomcat behind Apache 2 and the jk2 binary for RedHat. We noticed in the apache access log that we were sending a lot of 500 responses back to requests for a supported URL. When we stopped apache and sent all of the requests directly to the Coyote HTTP connector, all responses were successful (200). We would really like to use Apache on the front end - can anyone recommend some logging settings within Apache/Tomcat in order to find out which requests are returning with a server error? I have enabled the tomcat access log but that doesn't really tell me much. Thanks for any assistance. -Blaine - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PrintWriter is different on Tomcat and Apache?
I have servlets using code like: StringBuffer sb= new StringBuffer(); AJavaClass.aMethod(sb); PrintWriter out = response.getWriter(); out.println(bf.toString()) When the servlet is run from Tomcat, it is fine, but if I run it on Apache, the whole source code is written on the browser, instead display the web page with qui. What is wrong? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PrintWriter is different on Tomcat and Apache?
I Solved it. Just response.setContentType(text/html); -Original Message- From: Daxin Zuo [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 3:01 PM To: Tomcat Users List Subject: PrintWriter is different on Tomcat and Apache? I have servlets using code like: StringBuffer sb= new StringBuffer(); AJavaClass.aMethod(sb); PrintWriter out = response.getWriter(); out.println(bf.toString()) When the servlet is run from Tomcat, it is fine, but if I run it on Apache, the whole source code is written on the browser, instead display the web page with qui. What is wrong? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, mod_jk, Apache and virtual host
Will this help? http://www.mail-archive.com/[EMAIL PROTECTED]/msg136432.html On Sun, 3 Oct 2004, Glen Ezkovich wrote: Date: Sun, 3 Oct 2004 16:55:10 -0500 From: Glen Ezkovich [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Tomcat, mod_jk, Apache and virtual host We have set up Tomcat and Apache using mod_jk and are using virtual hosting on both. We can throw a jsp page into our default directory and it displays fine so we know things work. We have serveral servlets to deploy for each virtual host and we'd rather not make entries in the main server.xml for each contex. We'd also like to be able to set a default servlet for each virtual host. Is there a way to do this in each appBase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, mod_jk, Apache and virtual host
Thanks Alex, Its a good resource but, we were hoping to be able to define the context some where besides the server.xml, such as in the appBase. I've run across mentions of using xml fragments for this, but as yet haven't been able to find out much. If anyone knows about how this can be done, I'd appreciate hearing about it. On Oct 6, 2004, at 6:12 AM, Alex wrote: Will this help? http://www.mail-archive.com/[EMAIL PROTECTED]/ msg136432.html On Sun, 3 Oct 2004, Glen Ezkovich wrote: Date: Sun, 3 Oct 2004 16:55:10 -0500 From: Glen Ezkovich [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Tomcat, mod_jk, Apache and virtual host We have set up Tomcat and Apache using mod_jk and are using virtual hosting on both. We can throw a jsp page into our default directory and it displays fine so we know things work. We have serveral servlets to deploy for each virtual host and we'd rather not make entries in the main server.xml for each contex. We'd also like to be able to set a default servlet for each virtual host. Is there a way to do this in each appBase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Glen Ezkovich HardBop Consulting glen at hard-bop.com http://www.hard-bop.com - new and improved site coming soon A Proverb for Paranoids: If they can get you asking the wrong questions, they don't have to worry about answers. - Thomas Pynchon Gravity's Rainbow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat, mod_jk, Apache and virtual host
We have set up Tomcat and Apache using mod_jk and are using virtual hosting on both. We can throw a jsp page into our default directory and it displays fine so we know things work. We have serveral servlets to deploy for each virtual host and we'd rather not make entries in the main server.xml for each contex. We'd also like to be able to set a default servlet for each virtual host. Is there a way to do this in each appBase? Glen Ezkovich HardBop Consulting glen at hard-bop.com http://www.hard-bop.com - new and improved site coming soon A Proverb for Paranoids: If they can get you asking the wrong questions, they don't have to worry about answers. - Thomas Pynchon Gravity's Rainbow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5/Apache 2/JK2- production quality?
Inititally I would have agreed. However, after lots of reading, monkeying around, and working out everything, I can now say that we have implemented successfully the jk2 adapter with both iis5 and apache2 withiout issue. for it to work properly, i found you needed to have virtual-hosts in tomcat .. if you were doing something a bit more complex with multiple hosts. how many exact pages/traffic do they get? i can't answer that right now. i'll take a look in a bit. haven't noticed any problems though. -alex - pass the salt... On Wed, 29 Sep 2004, Brantley Hobbs wrote: Date: Wed, 29 Sep 2004 08:19:53 -0400 From: Brantley Hobbs [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Tomcat 5/Apache 2/JK2- production quality? I second this. I've had nothing but trouble out of JK2, configuration difficulties on Apache and just flatly broken on IIS. The original JK adapter has worked great. -Brantley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4/Apache 2 Connector slow down
Try turning off ip to name resolution, this can sometimes be very slow and seemingly affect different PCs/servers differently. I'm no expert on what might cause the slowdown in your case, but I have experienced what sound like similar problems in the past. From the default server.xml file for v5.0.27: By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. The same adverse impact can also be caused when converting IP to name for logging purposes. -Original Message- From: Steve Forsyth [mailto:[EMAIL PROTECTED] Sent: Thursday 30 September 2004 00:50 To: [EMAIL PROTECTED] Subject: Tomcat 4/Apache 2 Connector slow down I have a very bizarre situation: I have everything working as far as the connectivity between Tomcat 4 and Apache 2 with both the JK and JK2 connectors (of course not at the same time :) I am currently testing on 2 computers... both connected through the same little hub and both have the exact same IP configuration coming from DHCP. However, computer A (my computer) hits the websites and runs just fine Whereas, computer B hits the websites and reacts in different ways depending on what my setup is and how I hit the website... explained hereafter Different ways of hitting the website and the different configurations (only affected computer B) 1) Using JK connector and port 8080 (so bypassing Apache 2): Everything flies 2) Using JK connector and port 80 (going through Apache 2): Moderate slow down of about 4 to 5 times slower than going direct on port 8080. So a page that would come up instantly now comes up about 2 to 5 seconds 3) Using JK2 connector and port 8080:Again, everything flies 4) Using JK2 connector and port 80: EXTREMELY SLOW... something happens that makes the connection go slower than a modem... on a LAN. We sniffed the traffic (unfortunately, none of us are all that good with exactly what we are seeing so we had to rely on what the sniffer was telling us) and it looks like there is some very fast handshaking for a few packets back and forth and then a WINS packet to the client, the client sends back the computer name and user name and the server sits on it for about 7 secs... the server sends another WINS packet... sits for another 7 secs this all happens for about 30 secs and then the server starts sending packets but slowly. So... all in all... it takes 30 seconds to send a page that normally takes far less than a second if going directly to Tomcat via port 8080. The part that makes this whole thing interesting is the fact that I have found my computer... and the other servers seem to not be affected by any of this... and yet most of our pcs... which are of varying speeds, types, (however all are windows OSs... XP and NT4). I haven't seen any difference between IP settings or any other network settings. However, I must admit that I'm a developer and not a net admin :) Anyway, anyone have any ideas or comments... places to search? WINS is about the worst search term that you would want to search for since it never pulls up exactly what you are looking for :) Thanks, Steve - 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 5/Apache 2/JK2- production quality?
Gang, I've been running a fairly large website (25000 pages/day) off of Tomcat4.1.30/JK/Apache1.3 for quite some time now. Its been running great, but in expectation of needing some load balancing, I'm thinking of moving to Tomcat5/Apache2/JK2. Anyone have any thoughts or experiences with running these versions in a production environment? Thanks! /kurt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]