Re: JVM keystores and CA

2018-10-16 Thread Jose María Zaragoza
Hi El mar., 16 oct. 2018 a las 1:49, Igor Cicimov () escribió: > > Hi all, > > I just want to clarify something that I've been seeing behave differently > on various Java versions during the years. In case we have the following > setting: > > -Djavax.net.ssl.trustStore=/keystore/truststore.jks" >

Re: Alias name does not identify a key entry

2018-06-26 Thread Jose María Zaragoza
El mar., 26 jun. 2018 a las 17:03, Cybulski, Adam M () escribió: > > > Hello, I'm using Tomcat 8.5.4, on a server 2008R2 machine, and I'm unable to > start the SSL connector. > > My connector syntax is as follows: > > connectionTimeout="2" >

Re: Tomcat SSL issue

2017-10-09 Thread Jose María Zaragoza
2017-10-09 17:01 GMT+02:00 John Ellis : > I posted questions about this a couple of weeks ago I think it was. I have > been trying to get Tomcat running on a secure port with a valid SSL > certificate. We finally got version 9.0.0.M20 setup successfully on port > 9443

Re: 2 Way SSL integration with Webservices - Inbound connection not trusted

2017-08-16 Thread Jose María Zaragoza
Hi: 2017-08-16 6:59 GMT+02:00 Vinoth Raja : > Hi Chris, > > In the above conversation, the server presents the list of acceptable > client certificates to the client. Does that happen for you? > > [ Yes . It prints the list of acceptable certificate when >

Re: Error 404 - The requested resource is not available

2017-01-11 Thread Jose María Zaragoza
2017-01-11 22:49 GMT+01:00 fonsin2008 . : > Hi all! > > First, I need to say that I'm new(ignorant) with Tomcat. One of our > systems is written with tomcat, but today something went wrong and the > following error appears on the webpage: > > --Estado HTTP 404 -

Re: How do deal with 'sslv3 alert handshake failure'?

2016-09-27 Thread Jose María Zaragoza
2016-09-27 16:29 GMT+02:00 Persson, Magnus (SE-TLX) : > Hi, > > We started out with tomcat 7.0.35 and got that running with our REST > servlet. > > When we upgraded to tomcat 7.0.63 we got this error when we tried to > create a new session: > > { > "message":

Re: TLS 1.2 Handshake on Tomcat 7.0.39 Getting Internal Error: Key format must be RAW

2016-09-21 Thread Jose María Zaragoza
2016-09-21 19:16 GMT+02:00 André Warnier (tomcat) : > On 21.09.2016 18:49, Christopher Schultz wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Ron, >> >> On 9/21/16 11:58 AM, Roskens, Ronald wrote: -Original Message- From: Christopher

Re: [jdbc-pool] Validation query leaves transaction open

2016-08-12 Thread Jose María Zaragoza
or executing validationQuery sentence, Tomcat doesn't use autocommit = true setting > On Fri, Aug 12, 2016 at 4:13 AM Jose María Zaragoza <demablo...@gmail.com> > wrote: > >> 2016-08-11 21:33 GMT+02:00 John Huss <johnth...@gmail.com>: >> > I have verified that in versi

Re: [jdbc-pool] Validation query leaves transaction open

2016-08-12 Thread Jose María Zaragoza
2016-08-11 21:33 GMT+02:00 John Huss : > I have verified that in version 8.0.36 of tomcat jdbc the validation query > functionality does not commit the transaction it starts in order to run the > validation query, which can cause an open transaction for a very long time >

Re: Increased memory consumption due to url encoding

2016-08-11 Thread Jose María Zaragoza
2016-08-10 14:29 GMT+02:00 Lazar Kirchev : > Hello Christopher, > > I tried with 32 MB and even 24 MB heap and the CPU usage and response time > remained the almost the same (the difference is negligible) as with 1 GB > heap. The cumulative allocated memory for the

Re: jdbc check available database

2016-08-09 Thread Jose María Zaragoza
2016-08-09 10:52 GMT+02:00 Andrea Galli : > Thank you Christoph , but in this how-to there isn't any example for SQL > Server. This is my configuration (context.xml) for a SQL Server connection pool You need a SQL Server JDBC driver > > -Messaggio

Re: Multiple SSL config with single IP on Tomat 8.5.4

2016-08-04 Thread Jose María Zaragoza
2016-08-04 17:17 GMT+02:00 Kent Smotherman : > From: Mark Thomas > To: Tomcat Users List > Cc: > Date: Wed, 3 Aug 2016 15:49:12 -0700 > Subject: Re: Multiple SSL config with single IP on Tomcat 8.5.4 > On 03/08/2016 15:05, Kent

Re: Multiple domian names one web site different content

2016-03-04 Thread Jose María Zaragoza
Maybe my question does't have to do with current thread ( an probably doesn't have any sense at all) but : would be possible to define "VirtualHost" according the destination port ? I know that VirtualHost diferent domain name, but i want to keep the same domain name and to define 2 connectors ,

Re: Cors-Filter

2016-02-26 Thread Jose María Zaragoza
2016-02-26 9:08 GMT+01:00 RICHARD DOUST : > My question is, why doesn't it work, or, how can I debug it? Are you tested to allow to all origins (default option) ? Only for testing purpose, I mean: cors.allowed.origins * At first sight, your settings should work, but ... > I

Re: Detecting Expired Session via JavaScript?

2015-12-01 Thread Jose María Zaragoza
2015-12-01 18:30 GMT+01:00 Jerry Malcolm : > I'm looking for a way to detect that the current session has expired (or > logged out via another tab on the browser). I know I could just issue dummy > requests to the server and see if a login page comes back. But issuing >

Re: Detecting Expired Session via JavaScript?

2015-12-01 Thread Jose María Zaragoza
2015-12-01 19:17 GMT+01:00 Jose María Zaragoza <demablo...@gmail.com>: > 2015-12-01 18:30 GMT+01:00 Jerry Malcolm <techst...@malcolms.com>: >> I'm looking for a way to detect that the current session has expired (or >> logged out via another tab on the browser). I kn

Re: [PROPOSAL] Tomcat Webinar series

2015-11-12 Thread Jose María Zaragoza
2015-11-12 23:29 GMT+01:00 Mark Thomas : > All, > > I've been wondering if there would be any interest in a Tomcat Webinar > series. I'm thinking ~10 minutes of presentation followed by Q on > topics of interest to this community with the webinars taking place > every 1/2/4 weeks

Re: Question for posgresq, and jdbc.jar placement.

2015-10-22 Thread Jose María Zaragoza
2015-10-22 18:26 GMT+02:00 Christopher Schultz <ch...@christopherschultz.net>: > Ognjen, > > On 10/22/15 9:10 AM, Ognjen Blagojevic wrote: >> Jose & Chris, >> >> On 21.10.2015 20:47, Christopher Schultz wrote: >>> Jose, >>> >&g

Re: Question for posgresq, and jdbc.jar placement.

2015-10-21 Thread Jose María Zaragoza
2015-10-21 13:19 GMT+02:00 Andrew Davis : > Ok, I'm embarrassed. > > I've got a UBUNTU (GUI included) install of Tomcat7 installed from command > line. > > Inside my machine I have what looks like two locations that play a key > role. > > OPTION 1 for the jdbc.jar

Re: Multiple JSESSIONID cookies being presented.

2015-09-09 Thread Jose María Zaragoza
che.org> >> Subject: RE: Multiple JSESSIONID cookies being presented. >> >> > From: Jose María Zaragoza [mailto:demablo...@gmail.com] >> > Subject: Re: Multiple JSESSIONID cookies being presented. >> >> > > Thanks for the clarification of what's supposed

Re: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-08 Thread Jose María Zaragoza
2015-09-08 21:22 GMT+02:00 Brian : > Hi, > > > > First of all, I'm using: > > - Tomcat 7.0.50 > > - Nginx 1.4.7 > > > > When I use Tomcat alone, ServletRequest.getRemoteHost() > (http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getRe > moteHost() >

Re: ServletRequest.getRemoteHost() not working when Tomcat is behind Nginx (Nginx as a reverse proxy)

2015-09-08 Thread Jose María Zaragoza
there must be a way to pass > it to Tomcat the same way the IP address can be passed! But for some reason I > can't find it and I have spent quite some time looking for it. > > Thanks a lot! > > >> -Original Message- >> From: Jose María Zaragoza [mailto:demablo...@gmail

Re: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Jose María Zaragoza
2015-09-08 22:57 GMT+02:00 Jeffrey Janner <jeffrey.jan...@polydyne.com>: >> -Original Message----- >> From: Jose María Zaragoza [mailto:demablo...@gmail.com] >> Sent: Tuesday, September 08, 2015 9:08 AM >> To: Tomcat Users List <users@tomcat.apache.org>

Re: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Jose María Zaragoza
2015-09-08 15:51 GMT+02:00 Jeffrey Janner : >> -Original Message- >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Sent: Friday, September 04, 2015 12:46 PM >> To: Tomcat Users List >> Subject: Re: Multiple

Re: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Jose María Zaragoza
2015-09-08 15:51 GMT+02:00 Jeffrey Janner : >> -Original Message- >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Sent: Friday, September 04, 2015 12:46 PM >> To: Tomcat Users List >> Subject: Re: Multiple

Re: validationQuery doesn't work (DBCP 7.0.59)

2015-06-23 Thread Jose María Zaragoza
2015-06-15 17:59 GMT+02:00 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, It looks like your issue is mostly solved... On 6/15/15 4:42 AM, Jose María Zaragoza wrote: I'm using Tomcat 7.0.59 and PostgreSQL JDBC driver 9.4-1201-jdbc4

Re: validationQuery doesn't work (DBCP 7.0.59)

2015-06-15 Thread Jose María Zaragoza
2015-06-15 11:39 GMT+02:00 Mark Thomas ma...@apache.org: On 15/06/2015 09:42, Jose María Zaragoza wrote: Hello: I'm using Tomcat 7.0.59 and PostgreSQL JDBC driver 9.4-1201-jdbc4 The context.xml settings are Resource auth=Container type=javax.sql.DataSource factory

Re: validationQuery doesn't work (DBCP 7.0.59)

2015-06-15 Thread Jose María Zaragoza
2015-06-15 13:09 GMT+02:00 Mark Thomas ma...@apache.org: On 15/06/2015 11:39, Jose María Zaragoza wrote: 2015-06-15 11:39 GMT+02:00 Mark Thomas ma...@apache.org: On 15/06/2015 09:42, Jose María Zaragoza wrote: Hello: I'm using Tomcat 7.0.59 and PostgreSQL JDBC driver 9.4-1201-jdbc4

Re: validationQuery doesn't work (DBCP 7.0.59)

2015-06-15 Thread Jose María Zaragoza
2015-06-15 16:35 GMT+02:00 Daniel Mikusa dmik...@pivotal.io: On Mon, Jun 15, 2015 at 4:42 AM, Jose María Zaragoza demablo...@gmail.com wrote: Hello: I'm using Tomcat 7.0.59 and PostgreSQL JDBC driver 9.4-1201-jdbc4 The context.xml settings are Resource auth=Container type

validationQuery doesn't work (DBCP 7.0.59)

2015-06-15 Thread Jose María Zaragoza
Hello: I'm using Tomcat 7.0.59 and PostgreSQL JDBC driver 9.4-1201-jdbc4 The context.xml settings are Resource auth=Container type=javax.sql.DataSource factory=org.apache.tomcat.jdbc.pool.DataSourceFactory driverClassName=org.postgresql.Driver

Re: [SECURITY] CVE-2014-0230: Apache Tomcat DoS

2015-05-06 Thread Jose María Zaragoza
2015-05-06 0:53 GMT+02:00 Mark Thomas ma...@apache.org: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 CVE-2014-0230 Denial of Service Severity: Low Vendor: The Apache Software Foundation Versions Affected: - - Apache Tomcat 8.0.0-RC1 to 8.0.8 - - Apache Tomcat 7.0.0 to 7.0.54 - -

Re: [SECURITY] CVE-2014-0230: Apache Tomcat DoS

2015-05-06 Thread Jose María Zaragoza
2015-05-06 13:59 GMT+02:00 Mark Thomas ma...@apache.org: On 06/05/2015 09:14, André Warnier wrote: Jose María Zaragoza wrote: 2015-05-06 0:53 GMT+02:00 Mark Thomas ma...@apache.org: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 CVE-2014-0230 Denial of Service Severity: Low Vendor

Re: Web filter to forward some requests to another remote webserver

2015-01-15 Thread Jose María Zaragoza
2015-01-14 22:03 GMT+01:00 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 1/14/15 3:54 PM, Jose María Zaragoza wrote: 2015-01-14 20:05 GMT+01:00 Christopher Schultz ch...@christopherschultz.net: Jose, On 1/14/15 8:27 AM, Jose

Re: Web filter to forward some requests to another remote webserver

2015-01-14 Thread Jose María Zaragoza
2015-01-14 20:05 GMT+01:00 Christopher Schultz ch...@christopherschultz.net: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 1/14/15 8:27 AM, Jose María Zaragoza wrote: 2015-01-14 12:46 GMT+01:00 André Warnier a...@ice-sa.com: Jose María Zaragoza wrote: Hello: I would like

Web filter to forward some requests to another remote webserver

2015-01-14 Thread Jose María Zaragoza
Hello: I would like to create a web filter to forward some requests to another webserver, The filter receives an application/x-www-form-urlencoded request , inspects the value of a parameter and chooses to forward to another remote webserver ( as a proxy ) I've seen some posts where they open a

Re: Web filter to forward some requests to another remote webserver

2015-01-14 Thread Jose María Zaragoza
2015-01-14 12:46 GMT+01:00 André Warnier a...@ice-sa.com: Jose María Zaragoza wrote: Hello: I would like to create a web filter to forward some requests to another webserver, The filter receives an application/x-www-form-urlencoded request , inspects the value of a parameter and chooses

Re: META-INF/context.xml and deploy issue (web.xml removed?)

2014-12-04 Thread Jose María Zaragoza
2014-12-04 9:48 GMT+01:00 m...@ow2.org m...@ow2.org: Hi, Is anyone can help me to find out what I am missing ? Thanks Hi: I asked a similar question time ago http://grokbase.com/t/tomcat/users/13chhkj0qx/modify-content-in-meta-inf-context-xml I hope it helps you Regards Le

Re: How to access Sessions outside of class

2014-10-28 Thread Jose María Zaragoza
2014-10-28 13:44 GMT+01:00 Jason Ricles jgr...@alum.lehigh.edu: Martin, I can not use hazelcast due to regulations I have to abide by, is where any other built in way besides sockets that will allow me to share data between the two processes? You could use an embedded ( or not ) messaging

Re: ChunkedInputFilter: No data available due to previous error

2014-10-17 Thread Jose María Zaragoza
2014-10-15 13:33 GMT+02:00 Jose María Zaragoza demablo...@gmail.com: Hello: I'm using Tomcat 6.0.24 and sometimes I'm getting an IOException like : Caused by: java.io.IOException: No data available due to previous error at org.apache.coyote.http11

ChunkedInputFilter: No data available due to previous error

2014-10-15 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.24 and sometimes I'm getting an IOException like : Caused by: java.io.IOException: No data available due to previous error at org.apache.coyote.http11.filters.ChunkedInputFilter.checkError(ChunkedInputFilter.java:588) ~[tomcat-coyote-6.0.24.jar:na] at

Re: Why is my Tomcat connection getting terminated/closed?!!

2014-06-17 Thread Jose María Zaragoza
Hi, The issue still isnt resolved .I have tried putting in validationquery,testOnborrow ,and removeabandoned=true. Are you try testOnReturn = true ? Looks like if when Apache Solr closes resources, and it requires to close the database connection, something has already closed the

Re: Why is my Tomcat connection getting terminated/closed?!!

2014-05-21 Thread Jose María Zaragoza
2014-05-21 13:28 GMT+02:00 Aniket Bhoi aniket.b...@gmail.com: On Tue, May 20, 2014 at 5:28 PM, Daniel Mikusa dmik...@gopivotal.comwrote: On May 20, 2014, at 7:47 AM, Aniket Bhoi aniket.b...@gmail.com wrote: It has been working perfectly fine thus far.As far as i have analysed there have

Re: Why is my Tomcat connection getting terminated/closed?!!

2014-05-20 Thread Jose María Zaragoza
2014-05-20 13:42 GMT+02:00 Daniel Mikusa dmik...@gopivotal.com: On May 20, 2014, at 7:35 AM, Aniket Bhoi aniket.b...@gmail.com wrote: I have Apache Solr,hosted on my apache Tomcat Server Details: Tomcat version: Apache Tomcat/6.0.18 This is really, really old. You should upgrade. OS

Re: CORS issue with Tomcat and Android Webview

2014-04-29 Thread Jose María Zaragoza
2014-04-29 0:38 GMT+02:00 Terence M. Bandoian tere...@tmbsw.com: On 4/28/2014 5:32 PM, Terence M. Bandoian wrote: On 4/28/2014 3:08 PM, Jose María Zaragoza wrote: 2014-04-28 21:55 GMT+02:00 Terence M. Bandoian tere...@tmbsw.com: On 4/26/2014 6:56 AM, Jose María Zaragoza wrote: 2014-04-26

Re: CORS issue with Tomcat and Android Webview

2014-04-28 Thread Jose María Zaragoza
2014-04-28 21:55 GMT+02:00 Terence M. Bandoian tere...@tmbsw.com: On 4/26/2014 6:56 AM, Jose María Zaragoza wrote: 2014-04-26 13:16 GMT+02:00 Martin Gainty mgai...@hotmail.com: Date: Sat, 26 Apr 2014 11:43:05 +0530 Subject: Re: CORS issue with Tomcat and Android Webview From: ankising

Re: CORS issue with Tomcat and Android Webview

2014-04-26 Thread Jose María Zaragoza
2014-04-26 13:16 GMT+02:00 Martin Gainty mgai...@hotmail.com: Date: Sat, 26 Apr 2014 11:43:05 +0530 Subject: Re: CORS issue with Tomcat and Android Webview From: ankising...@gmail.com To: users@tomcat.apache.org On Sat, Apr 26, 2014 at 12:53 AM, Terence M. Bandoian tere...@tmbsw.comwrote:

Re: CORS issue with Tomcat and Android Webview

2014-04-24 Thread Jose María Zaragoza
2014-04-24 19:00 GMT+02:00 Terence M. Bandoian tere...@tmbsw.com: On 4/22/2014 1:37 PM, Jose María Zaragoza wrote: -- Forwarded message -- From: Terence M. Bandoian tere...@tmbsw.com Date: 2014-04-22 20:12 GMT+02:00 Subject: Re: CORS issue with Tomcat and Android Webview

Re: CORS issue with Tomcat and Android Webview

2014-04-22 Thread Jose María Zaragoza
-- Forwarded message -- From: Terence M. Bandoian tere...@tmbsw.com Date: 2014-04-22 20:12 GMT+02:00 Subject: Re: CORS issue with Tomcat and Android Webview To: Tomcat Users List users@tomcat.apache.org On 4/22/2014 11:03 AM, Ankit Singhal wrote: Also we tried to give the same

Re: jax-ws and tomcat 7 with ssl

2014-03-18 Thread Jose María Zaragoza
2014-03-18 22:58 GMT+01:00 Maria Cristina Siena mariacristinasi...@sourcecable.net: Hi, I developed a web service using jax-ws and configured Tomcat to support SSL connection. Here are my steps: ** Step 1 - Generate a self-signed server certificate Use JDK 1.7 keytool: keytool

Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.24 and I'm testing how to return Content-Length header So I've defined a Filter and declared in web.xml of my web application If I do this: HttpServletResponse httpResponse = (HttpServletResponse) response; chain.doFilter(request, response);

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Jose María Zaragoza
Thanks And what do you recommend to me for forcing to return a Content-Type ? Some weird clients require it If I cannot do it with a Filter , where can I do it ? 2014-02-27 12:41 GMT+01:00 Konstantin Kolinko knst.koli...@gmail.com: 2014-02-27 12:18 GMT+04:00 Jose María Zaragoza demablo

Re: Filter behaviour ( settinf Content-Length header )

2014-02-27 Thread Jose María Zaragoza
2014-02-27 17:24 GMT+01:00 Konstantin Kolinko knst.koli...@gmail.com: 2014-02-27 18:31 GMT+04:00 Jose María Zaragoza demablo...@gmail.com: And what do you recommend to me for forcing to return a Content-Type ? Some weird clients require it If I cannot do it with a Filter , where can I do

UserDatabase resource into META-INF/context.xml

2014-02-06 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.24 I want to set a realm per only one application, so I define in its META-INF/context.xml ?xml version=1.0 encoding=UTF-8? Context Resource auth=Container description=User database that can be updated and saved

Re: Modify content in META-INF/context.xml

2013-12-18 Thread Jose María Zaragoza
2013/12/18 Jeffrey Janner jeffrey.jan...@polydyne.com: I think that at 6.x you need to do one of the following to the context.xml file located in the configBase ($CATALINA_BASE/conf/[enginename]/[hostname]/): 1. make the changes to the file there and reload the webapp 2. make the changes in

Modify content in META-INF/context.xml

2013-12-17 Thread Jose María Zaragoza
Hello: I'm using Apache Tomcat 6.0.24 and I've deployed a web application that defines its resources into META-INF/context.xml , especially information about connection pool Sometimes I''ve to edit that file to change some data , i.e, database's JDBC url I've seen that restart web application

Re: Modify content in META-INF/context.xml

2013-12-17 Thread Jose María Zaragoza
2013/12/17 André Warnier a...@ice-sa.com: Hi. Without having any idea really of the precise mechanism behind database connections, I can still imagine that with the possibility of pooled connections to said database(s), it may be difficult to detect such a change in the corresponding

Re: Modify content in META-INF/context.xml

2013-12-17 Thread Jose María Zaragoza
Automatic deployment has had a bit of an overhaul in Tomcat 8 and those changes have been back-ported to 7.0.x for the next release. The behaviour in a number of edge cases is now clearly defined: http://ci.apache.org/projects/tomcat/tomcat8/docs/config/automatic-deployment.html In your

Re: What if my database is unavailable at startup?

2013-12-13 Thread Jose María Zaragoza
With testOnBorrow=true ( I think that is the default value in Tomcat 6 ) + validationQuery=SELECT 1 FROM DUAL , that should work I've never used maxOpenPreparedStatements=0 accessToUnderlyingConnectionAllowed=false what are they for ? 2013/12/13 Dames, Kristopher J

Re: What if my database is unavailable at startup?

2013-12-13 Thread Jose María Zaragoza
2013/12/13 Dames, Kristopher J kristopher.da...@mercy.net: With testOnBorrow=true ( I think that is the default value in Tomcat 6 ) + validationQuery=SELECT 1 FROM DUAL , that should work So you are saying my configuration should work as-is to allow Tomcat to create a database connection

context.xml in META-INF

2013-11-28 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.23 . Yes, I know it's an old release I would like to use - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

META-INF/context.xml connection pool

2013-11-28 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.23 Yes, I know is an old release Anyway, I would like to use tomcat-jdbc connection pool JAR So, I 've stored a context.xml into META-INF folder in my WAR, as Context Resource auth=Container type=javax.sql.DataSource

Re: Release a database connection from pool

2013-09-10 Thread Jose María Zaragoza
2013/9/10 Christopher Schultz ch...@christopherschultz.net It can't: not all JDBC drivers use TCP/IP, so the only thing the DBCP can do is call Connection.close and hope the driver does something intelligent. It makes sense That's up to the database server. I can't imagine a db server

Release a database connection from pool

2013-09-09 Thread Jose María Zaragoza
Hello: I've got a simple question. I'm using Tomcat 6 DBCP library ( bit I've got the same question with Tomcat JDBC pool ) My question is: when DBCP wants to release a database connection from the pool ( for example , if it is idle for more than minEvictableIdleTimeMillis ) does it just

Re: Release a database connection from pool

2013-09-09 Thread Jose María Zaragoza
2013/9/9 Daniel Mikusa dmik...@gopivotal.com: On Sep 9, 2013, at 2:56 PM, Jose María Zaragoza demablo...@gmail.com wrote: Or does it do anything more by using propietary driver's commands? I asking me if ( some ) database servers need a special command to finish a connection/session

Re: [Probe]- Tomcat deployment

2013-08-03 Thread Jose María Zaragoza
http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html 2013/8/3 vicky vicky007aggar...@yahoo.co.in: Hi Guys, Is there a way by which we can handle the tomcat deployment of war files from a central location via a Web UI screen ? I 'm aware of PROBE (http://code.google.com/p/psi-probe/)

Re: Share info across different sessions servers

2013-07-06 Thread Jose María Zaragoza
); } } } On Thu, Jul 4, 2013 at 6:57 PM, Jose María Zaragoza demablo...@gmail.com wrote: Thanks Vince. I'll take a look , but , it doesn't look trivial , not at all Regards 2013/7/4 Vince Stewart stewart.vi...@gmail.com Hi Jose, a couple of things, 1) I use

Re: Share info across different sessions servers

2013-07-04 Thread Jose María Zaragoza
Thanks Vince. I'll take a look , but , it doesn't look trivial , not at all Regards 2013/7/4 Vince Stewart stewart.vi...@gmail.com Hi Jose, a couple of things, 1) I use embedded Tomcat to build my application and this has allowed me to maintain 2 single-line patches in tribes classes by

Re: Share info across different sessions servers

2013-07-03 Thread Jose María Zaragoza
...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 7/2/13 3:22 AM, Jose María Zaragoza wrote: Thanks I need to share formatted text data ( XML, key/value, ...I'm not sure yet ) I don't understand your comment about JMS . I will use a JMS broker

Share info across different sessions servers

2013-07-02 Thread Jose María Zaragoza
Hello: I need to share data between sessions running in different Tomcat server. I 'd been thinking about using a JMS broker (as ActiveMQ ): - when a new session is created in Tomcat A, it's created a new unique topic for this session - the session registers itself as listener of that topic (

Re: Share info across different sessions servers

2013-07-02 Thread Jose María Zaragoza
was send will not noticed about it... Jens Sent from my iPhone On 02.07.2013, at 08:45, Jose María Zaragoza demablo...@gmail.com wrote: Hello: I need to share data between sessions running in different Tomcat server. I 'd been thinking about using a JMS broker (as ActiveMQ

Re: Share info across different sessions servers

2013-07-02 Thread Jose María Zaragoza
María Zaragoza wrote: Thanks I need to share formatted text data ( XML, key/value, ...I'm not sure yet ) I don't understand your comment about JMS . I will use a JMS broker as ActiveMQ . Probably it will be embebbed into the same JVM than Tomcat server. ActiveMQ supports persistent

Re: Tomcat 6.x leak with WSS4J library

2013-06-20 Thread Jose María Zaragoza
/exclusions So, if logging system leaks, should be slf4j + logback, but I'm not sure 2013/6/20 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 6/19/13 5:02 PM, Jose María Zaragoza wrote: Thanks ! You

Tomcat 6.x leak with WSS4J library

2013-06-19 Thread Jose María Zaragoza
Hello: This isn't an error in Tomcat, but it's an error what happens in my web application by using Apache CXF + WSS4J. I'm using Tomcat 6.0.24 and I've found that it's fixed in 7.0.41 ( but not in 6.03.7 ) But , for bussiness matters, I cannot upgrade from 6.0.24 to 7.x I would like if

Re: Tomcat 6.x leak with WSS4J library

2013-06-19 Thread Jose María Zaragoza
Thanks ! You should at least upgrade to 6.0.37. 6.0.24 I agree with you but I can't. Anyway, I tested my webapp in Tomcat 6.0.37 and it throws the same error; it only works in latest Tomcat 7.x Why is your web application attempting to get a message's signature during shutdown? I explained

maxIdleTime + Tomcat 6.0.23

2013-05-10 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.23 and I'm looking info about threads created by Tomcat HTTP Connector for processing requests. I've seen that - I cannot define a minSpareThread in Connector , in server.xml . And default value is 0 I have to create a Executor to be able to define a minSpareThread

maxWait

2013-04-30 Thread Jose María Zaragoza
Hello: I'm using Tomcat 6.0.23 I'm using DBCP library to pooling database connections. When I define a Resource in context.xml and set maxWait to 2000 ms , sometimes datasource.getConnection() method lasts 15 seconds. I've to define loginTimeout parameter in JDBC driver to get the effect that

validationQuery with Tomcat 7 JDBC Pool

2013-04-29 Thread Jose María Zaragoza
Hello: I was using validationQuery in Tomcat 6 for JNDI datasources, so to check connections before borrowing to the caller And, about documentacion, testOnBorrow parameter is true by default testOnBorrow - true or false: whether a connection should be validated using the validation query each

Re: Tomcat Jdbc Pool - NumActive vs actual Established Connections

2013-04-17 Thread Jose María Zaragoza
2013/4/16 Kiren Pillay kirenpill...@gmail.com Hi All, I am using the tomcat-jdpc-pool from within my spring application. I am noticing a discrepancy between the numActive/numIdle values that the pool reports versus the actual number of established connections to the database. For example,

Re: Tomcat JDBC Pooling - Connections

2013-04-08 Thread Jose María Zaragoza
Hi: But I can see that you aren't using Tomcat JDBC pool, but oracle.jdbc.pool. OracleDataSource , right ? And I don't know how you set up your datasource to more than 200 maxActive connections Indeed, I don't know how you define the size of connection pool Regards 2013/4/8 Madan KN

Re: Tomcat7 - ajax and connection pool : connection closed despite the use of validationQuery and testOnBorrow

2013-04-05 Thread Jose María Zaragoza
Hi Konstantin: About this link http://commons.apache.org/proper/commons-dbcp/configuration.html If you have enabled removeAbandoned then it is possible that a connection is reclaimed by the pool because it is considered to be abandoned. This mechanism is triggered when (getNumIdle() 2) and

Re: Tomcat7 - ajax and connection pool : connection closed despite the use of validationQuery and testOnBorrow

2013-04-05 Thread Jose María Zaragoza
'select 1 from dual' works in Oracle DB In MySQL, select 1 2013/4/5 Propes, Barry L barry.l.pro...@citi.com I could be wrong, but is that validationQuery attribute correct? SELECT 1 ? - I have validationQuery=select 1 from dual in mine, and my doc states it has to be a valid SQL

Re: Tomcat7 - ajax and connection pool : connection closed despite the use of validationQuery and testOnBorrow

2013-04-05 Thread Jose María Zaragoza
some faux table or object. -Original Message- From: Jose María Zaragoza [mailto:demablo...@gmail.com] Sent: Friday, April 05, 2013 3:44 PM To: Tomcat Users List Subject: Re: Tomcat7 - ajax and connection pool : connection closed despite the use of validationQuery and testOnBorrow

Tomcat JDBC connection pool + JMX

2013-03-27 Thread Jose María Zaragoza
Hello: I'm using tomcat-jdbc as a connection pool in a standalone application. I would like monitorize this pool by JMX . How I can do that ? What is the name of MBean ? Thanks and regards - To unsubscribe, e-mail:

Re: Tomcat JDBC connection pool + JMX

2013-03-27 Thread Jose María Zaragoza
2013/3/27 Charles Richard charle...@thelearningbar.com: Hi, There might be better ways but I monitor the c3p0 connection pool using jmxterm (my jar jmxterm-1.0-alpha-4-uber.jar). For c3p0, the mbean is com.mchange.Pooled... Hope this helps a little! Thanks. I use

Re: Tomcat JDBC connection pool + JMX

2013-03-27 Thread Jose María Zaragoza
Here's what I see when I look at a Tomcat server with a tomcat-jdbc connection pool defined. tomcat.jdbc:name=jndi-path,type=ConnectionPool,class=org.apache.tomcat.jdbc.pool.DataSource I think this might also work (although it appears read-only).

Re: Multiple JSESSIONID

2013-03-02 Thread Jose María Zaragoza
The moral of the story is that nested URL spaces is a bad idea where sessions are concerned. We easily fixed that problem by moving the /-mounted webapp to a unique URL prefix (which wasn't trivial, since we had inter-webapp links, etc.) but it solved all of those weird problems. Thanks. But

Re: Multiple JSESSIONID

2013-03-01 Thread Jose María Zaragoza
Thanks for your answers. I wonder why browsers don't send only one JSESSIONID If I request an URL as www.mydomain.com/app/myapplication/action.do and it has got 2 cookies with the same name, one for www.mydomain.com/ and another for www.mydomain.com/app/myapplication/ , IMHO, that a browser

Re: Multiple JSESSIONID

2013-03-01 Thread Jose María Zaragoza
2013/3/1 Nick Williams nicho...@nicholaswilliams.net: APOLOGIES FOR TOP POSTING! (see below, were I correctly inline post this apology) On Mar 1, 2013, at 1:58 PM, Nick Williams wrote: Browsers send all of the cookies because that's the compliant thing to do. RFC-2109 [1] says: If

Multiple JSESSIONID

2013-02-28 Thread Jose María Zaragoza
Hello: We're using Tomcat 6.0.24 as servlet container This server listens for requests under the URL www.mydomain.com/app/myaplication/ I've seen in my web browser that it has got 2 JSESSIONID for the same domain at the same time JSESSIONID: x www.mydomain.com / and JSESSIONID:

[OT] tomcat7-maven-plugin

2013-02-27 Thread Jose María Zaragoza
Hello: How is it possible that tomcat7-maven-plugin has got a 'deploy' goal but not 'undeploy' goal ? Regards 2013/2/27 Olivier Lamy ol...@apache.org: 2013/2/27 Richard McAleer rmcal...@caris.com: Hi, We're using tomcat7-maven-plugin 2.1 to build an executable war using the

Re: [FWD: Help Debugging 404 errors]

2013-02-14 Thread Jose María Zaragoza
OK, I double clicked. Can you give me some more details on choosing root folder and webapps folder? I see three radio buttons that are all greyed out. I don't know how to click on them. Use workspace metadata (dones not modify Tomcat installation) Use the tomcat installation (takes control

Re: [FWD: Help Debugging 404 errors]

2013-02-13 Thread Jose María Zaragoza
They actually use a pseudo-CATALINA_BASE (I think) and run the server from: workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp[n] n is the number of your server in your Servers project. There is no bin directory, and there's an extra directory called wtpwebapps which contains an

Re: 64 Bit Tomcat

2013-01-30 Thread Jose María Zaragoza
2013/1/30 Patrick Flaherty pflah...@rampageinc.com: Hello, I have an open question about 32 bit vs 64 bit. We are currently deploying our app with 32 bit JVM and Tomcat. We are running into memory issues as we add more functionality (some via tools in the open source ecosystem). Depends on

Re: Get active session list

2012-11-20 Thread Jose María Zaragoza
Sorry, I'm not following this thread but Don't you want to use http://localhost:8080/manager/html/sessions?path=/contextpath ? You only have to parse this plain HTML webpage I know that it's not very elegant but Regards 2012/11/20 Cosio, Raul jose_raul_co...@merck.com: As far as I

Modify Cache-Control header

2012-11-16 Thread Jose María Zaragoza
Hi: I'm using Tomcat 6 ( I don't remember the exact release, I hope to be forgiven by Pid ) I need to modify Cache-Control header in some responses ( forcing them to not be cached ) What is the best way to do it ? a) To implement a Valve ( check request context path and if it match ,to modify

Re: Logging of user's login attempts

2012-11-09 Thread Jose María Zaragoza
2012/11/9 Christopher Gross cogr...@gmail.com Perhaps someone else who has done this can chime in, but I'll keep looking around. I think you got me started on the right track. Well, I'm used to extending UserDatabaseRealm class and to configure Tomcat with it, so I can have more control

Re: handling expired sessions in Tomcat

2012-11-05 Thread Jose María Zaragoza
2012/11/5 Miguel Gonzalez miguel_3_gonza...@yahoo.es: Dear all, When an user is logged on our system (a Struts app), when the session expires, the user gets a java error report. Is there any way to handle this and either to show a custom jsp page or redirect the user to the login form?

Re: tomcat question

2012-10-22 Thread Jose María Zaragoza
2012/10/22 André Warnier a...@ice-sa.com: Wiley, Maxie wrote: Is it possible to remove an installation of a compiler on a production web server(tomcat)? Jasper? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Get active session list

2012-10-18 Thread Jose María Zaragoza
2012/10/18 Felipe Jaekel fkjae...@gmail.com: I need to get the active session list. Searching abou I saw a lot of people with the same question, but no answer. https://code.google.com/p/psi-probe/ - To unsubscribe, e-mail:

Re: Tomcat 6.0 queries

2012-10-13 Thread Jose María Zaragoza
2012/10/13 vivek aggarwal vicky007aggar...@yahoo.co.in: Hello All, Can you guys please help in understanding my following concerns/queries :- 1. How can we configure the number of threads for managing simultaenous HTTP connection requests coming from Apache. Is there any connection time

  1   2   >