mod_jk: How to configure separate failover for different JkMounts?

2009-11-23 Thread Tero Karttunen
BACKGROUND INFORMATION: I have used mod_jk to configure Apache to work as a load balancer for two Tomcat server instances. To these Tomcat instances, I have deployed two Web Applications, ts_core_virtual_repository and pum. These Web Applications are actually simple servlets that DO NOT use J2EE

Redirecting a port to a webapp

2009-11-23 Thread Looijmans, Mike
Hello, After hours of googling and browsing documentation, i came to the conclusion that what i want is either so trivial that everybody knows how to do it, or so complicated that no one ever tried it... I want to accomplish the following in Tomcat 5.5: http://myserver:80/xxx just does

Re: mod_jk 1.2.28 connection pooling is not working.

2009-11-23 Thread Rainer Jung
On 23.11.2009 01:37, Ahmed Medhat wrote: Hello, Setting connection_pool_size to a non-zero value (100 in my case) have no effect at all.. It's not necessary (but it works). mod_jk when used with Apache automatically sizes its pool in each processo to the number of request threads configured

Re: mod_jk: How to configure separate failover for different JkMounts?

2009-11-23 Thread Rainer Jung
On 23.11.2009 09:53, Tero Karttunen wrote: BACKGROUND INFORMATION: I have used mod_jk to configure Apache to work as a load balancer for two Tomcat server instances. To these Tomcat instances, I have deployed two Web Applications, ts_core_virtual_repository and pum. These Web Applications are

Re: Redirecting a port to a webapp

2009-11-23 Thread Peter Crowther
2009/11/23 Looijmans, Mike mike.looijm...@oce.com Hello, After hours of googling and browsing documentation, i came to the conclusion that what i want is either so trivial that everybody knows how to do it, or so complicated that no one ever tried it... I want to accomplish the following

Re: Redirecting a port to a webapp

2009-11-23 Thread Leon Rosenberg
On 23.11.2009, at 11:08, Looijmans, Mike mike.looijm...@oce.com wrote: Hello, After hours of googling and browsing documentation, i came to the conclusion that what i want is either so trivial that everybody knows how to do it, or so complicated that no one ever tried it... I want

Re: Redirecting a port to a webapp

2009-11-23 Thread André Warnier
Peter Crowther wrote: ... You might, however, be able to get what you want using a combination of http://tuckey.org/urlrewrite/ and two Connectors defined on the same Service. That indeed looks to me like a way, if you want to stay entirely within Tomcat. It would have the benefit that there

RE: Redirecting a port to a webapp

2009-11-23 Thread Looijmans, Mike
... Note that you'll end up with two independent copies of the servlet in your two webapp directories, and they won't share things like Sessions between them. And, as I mentioned, I don't want that to happen. You might, however, be able to get what you want using a combination of

Moving the webapps context root or adding a prefix

2009-11-23 Thread Jason Pyeron
We are installing TC behind a proxy. The proxy will map all requests of form http(s)://host/prefix/* to tomcat. Is there a config option to change the context root? i.e.: webapps/ROOT = http://localhost/prefix/ webapps/manager = http://localhost/prefix/manager/ webapps/examples =

Re: Moving the webapps context root or adding a prefix

2009-11-23 Thread David Smith
The super simple answer is deploy your 'ROOT' webapp as 'prefix' instead. --David Jason Pyeron wrote: We are installing TC behind a proxy. The proxy will map all requests of form http(s)://host/prefix/* to tomcat. Is there a config option to change the context root? i.e.: webapps/ROOT =

config database in Tomcat

2009-11-23 Thread dishmily
i use 3 tomcats in one PC, in each tomcat i have a webservice, for each webservice i use a mysql database. my question is: how can i write a config file in each tomcat to let tomcat1 load DB1, tomcat2 load DB2 and tomcat3 load DB3. thanks. -- View this message in context:

Re: config database in Tomcat

2009-11-23 Thread Pid
On 23/11/2009 13:00, dishmily wrote: i use 3 tomcats in one PC, in each tomcat i have a webservice, for each webservice i use a mysql database. my question is: how can i write a config file in each tomcat to let tomcat1 load DB1, tomcat2 load DB2 and tomcat3 load DB3. thanks. I'm guessing

RE: Redirecting a port to a webapp

2009-11-23 Thread Looijmans, Mike
Because you want different sets of webapps served on your different connectors, I *think* you'll need two different Services in your server.xml: Server Service for port 80 Connector for port 80 Engine for port 80 Host for port 80, specifying base directory for your

Re: Redirecting a port to a webapp

2009-11-23 Thread Pid
On 23/11/2009 13:06, Looijmans, Mike wrote: Because you want different sets of webapps served on your different connectors, I *think* you'll need two different Services in your server.xml: Server Service for port 80 Connector for port 80 Engine for port 80 Host for port

RE: Redirecting a port to a webapp

2009-11-23 Thread Looijmans, Mike
I tried this, just to be able to make some progress on the actual project, but it does not work as expected. I copied theserver part and replaced: Host name=localhost appBase=webapps / with Host name=localhost appBase=webapps/myapp / You're telling the

RE: Moving the webapps context root or adding a prefix

2009-11-23 Thread Jason Pyeron
-Original Message- From: David Smith [mailto:d...@cornell.edu] Sent: Monday, November 23, 2009 7:51 To: Tomcat Users List Subject: Re: Moving the webapps context root or adding a prefix The super simple answer is deploy your 'ROOT' webapp as 'prefix' instead. But that won't

RE: Redirecting a port to a webapp

2009-11-23 Thread Looijmans, Mike
Some additional information: The blank page is actually a 400 Bad Request response. A 404 I could understand - especially when the directoy does not exist - but why it returns 400 is a total mystery. There's nothing in the log files, the access log just mentions the 400 response. There is also

Re: Moving the webapps context root or adding a prefix

2009-11-23 Thread Mark Thomas
Jason Pyeron wrote: -Original Message- From: David Smith [mailto:d...@cornell.edu] Sent: Monday, November 23, 2009 7:51 To: Tomcat Users List Subject: Re: Moving the webapps context root or adding a prefix The super simple answer is deploy your 'ROOT' webapp as 'prefix'

Re: config database in Tomcat

2009-11-23 Thread dishmily
thanks. the tomcat i use is Tomcat 6.0. i will have a look at the URL. Pid Ster wrote: On 23/11/2009 13:00, dishmily wrote: i use 3 tomcats in one PC, in each tomcat i have a webservice, for each webservice i use a mysql database. my question is: how can i write a config file in each

Re: Redirecting a port to a webapp

2009-11-23 Thread Mark Thomas
Looijmans, Mike wrote: I tried this, just to be able to make some progress on the actual project, but it does not work as expected. I copied theserver part and replaced: Host name=localhost appBase=webapps / with Host name=localhost appBase=webapps/myapp / You're

RE: Redirecting a port to a webapp

2009-11-23 Thread Looijmans, Mike
No. You want webapps/myapp to be treated as the ROOT context for a host. appBase=webapps/myapp means look in the webapps/myapp directory to find contexts for this host. The ROOT context in that case would be webapps/myapp/ROOT As a general rule any configuration that boils down to

RE: Moving the webapps context root or adding a prefix

2009-11-23 Thread Jason Pyeron
-Original Message- From: Mark Thomas Sent: Monday, November 23, 2009 8:41 To: Tomcat Users List Subject: Re: Moving the webapps context root or adding a prefix Jason Pyeron wrote: -Original Message- From: David Smith Sent: Monday, November 23, 2009 7:51 To:

Re: Redirecting a port to a webapp

2009-11-23 Thread Peter Crowther
2009/11/23 Looijmans, Mike mike.looijm...@oce.com No. You want webapps/myapp to be treated as the ROOT context for a host. appBase=webapps/myapp means look in the webapps/myapp directory to find contexts for this host. The ROOT context in that case would be webapps/myapp/ROOT As a

RE: Moving the webapps context root or adding a prefix

2009-11-23 Thread Jason Pyeron
-Original Message- From: Jason Pyeron Sent: Monday, November 23, 2009 9:09 To: 'Tomcat Users List' Subject: RE: Moving the webapps context root or adding a prefix -Original Message- From: Mark Thomas Sent: Monday, November 23, 2009 8:41 To: Tomcat Users List

Re: Tomcat: two context path for one webapp

2009-11-23 Thread Oliver Schoett
AlbundySzabolcs wrote: Hi, I have been trying to solve a problem, but I have not found any good solution yet. The problem is: I have a web app and this web app is deployed to the $TOMCAT_HOME/webapps/XXX directory. I can reach that on the http://localhost:8080/XXX address BUT, I would like to

Re: Redirecting a port to a webapp

2009-11-23 Thread André Warnier
Looijmans, Mike wrote: ... Instead of introducing a third party component, it seems possible to write a custom Filter to do this. All it needs to do is look at the incoming port and if that equals 666 insert the /myapp into the url? The documentation on Filters is large but provides - again -

Re: config database in Tomcat

2009-11-23 Thread dishmily
i have made few changes, but it didn't work. (my project uses tomcat and hibernate.) 1) $Tomcat_Home\conf\context.xml was changed to: Context WatchedResourceWEB-INF/web.xml/WatchedResource Resource name=jdbc/mysql auth=Container type=javax.sql.DataSource

Fwd: Installation directory path for Tomcat 4.0

2009-11-23 Thread File Send
Hi, I would like to use tomcat 4.0 and configure it in my IBM- Rational Application developer. In order to configure Tomcat into my IDE, I have downloaded the tomcat and I just need to provide the path of the installation directory.I tried with bin, lib and other directories but RAD is saying -

When do you think mod_jk 1.2.29 will be available?

2009-11-23 Thread fredk2
Hi, I am working on a project for a customer and before i put the final dot i'd like to know if 1.2.29 is a couple weeks off or sometime next year sometime. many thanks - Fred -- View this message in context:

RE: Installation directory path for Tomcat 4.0

2009-11-23 Thread Caldarale, Charles R
From: File Send [mailto:file.sen...@gmail.com] Subject: Fwd: Installation directory path for Tomcat 4.0 I would like to use tomcat 4.0 Stop right there. Using a seven-year-old, completely outmoded and unsupported version of Tomcat is utterly pointless. - Chuck THIS COMMUNICATION MAY

RE: Error - Unable to open the service 'Tomcat6' on Windows 2003

2009-11-23 Thread Jeffrey Janner
I just had to remove one on one of my servers (I create one per instance and just deleted an instance). The registry path is HKLM\Software\Microsoft\Windows\CurrentVersion\Run. The default key name is ApacheTomcatMonitor. Jeff -Original Message- From: André Warnier

Re: config database in Tomcat

2009-11-23 Thread Pid
On 23/11/2009 16:03, dishmily wrote: i have made few changes, but it didn't work. (my project uses tomcat and hibernate.) You didn't mention that before. You need to configure Hibernate to use the DataSource jdbc/mysql that you've created. It doesn't appear to be correctly configured at

Re: When do you think mod_jk 1.2.29 will be available?

2009-11-23 Thread Mladen Turk
On 11/23/2009 05:22 PM, fredk2 wrote: Hi, I am working on a project for a customer and before i put the final dot i'd like to know if 1.2.29 is a couple weeks off or sometime next year sometime. Should be by the end of this year so that we keep two releases/year rythm :) There are few bugs

Re: When do you think mod_jk 1.2.29 will be available?

2009-11-23 Thread fredk2
good to know the rythm :) thanks - fred Mladen Turk-3 wrote: On 11/23/2009 05:22 PM, fredk2 wrote: Hi, I am working on a project for a customer and before i put the final dot i'd like to know if 1.2.29 is a couple weeks off or sometime next year sometime. Should be by the end of

AW: per context access log

2009-11-23 Thread Ursula Walenciak
ok, works ... thanks :-) -Ursprüngliche Nachricht- Von: Tim Funk [mailto:funk...@apache.org] Gesendet: Donnerstag, 19. November 2009 13:38 An: Tomcat Users List Betreff: Re: per context access log Sorry - (AFAICT) there isn't a way to do that. You have to configure each one.

RE: Problems finding the right filepath

2009-11-23 Thread Joseph Morgan
Ludwig, What is your dev language? -Original Message- From: Ludwig Magnusson [mailto:lud...@itcatapult.com] Sent: Monday, November 23, 2009 11:24 AM To: users@tomcat.apache.org Subject: Problems finding the right filepath Hello! We are a team developing a webapp running on a tomcat

RE: Problems finding the right filepath

2009-11-23 Thread Caldarale, Charles R
From: Ludwig Magnusson [mailto:lud...@itcatapult.com] Subject: Problems finding the right filepath We are a team developing a webapp running on a tomcat server. What version of Tomcat? (Be precise.) What JVM? We need to list the files in a certain directory in our application, but we

RE: Problems finding the right filepath

2009-11-23 Thread Joseph Morgan
Or... maybe within a initialization parameter for a servlet if you are using Java -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, November 23, 2009 11:59 AM To: Tomcat Users List Subject: RE: Problems finding the right filepath From:

RE: Problems finding the right filepath

2009-11-23 Thread Ludwig Magnusson
We are running Tomcat 6.0.20. The JDK is 1.6 but not the exact same version on all machines. My computer has 1.6.0.17, the server has 1.6.0.07 We are developing on both windows and mac. The server is ubuntu. To specify what I want, here is a model of my filesystem: /Tomcat-folder /conf

RE: Problems finding the right filepath

2009-11-23 Thread Joseph Morgan
Ludwig, it's been a while, but there used to be a function getRealPath or something very close to that on the ServletContext object where you can get a system-proper path of a resource. Have you tried that? -Original Message- From: Ludwig Magnusson [mailto:lud...@itcatapult.com] Sent:

RE: Problems finding the right filepath

2009-11-23 Thread Ludwig Magnusson
Thank you, that one worked. /Ludwig -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: den 23 november 2009 19:25 To: Tomcat Users List Subject: RE: Problems finding the right filepath Ludwig, it's been a while, but there used to be a function

Re: Problems finding the right filepath

2009-11-23 Thread Pid
On 23/11/2009 18:41, Ludwig Magnusson wrote: Thank you, that one worked. /Ludwig May I ask what you're searching for? p -Original Message- From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] Sent: den 23 november 2009 19:25 To: Tomcat Users List Subject: RE: Problems finding

RE: Problems finding the right filepath

2009-11-23 Thread Caldarale, Charles R
From: Ludwig Magnusson [mailto:lud...@itcatapult.com] Subject: RE: Problems finding the right filepath Thank you, that one worked. Again, getRealPath() is not guaranteed to return anything - it's up to the whim of the container. To quote from the API doc: This method returns null if the

[ANN] Apache Tomcat Native 1.1.18 released

2009-11-23 Thread jean-frederic clere
The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 1.1.18 stable. This release includes few bug fixes over Apache Tomcat Native 1.1.16 and fixes the client initiated part of cve-2009-3555, note that the server initiated renegociation was added in 1.1.17 (and is

Re: [ANN] Apache Tomcat Native 1.1.18 released

2009-11-23 Thread Tony Anecito
Thanks Team for the fixes and any enhancements! So does one need to uninstall the older version before installing this one? Regards, -Tony --- On Mon, 11/23/09, jean-frederic clere jfcl...@gmail.com wrote: From: jean-frederic clere jfcl...@gmail.com Subject: [ANN] Apache Tomcat Native 1.1.18