Re: Starting tomcat7w from batch file

2013-03-19 Thread Mladen Turk
On 03/18/2013 03:59 PM, David kerber wrote: start C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\bin\tomcat7w.exe //MS//Small-55009 You can also copy/rename tomcat7w.exe to small-55009w.exe and you won't need any params. Regards -- ^TM

RE: SSL Best Practices

2013-03-19 Thread Harris, Jeffrey E.
-Original Message- From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Sent: Tuesday, March 19, 2013 1:58 AM To: Tomcat Users List Subject: Re: SSL Best Practices If the system is only for testing, or communicates with a limited number of systems

RE: SSL Best Practices

2013-03-19 Thread Martin Gainty
1)Have you ever tried to coerce IE to accept a self-signed cert 2)if you purchase a pfx with a self-signed certificate sold to you by chris_is_a_hacker.com for 1.00 then who do you think can break it The cert allows browser to contact the sites SSL connector..by presenting credentials usually

Re: Starting tomcat7w from batch file

2013-03-19 Thread David kerber
On 3/19/2013 2:04 AM, Mladen Turk wrote: On 03/18/2013 03:59 PM, David kerber wrote: start C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\bin\tomcat7w.exe //MS//Small-55009 You can also copy/rename tomcat7w.exe to small-55009w.exe and you won't need any params. Hmmm. I had

RE: SSL Best Practices

2013-03-19 Thread Harris, Jeffrey E.
-Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Tuesday, March 19, 2013 7:35 AM To: Tomcat Users List Subject: RE: SSL Best Practices 1)Have you ever tried to coerce IE to accept a self-signed cert 2)if you purchase a pfx with a self-signed certificate

RE: SSL Best Practices

2013-03-19 Thread Jeffrey D. Fisher
Yes, I do have a CA-issued certificate with a chain to a trusted CA. I've imported it to the keystore. I am close to a solution. When I attempt to open the default Apache web page using https: I get an error page that says that the server cannot open the page. It opens with http: just fine. I

Re: Starting tomcat7w from batch file

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 3/18/13 12:03 PM, André Warnier wrote: Harris, Jeffrey E. wrote: start D:\Tomcat 7.0\bin\tomcat7w.exe //MS//Tomcat7 See

RE: SSL Best Practices

2013-03-19 Thread Harris, Jeffrey E.
-Original Message- From: Jeffrey D. Fisher [mailto:jeff.fisher12...@cox.net] Sent: Tuesday, March 19, 2013 10:34 AM To: 'Tomcat Users List'; mgai...@hotmail.com Subject: RE: SSL Best Practices Yes, I do have a CA-issued certificate with a chain to a trusted CA. I've imported it

Re: SSL Best Practices

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 3/18/13 6:21 PM, Martin Gainty wrote: do you have keystore and certificate..if not go to verisign and get a CATrusted pfx... the cost is worth it and anything you create with a self-signed cert will be broken in less than 5 min

Re: SSL Best Practices

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 3/19/13 7:34 AM, Martin Gainty wrote: 1)Have you ever tried to coerce IE to accept a self-signed cert This is a trust issue, not a security issue. They are related, but not equivalent. 2)if you purchase a pfx with a self-signed

RE: SSL Best Practices

2013-03-19 Thread Jeffrey D. Fisher
Could we dispense with the ego-clanking, please? Really? Keep in mind that EVERYONE has the same problem regardless of your IQ level: for everything you know there are three to five things you do not know and at least one that you do not know you do not know. Accept that fact and life gets

RE: SSL Best Practices

2013-03-19 Thread Harris, Jeffrey E.
-Original Message- From: Jeffrey D. Fisher [mailto:jeff.fisher12...@cox.net] Sent: Tuesday, March 19, 2013 11:28 AM To: 'Tomcat Users List' Subject: RE: SSL Best Practices Could we dispense with the ego-clanking, please? Really? Keep in mind that EVERYONE has the same problem

Re: problems faced in deploying servlet

2013-03-19 Thread Muralidhar Yaragalla
What are u exactly trying to do? what book you are studying and what examples you are using is not that relevant here. You have written a html file and in the form tag you have configured the action attribute and still you are facing problem. is it? or what exactly is your problem? if possible

Re: SSL Best Practices

2013-03-19 Thread Mark Thomas
On 19/03/2013 15:28, Jeffrey D. Fisher wrote: Could we dispense with the ego-clanking, please? Really? Keep in mind that EVERYONE has the same problem regardless of your IQ level: for everything you know there are three to five things you do not know and at least one that you do not know you

RE: problems faced in deploying servlet

2013-03-19 Thread Leo Donahue - RDSA IT
-Original Message- From: Satya Priya Das [mailto:am_sp...@yahoo.co.in] Subject: problems faced in deploying servlet I am a retd. software person,worked with autocoder,COBOL,assembler,c, and now trying to learn java, I am using Java for the Web with Servlets,jsp,and EJB by Budi Kurniwan,

Re: Deadlock when using jetty 8 JDBCSessionManager and Tomcat 7 JDBC Connector

2013-03-19 Thread Colin Ingarfield
First of all, thank you this detailed analysis of the situation. Based on the bug report I suspected the driver, but it now seems clear it was (at least part of) the problem. re: Why was it necessary for the abandoned connection thread to act? I'm not sure.. I looked into the JDBC Session manager

Upgrading Tomcat in the customer base

2013-03-19 Thread Patrick Flaherty
Hi, We deploy tomcat in our own folder (c:\rsi_tc\tomcat) on a WIndows machine as a service. We use the service.bat to install as a service. Historically to update tomcat we would remove the current version and install the new version. There is rub in all this which we have to change the

Tomcat jdbc-pool not closing statements

2013-03-19 Thread Bertrand Guay-Paquet
Hello, I'm using Tomcat 7.0.34 via TomEE 1.5.1 with MySQL. I noticed a memory leak in my web application which uses jdbc connection pooling with Tomcat's jdbc-pool. The com.mysql.jdbc.JDBC4Connection class has a field named openStatements which holds, as you can imagine, open sql

Re: Deadlock when using jetty 8 JDBCSessionManager and Tomcat 7 JDBC Connector

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Colin, On 3/19/13 2:29 PM, Colin Ingarfield wrote: First of all, thank you this detailed analysis of the situation. Based on the bug report I suspected the driver, but it now seems clear it was (at least part of) the problem. re: Why was it

Re: problems faced in deploying servlet

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 3/19/13 12:15 PM, Leo Donahue - RDSA IT wrote: -Original Message- From: Satya Priya Das [mailto:am_sp...@yahoo.co.in] Subject: problems faced in deploying servlet I am a retd. software person,worked with

Re: help on websockets

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Muralidhar, Please don't top-post. See my response below. On 3/17/13 4:44 PM, Muralidhar Yaragalla wrote: On Mon, Mar 18, 2013 at 2:00 AM, Mark Thomas ma...@apache.org wrote: On 17/03/2013 20:17, Muralidhar Yaragalla wrote: Hi I have

Re: Tomcat jdbc-pool not closing statements

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bertrand, On 3/19/13 3:48 PM, Bertrand Guay-Paquet wrote: I'm using Tomcat 7.0.34 via TomEE 1.5.1 with MySQL. I noticed a memory leak in my web application which uses jdbc connection pooling with Tomcat's jdbc-pool. The

Re: Tomcat jdbc-pool not closing statements

2013-03-19 Thread Bertrand Guay-Paquet
Can you post some example of your code? Can you also post your pool's configuration? Here is my configuration from tomee.xml. I'm not 100% sure how it maps to Tomcat values though. Resource id=jdbc/my-db type=javax.sql.DataSource JdbcDriver=com.mysql.jdbc.Driver

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
Hi Christopher, The following is the link in tomcat7 docs http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html in this under the application development section there is a pointer to server side code which shows an example implementation of chat application with annotations. You can have

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
sorry, I use gmail and i am not sure how to avoid top-posting. On Wed, Mar 20, 2013 at 1:37 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Muralidhar, Please don't top-post. See my response below. On 3/17/13 4:44 PM,

Re: help on websockets

2013-03-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Muralidhar, On 3/19/13 4:43 PM, Muralidhar Yaragalla wrote: Hi Christopher, The following is the link in tomcat7 docs http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html in this under the application development section there is a

RE: help on websockets

2013-03-19 Thread Caldarale, Charles R
From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: Re: help on websockets sorry, I use gmail and i am not sure how to avoid top-posting. Write your response _below_ the point you are replying to. (This has nothing to do with gmail.) - Chuck THIS COMMUNICATION MAY

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
Hi Christopher, I dont want to go for those examples which might be in effect from tomcat8. I am fine with tomcat7 and examples that comes with the distribution. I am using websockets but i have centralized that code so when websocket spec changes and when tomcat provides implementation for

Re: help on websockets

2013-03-19 Thread Muralidhar Yaragalla
On Wed, Mar 20, 2013 at 2:19 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: Re: help on websockets sorry, I use gmail and i am not sure how to avoid top-posting. Write your response _below_ the point you

Re: Tomcat jdbc-pool not closing statements

2013-03-19 Thread Felix Schumacher
Bertrand Guay-Paquet ber...@step.polymtl.ca schrieb: Hello, I'm using Tomcat 7.0.34 via TomEE 1.5.1 with MySQL. I noticed a memory leak in my web application which uses jdbc connection pooling with Tomcat's jdbc-pool. The com.mysql.jdbc.JDBC4Connection class has a field named

Re: Tomcat jdbc-pool not closing statements

2013-03-19 Thread Bertrand Guay-Paquet
On 19/03/2013 5:05 PM, Felix Schumacher wrote: Have you looked at http://grokbase.com/t/openejb/users/13135d2a0v/jdbc-connection-pool-memory-leak ? It seems like your problem. Regards Felix Indeed, this is extremely similar to my issue. Thanks for sharing this. It does seem however like the

Manager App not working with Windows authentication enabled

2013-03-19 Thread Harris Mark R
Environment: IIS 7.5 Tomcat 7.037 AJP/1.3 connector (redirector.dll) v 1.2 Java 7 We have a requirement for a new intranet application that it use Windows authentication. We have this working in our new application. We do have IIS, the connector and Tomcat serving up the application with no

Re: help on websockets

2013-03-19 Thread André Warnier
Muralidhar Yaragalla wrote: On Wed, Mar 20, 2013 at 2:19 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: Re: help on websockets sorry, I use gmail and i am not sure how to avoid top-posting. Write your response

RE: small question on Connection

2013-03-19 Thread Caldarale, Charles R
From: Muralidhar Yaragalla [mailto:java.yaraga...@gmail.com] Subject: small question on Connection I am using tomcat connection pool. When using datasource (jdbc) do i have to manually close the connection using Connection.close(); Short answer: yes. Long (and much more comprehensive)

Re: Manager App not working with Windows authentication enabled

2013-03-19 Thread André Warnier
Harris Mark R wrote: Environment: IIS 7.5 Tomcat 7.037 AJP/1.3 connector (redirector.dll) v 1.2 Java 7 We have a requirement for a new intranet application that it use Windows authentication. We have this working in our new application. We do have IIS, the connector and Tomcat serving up

Re: Deadlock when using jetty 8 JDBCSessionManager and Tomcat 7 JDBC Connector

2013-03-19 Thread Howard W. Smith, Jr.
On Tue, Mar 12, 2013 at 5:51 PM, Mark Thomas ma...@apache.org wrote: On 12/03/2013 21:47, Colin Ingarfield wrote: Hello, We're using Jetty 8.1.3.v20120416 w/ JDBCSessionManager as our application server with Tomcat 7's JDBC Connection pool 7.0.28. We've run this particular

RE: Manager App not working with Windows authentication enabled

2013-03-19 Thread Harris Mark R
Sorry, guess I was not clear enough. We are using Microsoft's IIS to front-end Tomcat, not the Apache HTTP server. Apache HTTP server is not an option for our environment. We would prefer to use the Windows authenticated user passed to Tomcat by IIS, but are open to anything that works

Re: problems faced in deploying servlet

2013-03-19 Thread Mark Eggers
On 3/19/2013 1:05 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Leo, On 3/19/13 12:15 PM, Leo Donahue - RDSA IT wrote: -Original Message- From: Satya Priya Das [mailto:am_sp...@yahoo.co.in] Subject: problems faced in deploying servlet I am a retd.

RE: Upgrading Tomcat in the customer base

2013-03-19 Thread Martin Gainty
Patrick if client and tc-server are on same domain..how about implementing Windows Authentication in TC? When client authenticates to the Domain all of the TC shares are restored (including TC share) http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html HTHMartin

Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-19 Thread Saurabh Agrawal
Hi, I have tried to find the simplest of answer from so many tomcat forums but have not got concrete answer to my query. The query I have is around management of multiple HTTP requests triggering from same browser one after other and being served by Tomcat container. Let me take an example.

RE: Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-19 Thread Caldarale, Charles R
From: Saurabh Agrawal [mailto:sagra...@sapient.com] Subject: Tomcat Behavior on Multiple HTTP requests from same browser Let's say I hit http://localhost:9001/homepage.html. Upon hitting the URL, tomcat will assign one of the worker threads (say Thread 1) from the pool to the HTTP request

Re: Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-19 Thread Nick Williams
On Mar 19, 2013, at 8:37 PM, Caldarale, Charles R wrote: From: Saurabh Agrawal [mailto:sagra...@sapient.com] Subject: Tomcat Behavior on Multiple HTTP requests from same browser Let's say I hit http://localhost:9001/homepage.html. Upon hitting the URL, tomcat will assign one of the

RE: Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-19 Thread Saurabh Agrawal
Hi chuck, We have not set the keep alive explicitly in tomcat's server.xml. Howeverm when I print the thread id for all requests from same browser, it prints the same thread it. It gives me a feeling that all HTTP requests are holding worker thread of tomcat if they originate from same

RE: Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-19 Thread Saurabh Agrawal
Hi Nick, We currently have 8 tomcat nodes with each node configured to have 1000 maxThreads. We did a round of performance test for 8000 concurrent users and the observation was that the number of active executor threads were far less. My understanding was if 8000 concurrent users hit the site

Re: Tomcat Behavior on Multiple HTTP requests from same browser

2013-03-19 Thread Nick Williams
On Mar 19, 2013, at 8:49 PM, Saurabh Agrawal wrote: Hi Nick, We currently have 8 tomcat nodes with each node configured to have 1000 maxThreads. We did a round of performance test for 8000 concurrent users and the observation was that the number of active executor threads were far less.

Re: OCSP with TOMCAT 7

2013-03-19 Thread Amit A
I need to enable OCSP on my application which is running Tomcat 7.0.29. Looked up the documentation but did not find quite much : http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html 1. Is OCSP with just tomcat actually possible? Do we need a external module/software? 2. Has anyone