Re: tomcat8 ClassCastException

2016-10-18 Thread Mark Olsson
On Tue, Oct 18, 2016 at 3:17 PM, musafir wrote: > Hey Guys, can you pls provide some suggestions..exact copy of > tomcat+webapp working fine on one machine..no issues in tomcat7with either > jdk7/8 > > > What java version and vendor are you using? Or are you using Scala or some other JVM based l

Re: Apache mod_jk connector question about alias

2016-10-18 Thread Marc Chamberlin
On 10/17/2016 10:36 AM, Rainer Jung wrote: Alias maps URIs to local file system directories. JkMount maps URIs to remote back end requests. You can not change JkMount forwarding using Alias (except that if you have a comflict between Alias and JkMount only one of them wins). As far as I unde

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 19.10.2016 00:21, Mark Thomas wrote: On 18/10/2016 23:10, Mark Juszczec wrote: On Oct 18, 2016 5:37 PM, "Mark Thomas" wrote: Java handles bytes as signed (-128 to 127) but the data in the input stream is unsigned. The additional Fs are an artefact of whatever those bytes were cast to. It

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Oct 18, 2016 6:22 PM, "Mark Thomas" wrote: > > I wonder if it is worth a clean install of httpd, mod_jk and Tomcat and > then running a simple test. > > Mark > That would be difficult to justify without more evidence than ive got. Do you know if apache has a test suite I can run against an ex

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Thomas
On 18/10/2016 23:10, Mark Juszczec wrote: > On Oct 18, 2016 5:37 PM, "Mark Thomas" wrote: >> >> >> Java handles bytes as signed (-128 to 127) but the data in the input >> stream is unsigned. The additional Fs are an artefact of whatever those >> bytes were cast to. >> >> It looks normal to me. >

Re: tomcat8 ClassCastException

2016-10-18 Thread musafir
Hey Guys, can you pls provide some suggestions..exact copy of tomcat+webapp working fine on one machine..no issues in tomcat7with either jdk7/8 On Monday, October 17, 2016, musafir wrote: > Hi Apache Team, > > Got 2 tomcat hosting same web application. Tomcats are installed on > dedicated cen

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Oct 18, 2016 5:37 PM, "Mark Thomas" wrote: > > > Java handles bytes as signed (-128 to 127) but the data in the input > stream is unsigned. The additional Fs are an artefact of whatever those > bytes were cast to. > > It looks normal to me. That's what i thought but didn't think it would hurt

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Thomas
On 18/10/2016 22:29, Mark Juszczec wrote: > On Oct 18, 2016 4:45 PM, "Mark Juszczec" wrote: >> >> >> >> On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec > wrote: >> >> Converting them to hex I see >> >> -61 = FFC3 >> >> -117 = FF8B >> >> I know >> >> Ë = 0xC3 0x8B >> >> so I

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Oct 18, 2016 4:45 PM, "Mark Juszczec" wrote: > > > > On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec wrote: > > Converting them to hex I see > > -61 = FFC3 > > -117 = FF8B > > I know > > Ë = 0xC3 0x8B > > so I'm assuming the Fs are extraneous. > > However, I'd be much mo

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec wrote: > > > Some questions (if these are not relevant, please disregard): > > I'm loading a whole bunch of modules. Could some of them be incompatible? > > DocumentRoot refers to a directory that does not exist. Is that a problem? > > What does Add

Re: X509Factory.getFromCache

2016-10-18 Thread Mark Thomas
On 18/10/2016 19:43, Rallavagu wrote: > Tomcat 7.0.70, JDK 1.7.0_80 > $java -version > java version "1.7.0_80" > Java(TM) SE Runtime Environment (build 1.7.0_80-b15) > Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) > > There are many threads BLOCKED as below and due to this these

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 10:28 AM, Mark Juszczec wrote: > > > On Tue, Oct 18, 2016 at 10:23 AM, André Warnier (tomcat) > wrote: >> >> >> Good. That our goal here. We live to help :-) >> >> > You all have been helpful beyond description. > > >> I don't think that there is a need for a formal "peti

X509Factory.getFromCache

2016-10-18 Thread Rallavagu
Tomcat 7.0.70, JDK 1.7.0_80 $java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) There are many threads BLOCKED as below and due to this these threads are very slow. Anybody else experienced th

error Tomcat 9 - Failed to detect ServletContainerInitializers

2016-10-18 Thread Pustelnik, Alex
Hello All, Please help me to fix an error om my Apache Tomcat 9.0.0 M11 (On Windows server 2012 R2 Standard). Here is from log: 18-Oct-2016 10:47:40.222 INFO [Thread-7] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"] 18-Oct-2016 10:47:40.300 INFO [Thread-7

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 10:23 AM, André Warnier (tomcat) wrote: > > > Good. That our goal here. We live to help :-) > > You all have been helpful beyond description. > I don't think that there is a need for a formal "petition". This being a > Tomcat list, and the mod_jk Connector being part of t

Re: Limit connections in multi-context environment

2016-10-18 Thread Mark Thomas
On 18/10/2016 15:04, Bryan Larson wrote: > Good morning. I recently posted a question on Stack Overflow that I think > would be better suited for this group. Here is the question: > http://stackoverflow.com/questions/40050063/tomcat-max-connections-on-a-per-context-basis. > To summarize: Besides

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 18.10.2016 16:16, Mark Juszczec wrote: On Tue, Oct 18, 2016 at 10:10 AM, André Warnier (tomcat) wrote: This being a list dedicated to Tomcat, maybe we are going a bit deep in the Apache httpd configuration and precedence rules here. It is anyway difficult to answer your questions, without

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 10:10 AM, André Warnier (tomcat) wrote: > > This being a list dedicated to Tomcat, maybe we are going a bit deep in > the Apache httpd configuration and precedence rules here. > It is anyway difficult to answer your questions, without seeing the whole > of the Apache httpd

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 18.10.2016 15:22, Mark Juszczec wrote: On Tue, Oct 18, 2016 at 9:13 AM, Mark Juszczec wrote: DocumentRoot /some/dir/thatDoesNotExist/ JkEnvVar nameWithIntlChar JkMount /myService/* lbAjpWorker JkMount /myService lbAjpWorker I forgot to ask something. The a

Limit connections in multi-context environment

2016-10-18 Thread Bryan Larson
Good morning. I recently posted a question on Stack Overflow that I think would be better suited for this group. Here is the question: http://stackoverflow.com/questions/40050063/tomcat-max-connections-on-a-per-context-basis. To summarize: Besides using multiple connectors in the server.xml file,

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 9:13 AM, Mark Juszczec wrote: > > > > DocumentRoot /some/dir/thatDoesNotExist/ > JkEnvVar nameWithIntlChar > JkMount /myService/* lbAjpWorker > JkMount /myService lbAjpWorker > > > > I forgot to ask something. The above DocumentRoot does not exist.

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 8:36 AM, André Warnier (tomcat) wrote: > On 18.10.2016 13:03, Mark Juszczec wrote: >> >> >> No, the following line: >> >> JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories >> >> is in an Apache conf file, but not in a VirtualHost entry. >> >> Can this direct

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread tomcat
On 18.10.2016 13:03, Mark Juszczec wrote: On Tue, Oct 18, 2016 at 1:14 AM, Rainer Jung wrote: Am 17.10.2016 um 22:38 schrieb Mark Juszczec: I've tried adding +ForwardURIEscaped in my conf file as follows: # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURIEsca

Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem

2016-10-18 Thread Mark Juszczec
On Tue, Oct 18, 2016 at 1:14 AM, Rainer Jung wrote: > Am 17.10.2016 um 22:38 schrieb Mark Juszczec: > >> >> >> I've tried adding +ForwardURIEscaped in my conf file as follows: >> >> # JkOptions indicate to send SSL KEY SIZE, >> JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories >> >

RE: Load balancing problem with activation=disabled

2016-10-18 Thread Kozak, Milos
I actually achieved my solution with activation directive, and such a configuration works. The only drawback is: When PROD recovers all traffic is managed by DR until DR goes down, and my case would be to take back all traffic after PROD is recovered. Milos -Original Message- From: Ra

Re: Mixed authentication

2016-10-18 Thread tomcat
On 18.10.2016 08:34, Brugnerotto Angélique wrote: -Message d'origine- De : André Warnier (tomcat) [mailto:a...@ice-sa.com] Envoyé : lundi, 17 octobre 2016 13:54 À : users@tomcat.apache.org Objet : Re: Mixed authentication On 17.10.2016 11:51, Brugnerotto Angélique wrote: Good morning ev

Re: Load balancing problem with activation=disabled

2016-10-18 Thread Rainer Jung
Am 18.10.2016 um 10:10 schrieb Kozak, Milos: Hi, I am debugging a mod_jk load-balancing configuration which has been used a lot, but for two nodes only. Currently, we made a change for more nodes, and we are facing problem. Original idea was to have one PROD and DR servers such that all req

Re: Async servlet and request recycling

2016-10-18 Thread Thomas Boniface
Just a small correction, the callback was a bit weird. The correct one is below (but that doesn't impact the behavior of the scenario) @Override public void completed(HttpResponse result) { try { try { Thread.sleep(200); } catch (InterruptedException e) {

Re: Async servlet and request recycling

2016-10-18 Thread Thomas Boniface
I think I managed to narrow things down a bit. I managed to reproduced locally the issue (it's not occuring 100% of the time but it appears after a very few attempt for me). I created a really basic webapps : package stickyads.tv; import org.apache.http.HttpResponse; import org.apache.http.clie

Load balancing problem with activation=disabled

2016-10-18 Thread Kozak, Milos
Hi, I am debugging a mod_jk load-balancing configuration which has been used a lot, but for two nodes only. Currently, we made a change for more nodes, and we are facing problem. Original idea was to have one PROD and DR servers such that all requests are handled by PROD and if PROD goes down