Re: Tomcat and PostgreeSQL

2013-06-06 Thread Lutischán Ferenc
Hi, on 2013.06.06. 22:45, Hector Del Mestre wrote: Well, now the fatal question: Tomcat need any special configuration to use PostgreSQL? I have some ideas: - The jdbc driver must be in the {Tomcat home}/lib. - If you use the tomcat pool manager append the testOnBorrow="true" to the Resource

Re: SlowQueryReport

2013-06-06 Thread Lutischán Ferenc
(Map.Entry entry : map.entrySet()) { result.append(entry.getKey()).append('\t').append(entry.getValue().toString()); } } return result.toString(); } } Thanks, Ferenc On 2013.06.05. 16:54, Daniel Mikusa wrote: On Jun 5, 2013, at 4:10 AM, Lutischán Ferenc wrote: Dear Daniel,

Re: SlowQueryReport

2013-06-05 Thread Lutischán Ferenc
; testOnBorrow="true"/> There is my java code: Map map = SlowQueryReportJmx.getPoolStats("java:comp/env/jdbc/" + poolName); I tried the config with jdbcInterceptors="ConnectionState;SlowQueryReport(threshold=1000)", but there is no messages in the Tomca

SlowQueryReport

2013-06-04 Thread Lutischán Ferenc
Dear Users, Please help to me: How to get SlowQueryReport statistics? I tried: Map map = SlowQueryReport.getPoolStats("java:comp/env/jdbc/xxx"); and Map map = SlowQueryReport.getPoolStats("xxx"); The result in both case was a null map. Thanks, Ferenc ---

Re: backslash URL encoding

2013-05-09 Thread Lutischán Ferenc
r URL. This has security implications though. Please read the following link for CVE-2007-0450. https://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10 <https://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10> Dan On May 8, 2013, at 9:09 AM, Lutischán Ferenc

Re: Tomcat JDBC with PostgreSQL

2013-05-08 Thread Lutischán Ferenc
Thanks Dan, I would like to test it more, but I think it works. 2013.05.08. 15:01 keltezéssel, Daniel Mikusa írta: On May 8, 2013, at 8:54 AM, Lutischán Ferenc wrote: Dear Users, Tomcat 7.0.39. I have the following configuration in META-INF/context.xml: The situation: - The

Re: backslash URL encoding

2013-05-08 Thread Lutischán Ferenc
ilter /* Regards, Ferenc 2013.05.08. 14:53 keltezéssel, Daniel Mikusa írta: On May 8, 2013, at 8:46 AM, Lutischán Ferenc wrote: Dear Users, Tomcat 7.0.39. I have problem with the following url in firefox 20: http://dictzone.com/english-german-dictionary/a\ (it resulted in the http

Tomcat JDBC with PostgreSQL

2013-05-08 Thread Lutischán Ferenc
Dear Users, Tomcat 7.0.39. I have the following configuration in META-INF/context.xml: driverClassName="org.postgresql.Driver" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" initialSize="2" maxIdle="20" maxActive="20" maxWait="5000" password="" type="javax.sql.DataSource" u

backslash URL encoding

2013-05-08 Thread Lutischán Ferenc
Dear Users, Tomcat 7.0.39. I have problem with the following url in firefox 20: http://dictzone.com/english-german-dictionary/a\ (it resulted in the http://dictzone.com/english-german-dictionary/a%5C request). It results is an emtpy page. This request don't arrive my servelt / filter codes.

Re: Tomcat 7.0.23 problem

2011-12-17 Thread Lutischán Ferenc
Dear Pid, Thanks for suggestion. It's work! Regrards, Ferenc Dear Users, I have a webapplication. I use it with tomcat 7.0.22, java 1.7.02. When I have upgraded it to 7.0.23, the starting process is paused on the line: "INFO: Deploying web application directory /usr/local/tomcat1/webapps/R

Tomcat 7.0.23 problem

2011-12-16 Thread Lutischán Ferenc
Dear Users, I have a webapplication. I use it with tomcat 7.0.22, java 1.7.02. When I have upgraded it to 7.0.23, the starting process is paused on the line: "INFO: Deploying web application directory /usr/local/tomcat1/webapps/ROOT" There are not error messages. Can you suggest something? R