Re: html meta http-equiv content-type not work ?

2011-07-23 Thread Marvin Addison
> If you want to set > the charset in the HTTP header, you'll need to set it explicitly using a > JSP, a filter or similar. It's wise to do both, http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q8. For the filter, it's important to put the filter at or near the top of the filter chain sinc

Re: APR connector pollTime defaults are strange in tomcat6/7

2011-07-25 Thread Marvin Addison
> Does Tomcat APR really needs pollTime set so low by default? Anyone care to comment on this point? I'm interested in this discussion as a user of Linux+APR connectors. While we don't yet run on a tickless kernel, I'm considering trying to measure the impact on our systems as well, but some ins

Re: html meta http-equiv content-type not work ?

2011-08-01 Thread Marvin Addison
> I think you mean "any attempt to WRITE The RESPONSE". I took some time to verify the effect I described, https://github.com/serac/charset-test. Reading data from the request body coerces the encoding as I claimed. Simply swap the order of the filter-mappings in web.xml and post some unicode da

Re: Moving init params from web.xml to context.xml

2011-08-23 Thread Marvin Addison
> This is equivalent to the inclusion of the following element in the web > application deployment descriptor (/WEB-INF/web.xml): > > > companyName > My Company, Incorporated > > > but does not require modification of the deployment descriptor to customize > this value. That's correct but

Re: Moving init params from web.xml to context.xml

2011-08-23 Thread Marvin Addison
> I can get with the Dev team and see if they are willing to re-code for the > possibility (or even need to). It's a valuable change that dramatically increases your deployment options; well worth the effort IMO. M - To unsubsc

Re: SSL issue

2011-08-26 Thread Marvin Addison
If you've got the container to request and accept a client cert, the connector configuration is likely correct and it's an SSL trust problem. Please post the output of the following command: keytool -list -keystore D:/users/apache-tomcat-7.0.11/keystore/trust.keystore -storePass changeit Also, p

Re: SSL configuration / APR / Tomcat 7.0.17

2011-08-31 Thread Marvin Addison
>           port="8443" maxThreads="200" >           scheme="https" secure="true" SSLEnabled="true" >           SSLCertificateFile="/usr/local/tomcat/conf/my.crt" >           SSLCertificateKeyFile="/usr/local/tomcat/conf/my.pem" >           clientAuth="optional" SSLProtocol="TLSv1"/> > Things to

Re: How to Configure Tomcat 7.0 for SSL

2011-09-19 Thread Marvin Addison
> SSLEngine="on" There's no such attribute for this connector. The attribute you want is SSLEnabled="true". I would also recommend the following attributes for security-conscious deployments: SSLProtocol="SSLv3+TLSv1" SSLCipherSuite="!ADH:HIGH:MEDIUM:-SSLv2" If you continue to have trouble, po

Re: TOMCAT-7.0 and SSL issues

2011-09-28 Thread Marvin Addison
> My  question is, why my first aproach didn't work ? Likely because you specified the APR connector somewhere in your connector config, yet the SSL instructions you cited for CAS describe the setup for the pure-java connectors. APR is a different (but friendly) beast. M ---

Re: URL "simplification"

2011-10-10 Thread Marvin Addison
> You can also do it with iptables, converting any port 80 request to 8080. > The user types in http://mywebapp but gets redirected to > http://hostname:8080 +1 What I use: -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 M -

Re: How to save the log info to log file

2011-10-10 Thread Marvin Addison
> In windows, How to let the tomcat write the catalina log to the log file I was going to suggest setting the CATALINA_OUT environment variable, but it looks like that's only supported in catalina.sh for Unix hosts. If you're starting via startup.bat/catalina.bat, you could edit catalina.bat to r

Re: SSL connect to APR fails - "bad version"

2011-11-07 Thread Marvin Addison
The following works as expected on my config (6.0.26) using the default protocols and cipher suite as in your config: $ openssl s_client -connect eiger:443 -debug -ssl3 CONNECTED(0003) ... Something in your SSL version jumped out at me: OpenSSL 0.9.8e-fips-rhel5 Looks like you're running Op

Re: problem with loading Bouncy Castle

2011-11-08 Thread Marvin Addison
Crypto providers need to be installed into the JRE extension directory (e.g. $JRE_HOME/lib/ext) and an entry must be added to $JRE_HOME/lib/security/java.security to install the provider. For example: security.provider.5=org.bouncycastle.jce.provider.BouncyCastleProvider Note the 5 above; each p

Re: CLOSE_WAIT Connection Issue

2011-11-18 Thread Marvin Addison
> 3] And then from Clinet Side, from where,  I execute curl, kill all curl > process. > So, on server all ESTABLISHED becomes, CLOSE_WAIT in netstat. I'd imagine kill -KILL or kill -TERM is preventing proper socket teardown. The server is expecting ACKs from the clients that apparently not being

Re: Do any of the Tomcat LDAP-type realms support "no password" authentication?

2011-12-01 Thread Marvin Addison
> I was wondering if any of the LDAP-type realms (e.g., JNDIRealm, etc.) > support an authentication mode where no password or credentials are required? It's hard to imagine a valid use case for this -- I hope you know what you're doing. That said, you could use JAASRealm with http://code.google

Re: Character set issue

2011-12-05 Thread Marvin Addison
> /can/ the servlet (or one of the filters) > do anything that would cause the value of "name1" to /not/ be a correct Java > "TÜV" string in the servlet ? Yes, absolutely. If this is a posted value and some filter fires that coerces the encoding (e.g. request.getParameter() in the case of POST) o

Excessive CPU w/APR Connectors on tomcat-native 1.1.22

2012-01-11 Thread Marvin Addison
We are seeing excessive CPU burn (top > 300% on multicore machine) in multiple versions of Tomcat that use APR connectors exclusively. The problem does not correlate with load. We initially saw it on 6.0.35 and subsequently on 7.0.23 as we attempted to upgrade around the problem. We have determi

Re: Excessive CPU w/APR Connectors on tomcat-native 1.1.22

2012-01-12 Thread Marvin Addison
> Can you confirm whether or not the issue exists with 6.0.26 and 1.1.22? I cannot. We have tried repeatedly to reproduce this problem in a test environment where such experimentation is tolerated, but the problem simply does not manifest using available load testing tools. We attempted to try 7.

Re: Excessive CPU w/APR Connectors on tomcat-native 1.1.22

2012-01-17 Thread Marvin Addison
Brief follow up on CPU spike issue. In an attempt to work around the problem via configuration changes, we have swapped out APR connectors with NIO using an equivalent configuration. (The only meaningful changes are SSL configuration directives.) Since swapping out connectors over the weekend, w

Re: SSL Certificate formats, requirements for import into existing keystore

2011-07-06 Thread Marvin Addison
> There is some "junk" ("bag attributes")n the file that I don't' understand. I > am used to just seeing "-BEGIN CERTIFICATE- "END CERTIFICATE- > "" ""-BEGIN RSA PRIVATE KEY- "-END RSA PRIVATE KEY- " As far as I know, keytool can only import certificates in PKCS8