Re: JDBC Fails to connect to SQL Server

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Aniket, On 1/30/15 10:01 AM, Aniket Bhoi wrote: I have Apache Solr hosted on Tomcat 6. There have been no changes to the code on Tomcat whatsoever.However for the last few days I now see this error in the Log files: SEVERE: Full Import

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Felix Schumacher
Am 30.01.2015 um 18:19 schrieb Robert Anderson: Every day we are getting deadlocks like that: Found one Java-level deadlock: = ajp-apr-8009-exec-13 ^ 30/01/2015 - 09:39:58 - DB:DATASOURCE(java:/comp/env/jdbc/cacheapp): waiting to lock monitor 0x1504e6d8

Re: org.apache.catalina.startup.Catalina.process(args)... method in Tomcat 6 but not 7 nor 8

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Terry, On 1/22/15 11:52 PM, Terry Medearis wrote: So, I understand that the Tomat class has been introduced, but is there anything in the Catalina class that remains that can be utilized in place of the .process method? Sorry, I'm not en

Re: Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rory, On 1/30/15 11:01 AM, Rory Kelly wrote: I apologise in advance if the formatting is absolutely terrible. Actually, it was totally readable ;) Are you using cookies for session-tracking? Can you watch the HTTP conversation to see what's

tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Every day we are getting deadlocks like that: Found one Java-level deadlock: = ajp-apr-8009-exec-13 ^ 30/01/2015 - 09:39:58 - DB:DATASOURCE(java:/comp/env/jdbc/cacheapp): waiting to lock monitor 0x1504e6d8 (object 0x00071ba001d0, a

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 1/30/15 12:19 PM, Robert Anderson wrote: Every day we are getting deadlocks like that: Found one Java-level deadlock: = ajp-apr-8009-exec-13 ^ 30/01/2015 - 09:39:58 -

Re: FIPS Mode enabling on Tomcat 7.00.057

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Geet, On 1/30/15 1:22 AM, Geett Chanddra Singha wrote: Steps followed to build FIPS tar zxf openssl-1.0.1l.tar.gz cd openssl-1.0.1l ./config --prefix=/usr/local --with-fipsdir=/usr/local/ssl/fips-2.0 make make install Note: I

Re: JDBC Fails to connect to SQL Server

2015-01-30 Thread Jeff Kohut
On Fri, Jan 30, 2015 at 9:01 AM, Aniket Bhoi aniket.b...@gmail.com wrote: Hi, I have Apache Solr hosted on Tomcat 6. There have been no changes to the code on Tomcat whatsoever.However for the last few days I now see this error in the Log files: SEVERE: Full Import failed Throwable

RE: Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Rory Kelly
Hi Chris, I apologise in advance if the formatting is absolutely terrible. Are you using cookies for session-tracking? Can you watch the HTTP conversation to see what's being sent back and forth during that workflow? LiveHttpHeaders is great for Firefox, and these days Chrome, Firefox, and IE

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Thanks, Chris. In general, I would expect validationInterval=0 to disable validation, but the documentation does not say anything about a zero value. Is it possible that you are /constantly/ validating? If you change that number to something higher (in ms: maybe 1 for 10s) you will reduce the

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Sorry, [1] https://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html 2015-01-30 15:15 GMT-03:00 Robert Anderson ranom...@gmail.com: Filip, however, disabling the pool cleaner it should yield better results. The documention[1] says: This value should not be set under 1 second Isn't

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Felix Schumacher
Am 30.01.2015 um 18:44 schrieb Robert Anderson: Could you post a full stacktrace, or threaddump? ajp-apr-8009-exec-13 ^ 30/01/2015 - 09:39:58 - DB:DATASOURCE(java:/comp/env/jdbc/cacheapp) daemon prio=10 tid=0x13bb nid=0x7a6d waiting for monitor entry [0x5125b000]

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
Looking at the locks that are involved in the dead lock, it's all in the intersys traces. Furthermore, it seems as intersys may already be doing pooling inside the driver. If that is the case, you have two options 1. disable pooling in intersys OR 2. don't use tomcat's jdbc pool since intersys

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Great, Filip! Returns true if the pool sweeper is enabled for the connection pool. The pool sweeper is enabled if any settings that require async intervention in the pool are turned on boolean result = getTimeBetweenEvictionRunsMillis()0; result = result (isRemoveAbandoned()

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Filip, however, disabling the pool cleaner it should yield better results. The documention[1] says: This value should not be set under 1 second Isn't true? 2015-01-30 15:07 GMT-03:00 Filip Hanik fi...@hanik.com: Looking at the locks that are involved in the dead lock, it's all in the

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Could you post a full stacktrace, or threaddump? ajp-apr-8009-exec-13 ^ 30/01/2015 - 09:39:58 - DB:DATASOURCE(java:/comp/env/jdbc/cacheapp) daemon prio=10 tid=0x13bb nid=0x7a6d waiting for monitor entry [0x5125b000] java.lang.Thread.State: BLOCKED (on object monitor)

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Ok, Filip! Thanks, Robert 2015-01-30 16:31 GMT-03:00 Filip Hanik fi...@hanik.com: Robert, kindly let us know if disabling the pool cleaner does resolve your dead lock Filip On Fri, Jan 30, 2015 at 12:25 PM, Robert Anderson ranom...@gmail.com wrote: Great, Filip! Returns true if

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
Disable the pool cleaner timeBetweenEvictionRunsMillis=0

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
Robert, it should say, if you set a positive value, the value should not be less than 1000ms. Otherwise you are hammering the system with eviction checks. Setting the value to 0, disables the check all together. There are other ways to disable the same check by setting other flags, 918 @Override

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Filip, timeBetweenEvictionRunsMillis=0 does not disable PoolCleaner [1]. if (sleepTime = 0) { log.warn(Database connection pool evicter thread interval is set to 0, defaulting to 30 seconds); this.sleepTime = 1000 * 30; } else if (sleepTime

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
Are you seeing that message, cause it seems to be a defensive check, but wouldn't happen due to 509 public void initializePoolCleaner(PoolConfiguration properties) { 510 //if the evictor thread is supposed to run, start it now 511 if (properties. isPoolSweeperEnabled()) { 512 poolCleaner = new

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
Robert, kindly let us know if disabling the pool cleaner does resolve your dead lock Filip On Fri, Jan 30, 2015 at 12:25 PM, Robert Anderson ranom...@gmail.com wrote: Great, Filip! Returns true if the pool sweeper is enabled for the connection pool. The pool sweeper is enabled if any

Exception page after installation of Tomcat 7.0.54

2015-01-30 Thread Rajesh Biswas
Dear Experts, I have installed Apache Tomcat 7.0.54, after installation when I open https://host_name:port_number I am getting below exception org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available

RE: JDBC authentication problem

2015-01-30 Thread Luc DALLEMANE
Thanks for the reply, it is the JDBCRealm not the data source. I have set this password for test only but it will be changed when everything will be ok and in production . (But didn't saw i had paste it ...) -Message d'origine- De : Konstantin Kolinko [mailto:knst.koli...@gmail.com]

Re: Tomcat sending 411 Length Required due to Chunked Transfer Encoding

2015-01-30 Thread Jeff Kohut
Thank you for pointing out my error in assuming that it was Tomcat's fault. I have forwarded the issue to the application vendor to see if they can fix. I appreciate your time in responding to my question as well as giving me additional information with which to attempt to debug and/or correct the

Re: mod_jk and session stickiness

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rainer, On 1/30/15 5:57 AM, Rainer Jung wrote: Am 30.01.2015 um 03:06 schrieb Christopher Schultz: On 7/23/14 5:14 PM, Christopher Schultz wrote: Rainer, On 7/23/14, 4:10 PM, Rainer Jung wrote: Am 23.07.2014 um 21:03 schrieb Christopher

Re: Problem with mod_jk JKStatus: where is the worker state property?

2015-01-30 Thread André Warnier
Rainer Jung wrote: ... state is only printed of the worker is a member of a load balancer. Otherwise there is no such thing as state. It is good practise to wrap even a single worker in a load balancer because of its enhanced failure detection and reporting. Even if you don't have a second

Re: JDBC authentication problem

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Luc, On 1/30/15 9:05 AM, Luc DALLEMANE wrote: Thanks for the reply, it is the JDBCRealm not the data source. Your Resource configuration is therefore ignored. The JDBCRealm should really not be used at all. Switch to DataSourceRealm. If you

Re: JDBC authentication problem

2015-01-30 Thread Konstantin Kolinko
2015-01-30 16:45 GMT+03:00 Luc DALLEMANE ldallem...@alaloop.com: Hi, I'm facing a problem with my web application. I'm using Tomcat 7.0.56, Java 1.8, Postgres 9.4 and Debian 7. The application is configured as followed : The web server is located in a DMZ. The database server is

Re: Tomcat sending 411 Length Required due to Chunked Transfer Encoding

2015-01-30 Thread Jeff Kohut
Thank you for pointing out my error in assuming that it was Tomcat's fault. I have forwarded the issue to the application vendor to see if they can fix. I appreciate your time in responding to my question. I will consider this questions closed. On Thu, Jan 29, 2015 at 5:02 PM, Mark Thomas

Re: Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rory, On 1/30/15 6:08 AM, Rory Kelly wrote: I’m having a lot of trouble with maintaining a session in a Virtual Host environment on 8.0.9. I installed Tomcat through apt-get on an Ubuntu 14.04 server My application is a JRuby padrino bundled

Re: How-to disable SSL V3 on Tomcat 6.0.18.0

2015-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jason, On 1/30/15 4:32 AM, Jason Y wrote: Please refer to https://access.redhat.com/solutions/1232233 This link is /slightly/ out of date, in that it is missing more-recent information (i.e. support for TLSv1.1 and TLSv1.2 in tcnative versions

RE: JDBC authentication problem

2015-01-30 Thread Luc DALLEMANE
Ok, I'm going to try this. Hope this will help to solve my problem. Regards Luc D. -Message d'origine- De : Christopher Schultz [mailto:ch...@christopherschultz.net] Envoyé : vendredi 30 janvier 2015 15:24 À : Tomcat Users List Objet : Re: JDBC authentication problem -BEGIN PGP

JDBC Fails to connect to SQL Server

2015-01-30 Thread Aniket Bhoi
Hi, I have Apache Solr hosted on Tomcat 6. There have been no changes to the code on Tomcat whatsoever.However for the last few days I now see this error in the Log files: SEVERE: Full Import failed Throwable occurred: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to

Re: How-to disable SSL V3 on Tomcat 6.0.18.0

2015-01-30 Thread Jason Y
Hi Jammy, Please refer to https://access.redhat.com/solutions/1232233 When using Tomcat with the JSSE connectors, the SSL protocol to be used can be configured via $TOMCAT_HOME/conf/server.xml. The following example shows how the sslProtocol in an https connector is configured. Tomcat 5 and 6

Re: mod_jk and session stickiness

2015-01-30 Thread Rainer Jung
Am 30.01.2015 um 03:06 schrieb Christopher Schultz: On 7/23/14 5:14 PM, Christopher Schultz wrote: Rainer, On 7/23/14, 4:10 PM, Rainer Jung wrote: Am 23.07.2014 um 21:03 schrieb Christopher Schultz: On 7/23/14, 1:49 PM, Rainer Jung wrote: The other case, a request with an invalid

JDBC authentication problem

2015-01-30 Thread Luc DALLEMANE
Hi, I'm facing a problem with my web application. I'm using Tomcat 7.0.56, Java 1.8, Postgres 9.4 and Debian 7. The application is configured as followed : The web server is located in a DMZ. The database server is located in our LAN. To communicate with each other, a firewall has been

RE: Problem with mod_jk JKStatus: where is the worker state property?

2015-01-30 Thread Lorenzo Maurizi - C.S.I.A. UniMC
Hi Lorenzo, Am 30.01.2015 um 12:22 schrieb Lorenzo Maurizi - C.S.I.A. UniMC: Dear All, I need help on an issue I'm facing. I've tried to find an answer with the online documentation but I didn't succeed. I am trying to fix a munin plugin for monitoring the mod_jk ajp13 connector for

Re: Problem with mod_jk JKStatus: where is the worker state property?

2015-01-30 Thread Rainer Jung
Hi Lorenzo, Am 30.01.2015 um 12:22 schrieb Lorenzo Maurizi - C.S.I.A. UniMC: Dear All, I need help on an issue I'm facing. I've tried to find an answer with the online documentation but I didn't succeed. I am trying to fix a munin plugin for monitoring the mod_jk ajp13 connector for apache.

Session being dropped in Virtual Host in 8.0.9

2015-01-30 Thread Rory Kelly
Hi, I’m having a lot of trouble with maintaining a session in a Virtual Host environment on 8.0.9. I installed Tomcat through apt-get on an Ubuntu 14.04 server My application is a JRuby padrino bundled with Warbler, with 2 steps for logging in, a login page and a challenge page. The session

Problem with mod_jk JKStatus: where is the worker state property?

2015-01-30 Thread Lorenzo Maurizi - C.S.I.A. UniMC
Dear All, I need help on an issue I'm facing. I've tried to find an answer with the online documentation but I didn't succeed. I am trying to fix a munin plugin for monitoring the mod_jk ajp13 connector for apache. The mod_jk is version 1.2.37 (the default version for the Debian Wheezy package).