Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-07 Thread Jan Vávra
Hi, Dne 05.12.2018 v 16:39 Christopher Schultz napsal(a): -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jan, On 12/5/18 06:59, Jan Vávra wrote: Hi, Dne 04.12.2018 v 17:49 Christopher Schultz napsal(a): Jan, On 12/4/18 10:10, Jan Vávra wrote: Hello, I'm using Apache Tomcat/8.5.35

Re: manager app, Complete Server Status, not shown list of NIO threads

2018-12-05 Thread Jan Vávra
Hi, Dne 04.12.2018 v 17:49 Christopher Schultz napsal(a): -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jan, On 12/4/18 10:10, Jan Vávra wrote: Hello, I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows Server 2012 R2 and at Complete Server Status page I can see list of all htt

manager app, Complete Server Status, not shown list of NIO threads

2018-12-04 Thread Jan Vávra
Hello,  I'm using Apache Tomcat/8.5.35, jvm 1.8.0_192-b12, Windows Server 2012 R2 and at Complete Server Status page I can see list of all http-nio threads and I can see a header of ajp-nio threads. But there is displayed only a label Max threads: and nothing more. In the localhost.log is an

how to access HTTPServletRequest in RealmBase

2017-03-30 Thread Jan Vávra
Hello, I have written a custom Realm and I need to access to the request headers. The authentication should be computed from client certificate + id from custom http header X-IdUser. Can I somehow access to the HTTPServletRequest instance ? Jan.

Re: RFE: read keystorePass from file

2015-04-15 Thread Jan Vávra
Hello, Hi, I'd like to suggest the addition of an option that would allow reading the keystore password (the password protecting the private key used by secure connectors) from file. for such things I use java define for tomcat process: -Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=MyProp

tomcat7.exe windows service crash

2014-07-29 Thread Jan Vávra
Hello, I'm facing a problem of tomcat7.exe crash (from win64 Tomcat 7.0.54 distribution) installed as a Windows service on Windows 2012 x64, x64 jdk 1.7.0.65. In the Widows event log is message (translated from Czech) :"Windows service Apache Tomcat 7 was unexpectedly ended." Interresting is

Re: realm, access to Request object

2014-05-25 Thread Jan Vávra
Hello. -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 5/20/14, 4:28 AM, Mark Thomas wrote: On 20/05/2014 09:11, Jan Vávra wrote: Hello. I write my own realm implementation for Tomcat 7.x. In the method Principal authenticate(X509Certificate[] certs) I'd like to read re

realm, access to Request object

2014-05-20 Thread Jan Vávra
Hello. I write my own realm implementation for Tomcat 7.x. In the method Principal authenticate(X509Certificate[] certs) I'd like to read request headers. My authentication would be based on client certificate + custom http request value. Is it possible? The method authenticate is called in

Re: mod_proxy not redirecting servlet redirect properly

2013-12-05 Thread Jan Vávra
Hello, is really cutting of the /myapp the thing you want to do? Isn't it turned-up? Now from url http://myip/myapp/smthg you redirect client to http://myip/smthg You wrote : "In one of the servlets POST method i am redirecting the request to a JSP page" So the scenatio is. 1. client makes

Re: Tomcat 7 SSL Setup: ERR_CONNECTION_REFUSED

2013-09-17 Thread Jan Vávra
Maybe it'd helpful not using the java key store (JKS). Personally on Linux Tomcat installations without native APR I use the .p12 files with this config maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile=${catalina.hom

Re: Tomcat 7 SSL Setup: ERR_CONNECTION_REFUSED

2013-09-16 Thread Jan Vávra
|Hello, on http://support.mozilla.org/cs/questions/952242 there is described smthg about ssl protocol settings for Firefox. It seems like you have configured ||in server.xml||eg. only SSLv2 protocol that is disabled in the client browser http://tomcat.apache.org/tomcat-7.0-doc/config/htt

OT: Re: what if I lost the keystore which generate the CSR

2013-08-23 Thread Jan Vávra
Well, the original cert will be revoked and you can create new CSR and reapply new cert. With Thawte we did this one year ago without a problem. Contact Thawte support. Jan. Sorry I am a beginner about ssl cert. according to http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Create_a

Re: Form Authentication and Cache-Control

2013-07-16 Thread Jan Vávra
Hi. I've solved my problem. The correct attitude is to have all contexts unauthenticated and only few restrict. In my case restricted urls are /index.jsp, /admin/*, /user/* In the original web.xml I had all contexts restricted and static context /common/* was masked out. Although the /common

Re: ssl client certificate authentication

2013-07-10 Thread Jan Vávra
2. It seems me that checking of revocation of client certificate is done via "static" crl files located in APR's SSLCARevocationPath or JSSE's crlFile. If I write a cron task that periodically downloads crl list(s), will the Tomcat react on this change of CRL file(s)? I've found in org.apache.ht

ssl client certificate authentication

2013-07-10 Thread Jan Vávra
Hi all. I've studied the documentation at http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support and I have several questions on it. 1. While the APR/Native has config option SSLCACertificateFile that defines the set of allowed client cert authorities the JSSE SSL has no analog

Re: Form Authentication and Cache-Control

2013-06-27 Thread Jan Vávra
Hi. Note that Cache-Control:private does not disable caching. Instead, it disables public-caching for proxies. The browser is still free to cache the document in certain ways. True disabling of the cache would be to set Cache-Control to "no-cache" or "no-store" (though no-store is usually more a

Form Authentication and Cache-Control

2013-06-26 Thread Jan Vávra
Hello, If I use auth-method FORM, all requests return with headers denying caching on the browser side although I have excluded some part of my app from authentication. The headers for a png image are: HTTP/1.1 304 Not Modified Server: Apache-Coyote/1.1 Cache-Control: private Expires: Thu,

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-26 Thread Jan Vávra
Hello, When I create user with password with czech String "ŽežUlička.1" the browser sends correctly this string as: POST http://localhost:70/myapp/j_security_check HTTP/1.1 Content-Type: application/x-www-form-urlencoded j_username=p&j_password=%C5%BDe%C5%BEUli%C4%8Dka.1 The browser is not sen

Re: FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Jan Vávra
n xml file ? ____ De : Jan Vávra [va...@602.cz] Envoyé : lundi 24 juin 2013 13:36 À : Tomcat Users List Objet : FORM based authentication and utf-8 encoding of credentials Hello, I'm successfully using form based authenntication when login or password contains only letters from E

FORM based authentication and utf-8 encoding of credentials

2013-06-24 Thread Jan Vávra
Hello, I'm successfully using form based authenntication when login or password contains only letters from English alphabet. I have also written own realm. When I create user with password with czech String "ŽežUlička.1" the browser sends correctly this string as: POST http://localhost:70/

Re: .net web service client calling Tomcat 7

2013-06-04 Thread Jan Vávra
Is there a RFC that describes best behaviour of server and client in this situation? On my opinion Tomcat behaves correctly. If client doesn't send proper credentials it is dangerous and useless to read all input data. I've switched off the connection keep alive at Connector config. And now cl

.net web service client calling Tomcat 7

2013-06-03 Thread Jan Vávra
Hello, I have a METRO web service at Tomcat 7.0.39 (S). The service is under http basic authentication. I have written own realm for http basic authentication. The realm's implementation is very small. It's something like read ini file with username with passwords. Few lines ... Our customer

Re: configuring tomcat7 with apache 2.2.22

2013-03-15 Thread Jan Vávra
- $bcode = $row['Bar Code'] ; $beginurl = ""; echo $beginurl . $bcode . $endurl; Steve Spence, KK4HFJ http://arduinotronics.blogspot.com http://www.essnmag.com ---Original Message--- From: Jan Vávra To: Tomcat Users List Subject: Re:

Re: configuring tomcat7 with apache 2.2.22

2013-03-15 Thread Jan Vávra
Hello, I take care about an app that is a combination of Apache Server+php Drupal app and Apache Tomcat jsp app. Apache Server listens on the ports 80/443 and requests are reverse proxied to Apache Tomcat. Let's say that the tomcat app resides on/testca The apache server config will be

Re: Two auth methods for one application

2012-02-02 Thread Jan Vávra
On 02/02/2012 15:00, Christopher Schultz wrote: Jan, On 2/2/12 6:26 AM, Jan Vávra wrote: Is it possible to configure tomcat to call both variants of functions? I'd like to write something like CLIENT-CERT or BASIC. The servlet spec doesn't support anything like this. I think w

Two auth methods for one application

2012-02-02 Thread Jan Vávra
Hello, I have implemented own realm. I extended RealmBase, overrided methods (1) public Principal authenticate(X509Certificate[] certs), (2) public Principal authenticate(String username, String credentials). I have Tomcat 6 that runs behind Apache Server over AJP. In the situation (1) client c

Re: Tomcat recycling

2011-11-22 Thread Jan Vávra
Hello, thanks for a long response. As I see everybody are againts my proposal. Ok. Yes, some kind of restarting can be done via some scripts. In the best in a cluster environment... Personally I don't trust /etc/init.d/tomcat scripts that comes in wg. SLES linux. Sometimes this script didn't

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 betw

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: 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 http://www.microsoft.com/technet/prodtechnol/Windows

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 I

Tomcat recycling

2011-11-18 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? If I add my own script containing "/etc/init.d/tomcat restart" to the crontab I loose the user sessions and users have to relogin. I experience some problems with OutOfMemory e

problem with loading Bouncy Castle

2011-11-08 Thread Jan Vávra
Hello, I have a problem with loading bouncy castle. My code snippet is: int position = Security.addProvider(new BouncyCastleProvider()); KeyStore store = KeyStore.getInstance("PKCS12", "BC"); In the application log I have message that BouncyCastleProvider is already loaded (position== -1).