mod_jk and apache

2006-08-26 Thread Mansour
Hi Every body: I have gone through everything I can before posting a messga eto this mailing list. I can not find a good detailed documentation about configuring and integrating tomcat with apache. Here's what I did so far: I installed tomcat and mod_jk succefully. I was able to test tomcat, h

Re: Can Tomcat expose original HTTP request?

2006-08-26 Thread bill cao
Thanks, I looked RequestDumperValve, seems to me that it logs request url and other info, but you can not retrieve the raw http request. - Original Message - From: "Santosh Puranshettiwar" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, August 25, 2006 1:04 AM Subject: Re: Can

WebApp Using JDK 1.4, Tomcat 5.5.17 or 5.0.28?

2006-08-26 Thread Mississippi John Hurt
Hi, My web application was developed against JDK 1.4.2. I heard Tomcat 5.5.17runs internally on JDK 1.5. Is it a problem to deploy my webapp on Tomcat 5.5.17? Or can webapps developed under jdk 1.4.2 run fine unchanged on Tomcat 5.5.17?

RE: jdk

2006-08-26 Thread Steve Ochani
Date sent: Sat, 26 Aug 2006 20:46:55 +0200 From: Abbey - Jonbysoft <[EMAIL PROTECTED]> Subject:RE: jdk To: Tomcat Users List , [EMAIL PROTECTED] > Hi Steve, > > I unistalled Apache 2.2.3 completely and downloaded and installed >

Re. FileInputStream Class.

2006-08-26 Thread Steve R Burrus
Hi all. I was just wondering what were the methods that I should be using with the FileInputStream Class to be able to see/view an image in a servlet??

Tomcat 5.5.17: useBean class="java.util.Locale" ?

2006-08-26 Thread Evgeny Gesin
Hi, I just upgraded tomcat server from 4.1.31 to 5.5.17 on a developer machine. The following line runs fine in Tomcat 4.1.31 but produces this error in Tomcat 5.5.17 "The value for the useBean class attribute java.util.Locale is invalid." The following scriptlet works fine in the jsp (does so

RE: jdk

2006-08-26 Thread Abbey - Jonbysoft
Hi Steve, I unistalled Apache 2.2.3 completely and downloaded and installed Apache 2.2.2 and followed the original procedure to place both JK_mod and workers2.properties in their respecive locations...as before Now when I try and restart Apache I get a strange error! httpd.exe: Syntax error on l

Tomcat 5.5.17: 503 Service Temporarily Unavailable

2006-08-26 Thread Evgeny Gesin
Hi, I upgraded Tomcat from 4.1.31 to 5.5.17, and modified server.xml to run my existing applications. I ended with no errors in catalina.out. My Tomcat integrated with Apache 2.2.3 using jk1.2.18 connector, and my workers.properties remains the same. BUT now... 1. When I point web browser to my

Re: Webapps loading sequence

2006-08-26 Thread Mark Thomas
Raju Balugu wrote: > Thanks David . > > So,On which basis it will load that?(For example Alphabetical ..etc)My > requirement is need to load x context and then only needs to load Y > Context.Even I am ready to change tomcat code also to meet my > requirement?please suggest me . Any solution that

Re: Is there a way so specify a wildcard in host/alias to avoid dealing

2006-08-26 Thread Brent
Chris Lear wrote: > > In server.xml something like > > > > should do it. > > The defaultHost tells tomcat what to do with requests to hostnames that > aren't otherwise mapped. > Is there another way to do it? I'm running a server with serveral different domains and would like to map

Re: jdk

2006-08-26 Thread Steve Ochani
Date sent: Sat, 26 Aug 2006 14:49:01 +0200 From: Abbey - Jonbysoft <[EMAIL PROTECTED]> Subject:jdk To: users@tomcat.apache.org Send reply to: Tomcat Users List > > > I have downloaded and installed the following in this

jdk

2006-08-26 Thread Abbey - Jonbysoft
I have downloaded and installed the following in this order: I am running Windows XP Professional with all updates. Apache 2.2 (apache_2.2.3-win32-x86-no_ssl) Got that working on Port 8080 JDK 5.0 (jdk-1_5_0_08-windows-i586-p) Seems ok! Apache Tomcat 5.0 (jakarta-tomcat-5.0.28) That too seems

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Remy Maucherat
On 8/26/06, Andrew Miehs <[EMAIL PROTECTED]> wrote: ?! Now I am confused ?! 10,000 connections and 10,000 virtual hosts have NOTHING to do with one another. As to 10,000 virtual hosts in Tomcat, vs 10,000 virtual hosts in Apache No idea - I don't think 10,000 virtual hosts on either is a g

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ?! Now I am confused ?! 10,000 connections and 10,000 virtual hosts have NOTHING to do with one another. As to 10,000 virtual hosts in Tomcat, vs 10,000 virtual hosts in Apache No idea - I don't think 10,000 virtual hosts on either is a g

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
Stupid question, Why don't you implement the 'virtual' hosts inside the one 'webapp'? And not create 10,000 web apps? That the App itself deals with the virtual hosts (by reading the host header), and not tomcat? Andrew On 26/08/2006, at 12:30 PM, KEGan wrote: I tried to use only Tomcat s

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Mladen Turk
Andrew Miehs wrote: Are we referring to 10,000 Virtual servers or 10,000 Connections? And the answer is yes to 1 connections. It does not matter. 1 Virtual hosts in Apache would require as much memory as 1 Hosts in Tomcat. Once when you break the JVM latency, there is no much diff

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread KEGan
Referring to 10,000 virtual host in one tomcat instance. On 8/26/06, Andrew Miehs <[EMAIL PROTECTED]> wrote: Dear Mladen, Are we referring to 10,000 Virtual servers or 10,000 Connections? And the answer is yes to 1 connections. Yes I would use worker-mpm or better still an epoll based htt

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
Dear Mladen, Are we referring to 10,000 Virtual servers or 10,000 Connections? And the answer is yes to 1 connections. Yes I would use worker-mpm or better still an epoll based httpd daemon, like lighttpd or zeus. Regards Andrew On 26/08/2006, at 12:18 PM, Mladen Turk wrote: Andrew

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread KEGan
I tried to use only Tomcat since the static content is dynamically generated. Think blogging application. However, users dont update the data that often, that's why I generate the content and make it static for web access, as oppose to dynamically generate the content each time it is requested. U

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Mladen Turk
Andrew Miehs wrote: If you are only delivering static content, then use Apache or Lighttpd http://www.lighttpd.net/ This is NOT what tomcat is designed for In theory the threaded model should consume less memory and less CPU cycles compared with prefork model. Of course if your applicat

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you are only delivering static content, then use Apache or Lighttpd http://www.lighttpd.net/ This is NOT what tomcat is designed for As for how much memory, no idea - but it cant be good Andrew On 26/08/2006, at 12:00 PM, KEGan wrote: T

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Mladen Turk
Andrew Miehs wrote: Ok - Theoretically it may work... Who do you know that has a machine with Terabytes of memory? And is using it for web hosting?! The JVM will spend all its time doing context switching and garbage collection... Look, there was a time when I thought that 1MB or RAM was s

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread KEGan
Thanks Mladen for the valueable reply. Andrew, on your question : it is 10,000 domains that serves 10,000 different static HTML. One HTML for each domain. How much memory does 1 webapp takes in Tomcat ? Would it be ok with 10,000 domains pointing to 10,000 webapps but each webapp serves only sta

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
Ok - Theoretically it may work... Who do you know that has a machine with Terabytes of memory? And is using it for web hosting?! The JVM will spend all its time doing context switching and garbage collection... Andrew On 26/08/2006, at 11:49 AM, Mladen Turk wrote: Andrew Miehs wrote:

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Mladen Turk
Andrew Miehs wrote: The JVM will die if you do this with 10,000 webapps Why do you think it will die? There are systems with 64-bit JVM's and terabytes of memory. Regards, Mladen. - To start a new topic, e-mail: users@tomca

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What is this supposed to become? Do you want 10,000 domains on the tomcat? or do you want 10,000 webapps? The JVM will die if you do this with 10,000 webapps Andrew On 26/08/2006, at 11:36 AM, Mladen Turk wrote: KEGan wrote: Hi, I am wondering

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Mladen Turk
Edoardo Panfili wrote: a question: why do you want to use tomcat to serve static HTML, why Apache httpd isn't useful for you? Having 1 homes makes no difference if you use Tomcat or Httpd. In that case its more up to the OS rather then web server itself. Regards, Mladen. -

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Mladen Turk
KEGan wrote: Hi, I am wondering if anyone has added 10,000 virtual hosts to Tomcat before, and whether Tomcat can handle this. There are no limits except memory available to the JVM. The performance itself should depend only on the file system, and I would suggest not to put all 1 homes i

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread KEGan
Edoardo, The websites can be added and edited dynamically by the corresponding owners. I am buidling something like Blogger.com. Where users can edit their websites and published it. The engine is built using Tapestry. Currently, I am using a servlet filter to forward Http requests to the corres

Re: 10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread Edoardo Panfili
KEGan ha scritto: Hi, I am quite a Tomcat newbie. I am building an web application that host about 10,000 websites (only single static HTML for each website). Each website is reference using a subdomain i.e. "website1.mycompany.com", " website2.mycompany.com", and so on. a question: why do y

10,000 Virtual Hosts in a Tomcat instance

2006-08-26 Thread KEGan
Hi, I am quite a Tomcat newbie. I am building an web application that host about 10,000 websites (only single static HTML for each website). Each website is reference using a subdomain i.e. "website1.mycompany.com", " website2.mycompany.com", and so on. So I am planning to add these subdomain as