Re: Certificate issued by GeoTrust Global CA is not appearing at client browser's side

2011-11-21 Thread rosiere
Hello, It works. Thanks. markt-2 wrote: On 17/11/2011 16:48, rosiere wrote: Hello, Thanks for your hint. I made a copy of my keystore. Then I changed alias: my private key now uses the alias mykey. I changed our certificate's alias to tomcat, by keytool's -changealias command.

Re: JvmRoute must be unique?

2011-11-21 Thread Francesco Sordillo
Il 18/11/2011 16:09, Christopher Schultz ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 a. on node01, jvmroute=istance01_node01 and instance02_node01 for instance01 and istance02, respectively; b. on node01, jvmroute=istance01_node02 and instance02_node02 for instance01 and

How to get the tomcat internal log out?

2011-11-21 Thread Kurt
Hello all: I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below log4j.properties to the direcotry

Re: where to put static files?

2011-11-21 Thread André Warnier
S Ahmed wrote: I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js} I know when I go in production I will have nginx map to this folder to serve the static files, which,

Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread appy74
Hello I don't think this is a Tomcat issue but I thought I would post here just in case. I have a Java, JSP and MySQL application running under Apache Tomcat 6.0.26 which I've been testing with JMeter. What I find is that for a simple test having 10 users logging in and displaying a JSP

Re: where to put static files?

2011-11-21 Thread Pid *
On 21 Nov 2011, at 03:15, S Ahmed sahmed1...@gmail.com wrote: I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js} You can't serve files directly from WEB-INF. I know

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 09:28, app...@dsl.pipex.com app...@dsl.pipex.com wrote: Hello I don't think this is a Tomcat issue but I thought I would post here just in case. I have a Java, JSP and MySQL application running under Apache Tomcat 6.0.26 which I've been testing with JMeter. What I

Re: APR SSL error: Socket bind failed: [98] Address already in use

2011-11-21 Thread Pid *
On 21 Nov 2011, at 02:44, Eric Kemp cruisingat90...@gmail.com wrote: Below is my entire server.xml (minus commented lines) ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SecretCommand Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on /

Re: APR SSL error: Socket bind failed: [98] Address already in use

2011-11-21 Thread Konstantin Kolinko
2011/11/21 Eric Kemp cruisingat90...@gmail.com: Below is my entire server.xml (minus commented lines) Good to know. Can you post the logs? (catalina.date.log file). Clear them first then try starting Tomcat. Best regards, Konstantin Kolinko

Re: How to get the tomcat internal log out?

2011-11-21 Thread Konstantin Kolinko
2011/11/21 Kurt fxbird1...@163.com: Hello all:  I compile tomcat 5.5.30 and import it to eclipse as a project, to research how the tomcat load class , I need to view the running log ,after reading through this post(http://tomcat.apache.org/tomcat-5.5-doc/logging.html) and adding below

Re: where to put static files?

2011-11-21 Thread Jan Vávra
Hello, when I started my project others told me to use apache for static content and tomcat for java/jsp. It works quite good. Tomcat is hidden under reverse proxy (mod_ajp). So static content gives apache, dynamic tomcat. Jan. I have a spring project (web app), in my project where should

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Usually the connection is initialised as null and then assigned inside the try block. What happens if the method above throws an error after a connection is removed from the pool? To try to answer this, the sample code provided is illustrative of my DAO classes generally. The following is

Re: Tomcat recycling

2011-11-21 Thread Jan Vávra
Hello, is there any way how to tell tomcat: Recycle after X minutes OR Y requests like it is eg. on the IIS server? IIS can reboot itself after N requests? That's awesome. What could possibly go wrong? Yes, IIS can do recycling See eg. at

Re: Tomcat recycling

2011-11-21 Thread Jan Vávra
Hello, -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, On 11/18/11 10:35 AM, Jan Vávra wrote: is there any way how to tell tomcat: Recycle after X minutes OR Y requests like it is eg. on the IIS server? Tomcat does not come with any mechanism for doing that. IIS has hacks to work-around

Re: where to put static files?

2011-11-21 Thread Daniel Mikusa
On Mon, 2011-11-21 at 01:41 -0800, Pid * wrote: On 21 Nov 2011, at 03:15, S Ahmed sahmed1...@gmail.com wrote: I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js}

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Terence M. Bandoian
On 1:59 PM, Martin O'Shea wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: Too many connections I'd check into this. -Terence Bandoian

RE: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Thanks Terence. Yes, I have been. Increasing the number of connections in MySQL, the max_connections parameter, seems to have helped somewhat. Is there an optimum number of connections that the 'equivalent' Tomcat maxActive should have? -Original Message- From: Terence M. Bandoian

Re: Problem with wmv file in tomcat 7

2011-11-21 Thread al pl
Konstantin, * * *Thanks for the info. I believe it is related to that HttpOnly flag as you said because in access log it shows that in response to fetching the video file it sends the same amount of bytes as my login screen. I set the useHttpOnly flag to false in app context but that didn't help.

Re: Problem with wmv file in tomcat 7

2011-11-21 Thread al pl
Another thing I realized is that the whole wmv file is sent to the browser per it's request. So why doesn't it hand off the file to windows media player and why does windows media player requests the file again? Thanks, Al

Re: where to put static files?

2011-11-21 Thread André Warnier
Hi. What we are trying to say is this : The WEB-INF and META-INF sub-directories of a Tomcat webapp, are supposed to contain files that should NOT be accessed by the users. For example, in the WEB-INF and META-INF subdirectories, there are files (like WEB-INF/web.xml) which may contain

Re: Tomcat recycling

2011-11-21 Thread Pid *
On 21 Nov 2011, at 13:24, Jan Vávra va...@602.cz wrote: Hello, is there any way how to tell tomcat: Recycle after X minutes OR Y requests like it is eg. on the IIS server? IIS can reboot itself after N requests? That's awesome. What could possibly go wrong? Yes, IIS can do recycling See

Re: Problem with wmv file in tomcat 7

2011-11-21 Thread al pl
Konstantin, I was wrong. It is working after I added the useHttpOnly=false to the context. Thanks a lot for the help. Al.

Re: where to put static files?

2011-11-21 Thread Pid *
On 21 Nov 2011, at 18:52, André Warnier a...@ice-sa.com wrote: Hi. What we are trying to say is this : The WEB-INF and META-INF sub-directories of a Tomcat webapp, are supposed to contain files that should NOT be accessed by the users. For example, in the WEB-INF and META-INF

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 16:11, Terence M. Bandoian tere...@tmbsw.com wrote: On 1:59 PM, Martin O'Shea wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: Too many connections I'd check

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 16:25, Martin O'Shea app...@dsl.pipex.com wrote: Thanks Terence. Yes, I have been. Increasing the number of connections in MySQL, the max_connections parameter, seems to have helped somewhat. If you are leaking connections it will just delay the problem, even make it

Re: Tomcat Manager WebApp authentication

2011-11-21 Thread Mark Montague
On November 18, 2011 16:17 , Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov wrote: Is is possible to ... or some other independent source for role information? A sample using JNDI and active directory in the archives. http://www.mail-archive.com/users@tomcat.apache.org/msg74641.html

FW: Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Are you able to provide any more information about what I am actually looking for in VisualVM?

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Well, I hope I'm reading VisualVM correctly, because when I run the JMeter test first time around, I see 40 'connector' threads created in VisualVM, all of which run for so long and then return to a wait state. And if I run the test again several times in succession, the number of connector

Tomcat dependency setup

2011-11-21 Thread John Hinnegan
Hi, I'm looking for a resource for how to set dependencies on tomcat. I'm using SBT and looking to replace Jetty with Tomcat in the test/build phase. I already deploy to tomcat in prod. Here's the jetty dependency. 15 org.eclipse.jetty % jetty-webapp % 7.4.5.v20110725 % container, 16

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 20:09, Martin O'Shea app...@dsl.pipex.com wrote: Are you able to provide any more information about what I am actually looking for in VisualVM? Depends how you defined the Db. Did you define a global Resource in server.xml? Or perhaps in conf/context.xml? p

Re: Tomcat Manager WebApp authentication

2011-11-21 Thread André Warnier
Mark Montague wrote: ... Any advice on how to solve this problem? I need Tomcat 6 to use the authentication performed by the front-end webserver without breaking the roles required by the Tomcat Manager webapp. I know that it does not answer your question, but may I ask why ? If you

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 21:25, Martin O'Shea app...@dsl.pipex.com wrote: Well, I hope I’m reading VisualVM correctly, because when I run the JMeter test first time around, I see 40 ‘connector’ threads created in VisualVM, all of which run for so long and then return to a wait state. I always forget

Re: Tomcat Manager WebApp authentication

2011-11-21 Thread Mark Montague
On November 21, 2011 17:35 , André Warnier a...@ice-sa.com wrote: Mark Montague wrote: Any advice on how to solve this problem? I need Tomcat 6 to use the authentication performed by the front-end webserver without breaking the roles required by the Tomcat Manager webapp. I know that it

Re: APR SSL error: Socket bind failed: [98] Address already in use

2011-11-21 Thread Jeremy
I understand you want to use APR, but just for troubleshooting purposes, try using the same server.xml but changing the SSL connector from protocol=org.apache.coyote.http11.Http11AprProtocol to protocol=org.apache.coyote.http11.Http11NioProtocol If that works, then your problem is with APR,

RE: Tomcat Causes Server to go Panic/Crash

2011-11-21 Thread Adrian Zara
Hi Charles, Thanks for the advice. apologies for being stubborn. I'll change the JVM and set the CATALINA_OPTS in the setenv.sh Best regards, Adrian Caldarale, Charles R chuck.caldar...@unisys.com 11/19/2011 01:18 AM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat

Re: APR SSL error: Socket bind failed: [98] Address already in use

2011-11-21 Thread Eric Kemp
Problem resolved! Thanks so much for all the helpful hints. I had been going to the end of the catalina.out file and seeing this error message in the last ~60 lines of text, and thought it represented the latest restart errors. What I failed to notice, was that there WERE previous errors above

Re: Tomcat dependency setup

2011-11-21 Thread Pid *
On 21 Nov 2011, at 22:09, John Hinnegan john.hinne...@gmail.com wrote: Hi, I'm looking for a resource for how to set dependencies on tomcat. I'm using SBT and looking to replace Jetty with Tomcat in the test/build phase. (SBT is a build tool written in Scala - I had to look it up)

tomcat http connector

2011-11-21 Thread Asha K S
Hi, Is there any document which I can refer to which states if tomcat's built in http connector (Coyote) can be used for production ? And also a comparison between http connector and AJP one. Thanks, Asha

RE: tomcat http connector

2011-11-21 Thread Caldarale, Charles R
From: Asha K S [mailto:a...@adobe.com] Subject: tomcat http connector Is there any document which I can refer to which states if tomcat's built in http connector (Coyote) can be used for production ? What an odd question. Of course it can be used for production. And also a comparison

RE: tomcat http connector

2011-11-21 Thread Asha K S
HI Chuck, Sorry I am newbie here :) .My question was mainly regarding which one is recommended for production . Thanks, Asha -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, November 22, 2011 12:29 PM To: Tomcat Users List Subject: RE:

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Terence M. Bandoian
On 21 Nov 2011, at 16:25, Martin O'Sheaapp...@dsl.pipex.com wrote: Thanks Terence. Yes, I have been. Increasing the number of connections in MySQL, the max_connections parameter, seems to have helped somewhat. If you are leaking connections it will just delay the problem, even make it

RE: tomcat http connector

2011-11-21 Thread Caldarale, Charles R
From: Asha K S [mailto:a...@adobe.com] Subject: RE: tomcat http connector My question was mainly regarding which one is recommended for production . Both, depending on what you need to do. If you are using httpd for something useful (and just serving static content isn't one of those

RE: tomcat http connector

2011-11-21 Thread Asha K S
Is there any performance comparison document available already between http and AJP Thanks, Asha -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, November 22, 2011 12:40 PM To: Tomcat Users List Subject: RE: tomcat http connector From:

Re: tomcat http connector

2011-11-21 Thread Pid *
On 22 Nov 2011, at 07:15, Asha K S a...@adobe.com wrote: Is there any performance comparison document available already between http and AJP Please don't top-post. Post your questions below the answers so it's possible to read the conversation without jumping up and down the page. The AJP

RemoveIpValve and valve execution order

2011-11-21 Thread rswart
Hi, I'm trying to configure the RemoteIp in combination with AccessLogValve. request.getRemoteAddr() return the correct remote-ip from X-Forwarded-For header, but AccessLogValve still logs the unmodified (proxy) ip-address. Can this be related to the execution order of valves? Can I enforce

Re: tomcat http connector

2011-11-21 Thread Jan Vávra
Hello, I use ajp, because on tomcat I make authentication based on client certificate. That you cannot do via http connector. Jan. Hi, Is there any document which I can refer to which states if tomcat's built in http connector (Coyote) can be used for production ? And also a comparison

Re: RemoveIpValve and valve execution order

2011-11-21 Thread Konstantin Kolinko
2011/11/22 rswart rjsw...@gmail.com: Hi, I'm trying to configure the RemoteIp in combination with AccessLogValve. request.getRemoteAddr() return the  correct remote-ip from X-Forwarded-For header, but AccessLogValve still logs the unmodified (proxy) ip-address. Can this be related to the