Re: Mod_jk working for failover

2011-06-07 Thread Manuel Fernández Panzuela
my setup: # Define list of workers that will be used for mapping requests worker.list=loadbalancer43,status # Definicion de plantilla worker.template43.port=8009 worker.template43.type=ajp13 worker.template43.lbfactor=1 worker.template43.ping_timeout=1000 worker.template43.socket_timeout=10 worke

Re: Query regarding an issue been faced in TOMCAT

2011-06-07 Thread André Warnier
Bill Miller wrote: It's also possible that there were no more iNodes available for that directory. It will give false "volume full" type of errors when it's actually just too many files/folders within a directory. (This used to happen a LOT in the ancient DOS days in the root directory... max

Re: cluster - does not implement StandardManager

2011-06-07 Thread Marcel dit le Belge
Hi Christopher, The problem was in the context.xml under the web app, where the manager was commented out. Thanks Marcel Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Marcel, > > On 6/6/2011 4:38 PM, Marcel dit le Belge wrote: >> I try to implement a c

RE: Query regarding an issue been faced in TOMCAT

2011-06-07 Thread Bill Miller
It's also possible that there were no more iNodes available for that directory. It will give false "volume full" type of errors when it's actually just too many files/folders within a directory. (This used to happen a LOT in the ancient DOS days in the root directory... max file count=255!!) B

Re: async requests on cluster

2011-06-07 Thread Seth Lenzi
OK, thanks for the info! -S On 6/7/2011 5:34 PM, Mark Thomas wrote: On 07/06/2011 21:46, Seth Lenzi wrote: The isAsyncSupported() method of the SerlvletRequest object returns false when you uncomment the element in the server.xml file (Tomcat 7.0.14). Basically, enabling clustering seems to

Re: async requests on cluster

2011-06-07 Thread Mark Thomas
On 07/06/2011 21:46, Seth Lenzi wrote: > The isAsyncSupported() method of the SerlvletRequest object returns > false when you uncomment the className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> element in the > server.xml file (Tomcat 7.0.14). Basically, enabling clustering seems to > break su

async requests on cluster

2011-06-07 Thread Seth Lenzi
The isAsyncSupported() method of the SerlvletRequest object returns false when you uncomment the className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> element in the server.xml file (Tomcat 7.0.14). Basically, enabling clustering seems to break support for asynchronous servlets... Is there s

Re: specifying the content-type

2011-06-07 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/7/2011 2:23 PM, Lentes, Bernd wrote: Christopher Schultz wrote: How did you do it? If you use , it should override any Content-Type sent in the HTTP response headers Yes, we used this. But http://de.selfhtm

Re: Query regarding an issue been faced in TOMCAT

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Srilalitha, On 6/7/2011 4:54 AM, Srilalitha Bijumalla wrote: > This issue got solved when we deleted some folders from a directory > which was mapped to tomcat in conf. So, you *did* run out of disk space. > But we are still not able to analyse why

Re: Query regarding an issue been faced in TOMCAT

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mikolaj, On 6/3/2011 8:33 AM, Mikolaj Rydzewski wrote: > On Fri, 3 Jun 2011 17:58:06 +0530, Srilalitha Bijumalla wrote: > >> java.io.FileNotFoundException: >> /global/backup/apache-tomcat-5.5.23/logs/catalina.2011-05-31.log (No >> space left on devic

Re: Application crash after Migrate to different ESX

2011-06-07 Thread הילה
Excellent. thanks a lot for all of your help :) 2011/6/7 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > הילה, > > On 6/6/2011 4:35 PM, הילה wrote: > > I use Tomcat's JDBC pool (tomcat-jdbc.jar) > > Okay. > > > sorry, I haven't quite understood why shouldn't I use the

Re: cluster - does not implement StandardManager

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcel, On 6/6/2011 4:38 PM, Marcel dit le Belge wrote: > I try to implement a cluster (tomcat 7, 2 instances) but I get some problem. Which exact version of Tomcat 7? > When I start tomcat, I get this debug : > > I don't have specific context.xml

Re: Application crash after Migrate to different ESX

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 הילה, On 6/6/2011 4:35 PM, הילה wrote: > I use Tomcat's JDBC pool (tomcat-jdbc.jar) Okay. > sorry, I haven't quite understood why shouldn't I use the > ValidationInterval="3" (30 seconds) string on my configuration.. > On tomcat's documentation,

Re: error-page for http 500 error code does not work

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, On 6/7/2011 8:56 AM, Kevin Claver wrote: > Through further investigation, I now believe the JSF framework I'm > using is absorbing the error, and the framework's error page is what > is throwing the 500 error. I wonder if the 500 error thrown

Re: specifying the content-type

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernd, On 6/7/2011 2:23 PM, Lentes, Bernd wrote: > Christopher Schultz wrote: >> >> How did you do it? If you use > CONTENT="text/html" />, it should override any Content-Type >> sent in the HTTP response headers > > Yes, we used this. But > http://

RE: specifying the content-type

2011-06-07 Thread Lentes, Bernd
Christopher Schultz wrote: > > Lentes, > > On 6/7/2011 11:36 AM, Lentes, Bernd wrote: > > first we tried to set the content-type in the ... > > section in the html file. That didn't work. > > How did you do it? If you use CONTENT="text/html" />, it should override any Content-Type > sent in the

Re: AW: specifying the content-type

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lentes, On 6/7/2011 11:36 AM, Lentes, Bernd wrote: > first we tried to set the content-type in the ... > section in the html file. That didn't work. How did you do it? If you use , it should override any Content-Type sent in the HTTP response heade

Re: Mod_jk working for failover

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuel. On 6/7/2011 12:38 PM, Manuel Fernández Panzuela wrote: > I want to work with mod_jk in failover mode. I do not want to balancing > petitions until the node 1 is unavailable. If principal node (node 1) is > down, then petitions will be redirect

Re: DB password in context.xml

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Umesh, On 6/7/2011 11:44 AM, Umesh Bhatt wrote: > I want to keep DB password in encrypted form in context.xml and > decrypt it in my application before calling ds.getConnection(). > Please let me know how to achieve it. Here is a distillation of all

Re: Asynchronous servlets + Tomcat + mod_jk

2011-06-07 Thread Seth Lenzi
I got the asynch servlet working with Apache and mod_jk. The issue turned out to not be with mod_jk. I was deploying to a clustered environment with two tomcats that were set up to do session replication. I installed a third lone tomcat, linked it to apache with mod_jk, and it worked perfectl

Mod_jk working for failover

2011-06-07 Thread Manuel Fernández Panzuela
Hello, I want to work with mod_jk in failover mode. I do not want to balancing petitions until the node 1 is unavailable. If principal node (node 1) is down, then petitions will be redirected to node 2. How I can do it? Thank you

Re: DB password in context.xml

2011-06-07 Thread Mark Thomas
On 07/06/2011 17:03, Umesh Bhatt wrote: > > Hi, > > My web application will be decrypting the password which has decryption key. > I do not want to keep password in plain text in context.xml. And where is your web application going to get this decryption key from? > Can you give me the link fo

RE: DB password in context.xml

2011-06-07 Thread Umesh Bhatt
Hi, My web application will be decrypting the password which has decryption key. I do not want to keep password in plain text in context.xml. Can you give me the link for archives? Thanks, Umesh From: Mark Thomas [ma...@apache.org] Sent: Tuesday, June

Re: DB password in context.xml

2011-06-07 Thread Mark Thomas
On 07/06/2011 16:44, Umesh Bhatt wrote: > > Hi, > > I want to keep DB password in encrypted form in context.xml and decrypt it in > my application before calling ds.getConnection(). > Please let me know how to achieve it. And where is Tomcat going to get the decryption key from? Hint: Save you

Auth in Context.xml

2011-06-07 Thread Umesh Bhatt
Hi, In Context.xml I have set Auth="Application" and want to connect with DataSource programatically. I am not seeing any example of how to do it. Can you share some link related to this? Thanks, Umesh http://www.mindtree.com/email/disclaimer.html ---

DB password in context.xml

2011-06-07 Thread Umesh Bhatt
Hi, I want to keep DB password in encrypted form in context.xml and decrypt it in my application before calling ds.getConnection(). Please let me know how to achieve it. Thanks, Umesh http://www.mindtree.com/email/disclaimer.html -

Re: how to correct stop a thread and avoid leaks

2011-06-07 Thread alexis
yes, did that and it's working now. when contextDestroyed is called, i set the bool to false and force the loop out. What i was missing is loop is exited when > if ((inputLine = in.readLine()) != null) this is completed, so, from Server class what i did is Listener.requestStop(); // this cause

RE: Multiple hosts pointing to different index files for one webapp

2011-06-07 Thread Caldarale, Charles R
> From: Mike Kennedy [mailto:mkenn...@oucpm.org] > Subject: Multiple hosts pointing to different index files for one webapp > I have been asked to launch a new webapp in Tomcat via different URLs, > with each URL pointing to a different launch page for the same app. Probably the easiest way to h

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Remon Sadikni
Hi Konstantin, hi Mark, all right, thank you. I only looked at the published version, not the one in svn. Regards, Remon On 06/07/2011 05:06 PM, Konstantin Kolinko wrote: 2011/6/7 Mark Thomas: On 07/06/2011 11:52, Remon Sadikni wrote: Hi Mark, for me log4j only works with this additional

RE: AW: specifying the content-type

2011-06-07 Thread Lentes, Bernd
Hi, first we tried to set the content-type in the ... section in the html file. That didn't work. Our developers try now to use the response.setContentType("text/html"); method to configure the content-type in the HTTP-Header. What i also found out is that you can use a defaulttype directive

RE: how to correct stop a thread and avoid leaks

2011-06-07 Thread Bill Miller
If you want to work with threads in tomcat you need to know about the Tomcat org.apache.catalina.LifecycleListener interface. If you implement the interface and register your class within server.xml your class will be notified of Tomcat life cycle events (Start, Stop, etc...). You can then do app

Multiple hosts pointing to different index files for one webapp

2011-06-07 Thread Mike Kennedy
I have been asked to launch a new webapp in Tomcat via different URLs, with each URL pointing to a different launch page for the same app. For example: portal1.com --> webapps/portalapp/portal1_index.jsp portal2.com --> webapps/portalapp/portal2_index.jsp I don't know if this should be done b

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Konstantin Kolinko
2011/6/7 Mark Thomas : > On 07/06/2011 11:52, Remon Sadikni wrote: >> Hi Mark, >> >> for me log4j only works with this additional line per appender: >> >> log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout > > Where exactly? That line is already present in the docs. Or are you > looking

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Mark Thomas
On 07/06/2011 11:52, Remon Sadikni wrote: > Hi Mark, > > for me log4j only works with this additional line per appender: > > log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout Where exactly? That line is already present in the docs. Or are you looking at an older version? The latest

Re: error-page for http 500 error code does not work

2011-06-07 Thread Kevin Claver
Chris,  Through further investigation, I now believe the JSF framework I'm using is absorbing the error, and the framework's error page is what is throwing the 500 error.  I wonder if the 500 error thrown by the framework's error page should fall through to the custom error page servlet I've

Re: Error in Tomcat 6.0 log4j documentation

2011-06-07 Thread Remon Sadikni
Hi Mark, for me log4j only works with this additional line per appender: log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout Thanks, Remon On 06/06/2011 07:09 PM, Mark Thomas wrote: On 06/06/2011 15:25, Remon Sadikni wrote: Dear Tomcat-Developers and Users, I think there is an er

Re: Asynchronous servlets + Tomcat + mod_jk

2011-06-07 Thread baran topal
Sent from my iPhone On 6 jun 2011, at 22:50, André Warnier wrote: > Seth Lenzi wrote: >> Anyone here have any experience with asynchronous servlets under a Tomcat >> that's linked to Apache via mod_jk? I have an asynchronous servlet that's >> working nicely when accessed directly from Tomcat,

Re: Tomcat 6 Clustering vs. Tomcat 5.5 clustering

2011-06-07 Thread Martin Knoblauch
Hi, I almost forgot about this one :-) - Original Message > From: Filip Hanik - Dev Lists > To: Tomcat Users List > Sent: Tue, June 7, 2011 1:07:20 AM > Subject: Re: Tomcat 6 Clustering vs. Tomcat 5.5 clustering > > On 5/23/2011 6:50 AM, Martin Knoblauch wrote: > > Hi, > > > > while

RE: Query regarding an issue been faced in TOMCAT

2011-06-07 Thread Srilalitha Bijumalla
Mikolaj Rydzewski wrote: > On Fri, 3 Jun 2011 17:58:06 +0530, Srilalitha Bijumalla wrote: > >> java.io.FileNotFoundException: >> /global/backup/apache-tomcat-5.5.23/logs/catalina.2011-05-31.log (No >> space left on device) > > Either there's no space left or there are insufficient permissions. > Ma

Re: Class.forName doesn't find classes located in WEB-INF/lib

2011-06-07 Thread Mark Thomas
On 06/06/2011 23:35, Clemens Eisserer wrote: > Hi Martin, > >> 3)webapp (everything found in WEB-INF/lib and WEB-INF/classes) >> >> you are using system classloader to loaf WEB-INF/lib jar >> use the webapp classloader > > So according to this, the servlet as well as the classes from > WEB-INF/li