Re: Universal connection pooling Type Casting problem

2010-04-19 Thread Harry Metske
2010/4/19 SivaKumarl sivakum...@naradaproducts.com Hi Friends, I am using universal connection pooling for connecting database , while configuring manually i able to connect to database,but while configuring in server.xml i am unable to cast the datasource i am getting the class

Re: Oracle Universal connection pooling type cast problem while configuring in server.xml

2010-04-19 Thread Harry Metske
this is an exact cut/paste from an earlier post, it won't help you repeating the same questions. regards, Harry 2010/4/19 Thangavelu.V thangavel...@yalamanchili.co.in Hi Friends, I am using universal connection pooling for connecting database , while configuring manually i able to

Single Sign On Valve

2010-04-19 Thread Arnab Ghosh
Hello Friends, I want to know about the Single Sign On Valve. Why/when should we use this valve?? I have already studied the documentation about this. But I haven't got a clear idea about it. Is there any relation of Single-Sign-On with session management?? Please help me on this. Thanks,

Re: Single Sign On Valve

2010-04-19 Thread Pid
On 19/04/2010 08:05, Arnab Ghosh wrote: Hello Friends, I want to know about the Single Sign On Valve. Why/when should we use this valve?? I have already studied the documentation about this. But I haven't got a clear idea about it. Is there any relation of Single-Sign-On with session

Re: Universal connection pooling Type Casting problem

2010-04-19 Thread Pid
On 19/04/2010 07:56, Harry Metske wrote: 2010/4/19 SivaKumarl sivakum...@naradaproducts.com Hi Friends, I am using universal connection pooling for connecting database , while configuring manually i able to connect to database,but while configuring in server.xml i am unable to

memory problems / time outs

2010-04-19 Thread Woude, Alexander van der
Hello All For a client I developed a few Data webservices. In total there are 7 services. All are CXF based webservices that use hibernate. I keep having memory problems, so I increased both JAVA_OPTS as CATALINA_OPTS. Now I get timed out errors and tomcat blocks completely, I only can resolve

set time out based on userInRole

2010-04-19 Thread Søren Blidorf
Is it possible to set time out time on the server base don how is logged id Soren, DK

Re: set time out based on userInRole

2010-04-19 Thread Pid
On 19/04/2010 12:51, Søren Blidorf wrote: Is it possible to set time out time on the server base don how is logged id Any chance you can rephrase the question? p signature.asc Description: OpenPGP digital signature

RE: memory problems / time outs

2010-04-19 Thread Woude, Alexander van der
Sorry a small correction. The client times out, because the tomcat gives a Heap Space memory error. config in startup.sh : export JAVA_OPTS=-Xms128m -Xmx512m export CATALINA_OPTS=-Xms512m -XX:MaxPermSize=512m My apps are 7 war, that each contain its own deps. Size of 1 war is 14 MB How do I

Re: memory problems / time outs

2010-04-19 Thread Pid
On 19/04/2010 12:49, Woude, Alexander van der wrote: Hello All For a client I developed a few Data webservices. In total there are 7 services. All are CXF based webservices that use hibernate. I keep having memory problems, so I increased both JAVA_OPTS as CATALINA_OPTS. Now I get timed

SV: set time out based on userInRole

2010-04-19 Thread Søren Blidorf
Sure. Fx if you are admin no connectionTimeout and if you are user connectionTimeout 20 min Soren -Oprindelig meddelelse- Fra: Pid [mailto:p...@pidster.com] Sendt: 19. april 2010 13:55 Til: Tomcat Users List Emne: Re: set time out based on userInRole On 19/04/2010 12:51, Søren Blidorf

Client cert authentication

2010-04-19 Thread acastanheira2001
Hi, I have an apache server in front of Tomcat/Jboss, the former receives the client cert and does revocation list and trust validation. I need to pass the client cert to Tomcat only to check the SubjectAltNames. As far as trust accreditation is done by apache, does Tomcat need to have a

Re: Client cert authentication

2010-04-19 Thread Mark Thomas
On 19/04/2010 13:05, acastanheira2001 wrote: Hi, I have an apache server in front of Tomcat/Jboss, the former receives the client cert and does revocation list and trust validation. I need to pass the client cert to Tomcat only to check the SubjectAltNames. As far as trust

Re: memory problems / time outs

2010-04-19 Thread Pid
On 19/04/2010 12:54, Woude, Alexander van der wrote: Sorry a small correction. The client times out, because the tomcat gives a Heap Space memory error. config in startup.sh : export JAVA_OPTS=-Xms128m -Xmx512m export CATALINA_OPTS=-Xms512m -XX:MaxPermSize=512m You're setting -Xms twice

Re: memory problems / time outs

2010-04-19 Thread Harry Metske
2010/4/19 Woude, Alexander van der alexander.vander.wo...@capgemini.com Sorry a small correction. The client times out, because the tomcat gives a Heap Space memory error. config in startup.sh : export JAVA_OPTS=-Xms128m -Xmx512m export CATALINA_OPTS=-Xms512m -XX:MaxPermSize=512m My apps

RE: memory problems / time outs

2010-04-19 Thread Woude, Alexander van der
Thanks for the suggestions this far. I had an oversight with the tomcat monitoring, didnt notice it on the site. I will try that just as the suggestions about JStack etc. why 2 Xms settings? I thought to have understood that catalina en java opts were 2 seperate things but I was wrong? Thanks

Re: memory problems / time outs

2010-04-19 Thread Harry Metske
if you specify java options in JAVA_OPTS it is both valid for startup and shutdown, if you specify java options in CATALINA_OPTS it is only valid for startup. So my guess is that CATALINA_OPTS is the right place in your situation. regards, Harry 2010/4/19 Woude, Alexander van der

Re: memory problems / time outs

2010-04-19 Thread Pid
On 19/04/2010 13:24, Woude, Alexander van der wrote: Thanks for the suggestions this far. I had an oversight with the tomcat monitoring, didnt notice it on the site. I will try that just as the suggestions about JStack etc. why 2 Xms settings? I thought to have understood that catalina

RE: memory problems / time outs

2010-04-19 Thread Woude, Alexander van der
Wel actually when memeory problems appeared I started with the CATALINA_OPTS to increase memeory. When after a while problems appeared again, I thought to understand that I had to increase the heap size op the JVM memory. In the end I wanted more memeory allocated for the tomcat. SO please tell

Re: memory problems / time outs

2010-04-19 Thread Pid
On 19/04/2010 14:39, Woude, Alexander van der wrote: Pid, considering I put the _OPTS in my startup.sh file, can it be they are not used? It was probably used, but the settings you specified overlap with each other, so the -Xms in JAVA_ is replaced by the second setting in CATALINA_ What is

Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat to generate simply localhost.log for whatever day today

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Peter Crowther
Hmm. As the log files will alpha-sort by date, something like vim `ls ~/localhost.log* | tail -1` might do it. Beware - my shell script is rusty at best. - Peter On 19 April 2010 15:29, laredotornado laredotorn...@gmail.com wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in

RE: Hung threads

2010-04-19 Thread Jeffrey Janner
Konstantin - I assume that the APR code is responsible for issuing that call? The reason I'm asking is that I moved the customer to a new server over the weekend and they showed no sign of the problem on the new setup (Windows 2008R2*, Sun JDK 1.6.0_20 x64, Tomcat 5.5.27, native lib 1.1.16).

Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Using Tomcat 6.0.18 (to be 6.0.26) and Google App Engine, for parallel development (different db tech) Short form: I need to accept a file upload in a servlet, do some computations on the upload, and then transition to a JSP with some data resulting from the computations. I'm having some

RE: Oracle Universal connection pooling type cast problem while configuring in server.xml

2010-04-19 Thread Propes, Barry L
V.Thangavelu, I ran into a similar error as what you state below a month or so ago. Chuck Caldarale had made the suggestion, and it turned out to be the elixir for me, was to make ABSOLUTELY sure you had NO other classes (or jar files) of the same name, i.e. tomcat-dbcp.jar, floating around

Buen producto!!

2010-04-19 Thread Bocalinda
Estimado amigo, ?Cómo está usted recientemente? decirte una gran sorpresa! Ktpshop compa?ía es una empresa de comercio electrónico de productos que ha clasificado superior Asia --- (www.ktpshop.info) y cuenta con la cooperación con Nokia, Sony, HP, etc durante muchos a?os, la calidad del producto

Tomcat6 can't see tcnative-1.dll on win7-64 bit

2010-04-19 Thread Ake Tangkananond
Hello, I have been struggling with the APR Tomcat 6 on my Windows 7 64-bit for few hours. I can't make the native lib loaded. Can I have advise where I could start investigating the problem ? Here is the info #1 I use - Tomcat 6.0.26 - Tomcat Native 1.1.20 #2 C:\Program Files\Apache Software

Re: SV: set time out based on userInRole

2010-04-19 Thread Bob Hall
Soren, --- On Mon, 4/19/10 at 5:01 AM, Søren Blidorf so...@nolas.dk wrote: Fx if you are admin no connectionTimeout and if you are user connectionTimeout 20 min session.setMaxInactiveInterval() - Bob - To unsubscribe,

how to link from a jsf to a jsf to form a new request?

2010-04-19 Thread Yucca Nel
my jsf is not getting rendered on a request from a linkable image using both graphicimage and outputlink. I suspect that outputlink does not start a new request and this is the cause? Should I be using command link because this is not a formand only a image banner with some image links.

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Pid
On 19/04/2010 15:29, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat to

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Pid
On 19/04/2010 17:06, Ken Bowen wrote: Using Tomcat 6.0.18 (to be 6.0.26) and Google App Engine, for parallel development (different db tech) Short form: I need to accept a file upload in a servlet, do some computations on the upload, and then transition to a JSP with some data resulting

Re: how to link from a jsf to a jsf to form a new request?

2010-04-19 Thread Pid
On 20/04/2010 21:13, Yucca Nel wrote: my jsf is not getting rendered on a request from a linkable image using both graphicimage and outputlink. I suspect that outputlink does not start a new request and this is the cause? Should I be using command link because this is not a formand only a

Re: [OT] Hung threads

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 4/17/2010 2:15 PM, Jeffrey Janner wrote: And the solution to the attachment issue is removing the PGP signing stuff from your message in my reply. Gotcha. Unfortunately, I have to use inline PGP because some email clients are retarded

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread André Warnier
Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data File:input type=file name=csvfile2uploadbr/br input type=submit name=Submit value=Upload CSV File

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 4/19/2010 12:06 PM, Ken Bowen wrote: form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data File:input type=file name=csvfile2uploadbr/br input type=submit name=Submit value=Upload CSV File

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/19/2010 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data File:input type=file

Re: SV: set time out based on userInRole

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bob, On 4/19/2010 3:20 PM, Bob Hall wrote: Soren, --- On Mon, 4/19/10 at 5:01 AM, Søren Blidorf so...@nolas.dk wrote: Fx if you are admin no connectionTimeout and if you are user connectionTimeout 20 min session.setMaxInactiveInterval()

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Jon Brisbin
On Apr 19, 2010, at 3:42 PM, Pid wrote: On 19/04/2010 15:29, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example --

Re: loading properties file from WEB-INF instead of WEB-INF/classes

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/18/2010 2:27 PM, David Smith wrote: ServletContext.getResource( path ) takes path as relative to the current webapp and returns a URL for opening the resource or null if the resource was not found. also there is --

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread André Warnier
Pid wrote: On 19/04/2010 15:29, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat

RE: [OT] Hung threads

2010-04-19 Thread Jeffrey Janner
And I'll try to remember to remove the sig from now on before I reply. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, April 19, 2010 4:07 PM To: Tomcat Users List Subject: Re: [OT] Hung threads Jeffrey, On 4/17/2010 2:15 PM, Jeffrey

RE: Problem moving from file upload servlet to JSP

2010-04-19 Thread Propes, Barry L
You sure about that? I've got mine that way (button of type submit, but with an onClick event triggering a javascript function.) and it works fine. André Warnier wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm

Binding Tomcat Apps to Specific CPUs in Windows

2010-04-19 Thread Marsh, Geoffrey (NIH/CIT) [E]
Good evening. I would like to bind a specific application within Tomcat to a specific CPU or pair of CPUs on a Windows Server. I'm having no luck finding documentation or list threads about this. Anybody done this? Any guidance or pointers would be greatly appreciated. If it helps, software

Re: Binding Tomcat Apps to Specific CPUs in Windows

2010-04-19 Thread André Warnier
Marsh, Geoffrey (NIH/CIT) [E] wrote: Good evening. I would like to bind a specific application within Tomcat to a specific CPU or pair of CPUs on a Windows Server. I don't think you can. An application within Tomcat is not a separate process. Even Tomcat is not a process, from the OS's

RE: Binding Tomcat Apps to Specific CPUs in Windows

2010-04-19 Thread Marsh, Geoffrey (NIH/CIT) [E]
Thanks Andre. That makes sense. I appreciate the quick reply. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, April 19, 2010 5:48 PM To: Tomcat Users List Subject: Re: Binding Tomcat Apps to Specific CPUs in Windows Marsh, Geoffrey (NIH/CIT) [E] wrote:

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 4/19/2010 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Mark Thomas
On 19/04/2010 22:32, André Warnier wrote: I disagree. The point raised by the OP above is one that bothers a lot of people. The lame bit is the way in which standard out-of-the-box Tomcat generates its logfiles, and their rotation, inflexibly. And yes, I know one can implement log4j and do

RE: Problem moving from file upload servlet to JSP

2010-04-19 Thread Propes, Barry L
My guess is that he may have other various pieces of validation tied to it, client side. And he might even have some client-side validation intertwined for the type of file in an array, - i.e. .xls, .doc., .txt etc. as an acceptable file type to upload, though, like you, I have no idea not

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread André Warnier
Mark Thomas wrote: On 19/04/2010 22:32, André Warnier wrote: I disagree. The point raised by the OP above is one that bothers a lot of people. The lame bit is the way in which standard out-of-the-box Tomcat generates its logfiles, and their rotation, inflexibly. And yes, I know one can

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Just aritfacts of step by step changes (as I come to understand various thingies): should be type button, but gives no evidence of two events. On Apr 19, 2010, at 5:19 PM, André Warnier wrote: Ken Bowen wrote: ... Long form. Here's the html for file upload (vanilla): form

FollowUP: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
Thanks for all the responses. 1. After posting the original, I thought about it all at lunch, and was leaning towards the db solution, and Chris firmly pushed me over on that. Now I just convert the byte stream to a (sometimes big) string, and stuff it in a temporary db place using the

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Pid
On 19/04/2010 23:11, André Warnier wrote: Mark Thomas wrote: On 19/04/2010 22:32, André Warnier wrote: I disagree. Fair enough. The point raised by the OP above is one that bothers a lot of people. I don't like juli logging at all, but hitting tab a couple of keys isn't that traumatic.

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Pid
On 19/04/2010 22:21, Christopher Schultz wrote: Ken, On 4/19/2010 12:06 PM, Ken Bowen wrote: form name=csvUploadForm action=csvfileupload method=post enctype=multipart/form-data File:input type=file name=csvfile2uploadbr/br input type=submit name=Submit value=Upload CSV File

Re: Problem moving from file upload servlet to JSP

2010-04-19 Thread Ken Bowen
The confusion results from the fact that I initially used the redirect in the simple case. Then I tried to switch to the forward in the more complicated case, and got in a mess. But now I've simply stored everything in the db right away, and used a redirect to get to the jsp where I do all

Re: FollowUP: Problem moving from file upload servlet to JSP

2010-04-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, On 4/19/2010 6:43 PM, Ken Bowen wrote: Thanks for all the responses. 1. After posting the original, I thought about it all at lunch, and was leaning towards the db solution, and Chris firmly pushed me over on that. Now I just convert the

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Konstantin Kolinko
2010/4/20 André Warnier a...@ice-sa.com: I suggest a simple way whereby to tell Tomcat (optionally) just /not/ to rotate its logfiles itself, and to always write to a fixed filename. (an additional property in logging.properties ?) There exists under Linux the logrotate utility, which is

Re: Universal connection pooling Type Casting problem

2010-04-19 Thread Auser99
Does anyone have a solution for this. Thanks. au http:/www.xprad.org/ SivaKumarl wrote: Hi Friends, I am using universal connection pooling for connecting database , while configuring manually i able to connect to database,but while configuring in server.xml i am unable to

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Terence M. Bandoian
Here's a Linux script to remove log files older than seven days: find /var/tomcat5/logs -daystart -mtime +7 -type f -exec rm '{}' \; Just in case anyone might find it useful. -Terence Bandoian - To unsubscribe, e-mail:

mod_jk reply_timeout and error state

2010-04-19 Thread Sean GAO
Hi, We are running apache 2.2.4 and tomcat 5.5.28 with mod_jk 1.2.28. 3 tomcat instances. Referring to http://tomcat.apache.org/connectors-doc/reference/workers.html , we came up with a workers.properties file like this: worker.list=balancer worker.maintain=30 #tomcat01