Re: Tomcat 7 Web Service Shutdown Can't Stop Threads

2016-03-04 Thread patrycio .
Chris sing a song for us. Em 04/03/2016 16:13, "Chris Brown" escreveu: > Tomcat version: 7.0.42 > Server OS: Sun Solaris > UCP Version: Oracle 12c > Oracle Driver: ojdbc7 > JDK version: 1.8.0_31 > > Issue Description: > When tomcat shuts down our web service during a hot

Re: Multiple domian names one web site different content

2016-03-04 Thread john Matlock
There is another approach, which is what I use. I presume that you are using some kind of web programming language such as ASP, ColdFusion (which I use) or something like that. All (I believe) web servers maintain a list of CGI Variables, one of which is: SERVER_NAME Your server's fully

Re: Modjk surfacing errno 115

2016-03-04 Thread Rainer Jung
Am 05.03.2016 um 00:09 schrieb Max Lynch: Hi Rainer, I will do my best to provide those things. Here is what looks like the full sequence from the our log: [46055:3512666992] [info] jk_open_socket::jk_connect.c (627): connect to _ip_:12409 failed (errno=115) [46055:3512666992] [info]

Re: Modjk surfacing errno 115

2016-03-04 Thread Max Lynch
Hi Rainer, I will do my best to provide those things. Here is what looks like the full sequence from the our log: [46055:3512666992] [info] jk_open_socket::jk_connect.c (627): connect to _ip_:12409 failed (errno=115) [46055:3512666992] [info] ajp_connect_to_endpoint::jk_ajp_common.c (992):

RE: Multiple domian names one web site different content

2016-03-04 Thread Jeffrey Janner
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Friday, March 04, 2016 3:36 PM > To: Tomcat Users List > Subject: Re: Multiple domian names one web site different content > > -BEGIN PGP SIGNED MESSAGE- >

Re: Modjk surfacing errno 115

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Max, On 3/4/16 2:35 PM, Max Lynch wrote: > Hi there, > > We have a very heavily used implementation of modjk 1.2.35 running > in Apache 2.2.15 > We're posting this here to try and gather more data. Our process > prohibits an upgrade of any kind

Re: Multiple domian names one web site different content

2016-03-04 Thread Tim Watts
On Fri, 2016-03-04 at 21:46 +0100, Jose María Zaragoza wrote: > 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

RE: Understanding how to controlling what data is written to log4j appenders

2016-03-04 Thread Cris Berneburg - US
Hi Joleen -Original Message- From: Joleen Barker [mailto:oldenuf2no...@gmail.com] Sent: Thursday, March 03, 2016 11:23 PM To: Tomcat Users List Subject: Re: Understanding how to controlling what data is written to log4j appenders > Hello, > > I don't know if I should use a new thread or

Re: Multiple domian names one web site different content

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jose, On 3/4/16 3:46 PM, Jose María Zaragoza wrote: > 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

Re: Tomcat 7 Web Service Shutdown Can't Stop Threads

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 3/4/16 2:13 PM, Chris Brown wrote: > Tomcat version: 7.0.42 Server OS: Sun Solaris UCP Version: Oracle > 12c Oracle Driver: ojdbc7 That doesn't look like an Oracle JDBC driver version I've seen before. Can you clarify? > JDK version:

Re: Modjk surfacing errno 115

2016-03-04 Thread Rainer Jung
Am 04.03.2016 um 20:35 schrieb Max Lynch: Hi there, We have a very heavily used implementation of modjk 1.2.35 running in Apache 2.2.15 i686 on CentOS 6.7 x86_64. After Apache startup, our system will perform optimally with no errors for about 24 hours, after which we begin to see this message:

RE: Multiple domian names one web site different content

2016-03-04 Thread Caldarale, Charles R
> From: David kerber [mailto:dcker...@verizon.net] > Subject: Re: Multiple domian names one web site different content > No, one tomcat instance can't listen on two different ports at the same > time. ??? If that were true, Tomcat couldn't support both HTTP and HTTPS. Simply configure

Re: Multiple domian names one web site different content

2016-03-04 Thread David kerber
On 3/4/2016 3:46 PM, Jose María Zaragoza wrote: 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

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 ,

Modjk surfacing errno 115

2016-03-04 Thread Max Lynch
Hi there, We have a very heavily used implementation of modjk 1.2.35 running in Apache 2.2.15 i686 on CentOS 6.7 x86_64. After Apache startup, our system will perform optimally with no errors for about 24 hours, after which we begin to see this message: connecting to backend failed. Tomcat is

Tomcat 7 Web Service Shutdown Can't Stop Threads

2016-03-04 Thread Chris Brown
Tomcat version: 7.0.42 Server OS: Sun Solaris UCP Version: Oracle 12c Oracle Driver: ojdbc7 JDK version: 1.8.0_31 Issue Description: When tomcat shuts down our web service during a hot deployment threads are left running that tomcat cannot shutdown. I believe the threads are from the universal

Re: Multiple domian names one web site different content

2016-03-04 Thread Andrew Hardy
Thank you do much Chris, I really appreciate your input and taking the time to respond. Sent with AquaMail for Android http://www.aqua-mail.com On 4 March 2016 18:12:11 Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On

Re: clustered environment

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Usair, On 3/1/16 12:00 AM, uzair rashid wrote: > Background,: windows boxes, cms servers, bobj, tomcat servers > 7.057. Distributed landscape. (Clustered) > > Ive configured the server xml for clustering and distributable to > true in the web

Re: Multiple domian names one web site different content

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 3/4/16 7:44 AM, Andrew Hardy wrote: > New to web servers. Welcome. > This may be a spring MVC question rather than tomcat, I'm not > sure. > > I understand I can map multiple domains to a single ip address > using DNS. I have read some

RE: Understanding how to controlling what data is written to log4j appenders

2016-03-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Understanding how to controlling what data is written to log4j > appenders > Can you confirm that the class in question is actually using log4j for > output? There's little that can be done if the class is using >

Re: Understanding how to controlling what data is written to log4j appenders

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joleen, On 3/3/16 11:23 PM, Joleen Barker wrote: > I don't know if I should use a new thread or not but this is a > continuation of this issue. Replying to this issue is entirely appropriate. > I found that even after my changes there was very

Re: Tomcat access log - body of a request shows in the next request

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 3/4/16 3:26 AM, Mark Thomas wrote: > On 03/03/2016 22:18, rails wrote: >> I have a weird behavior in my tomcat (7). >> >> An external app sends a bunch of DELETE requests with a body to >> my TomCat WebApp. The body is being neglected in

Re: Tomcat Training

2016-03-04 Thread tomcat
On 04.03.2016 17:58, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 3/3/16 11:39 AM, Brookbanks, Paul wrote: Could someone in the Toronto, Ontario, Canada area recommend a place that provides tomcat administrative training. I would consider online training

Re: Tomcat Training

2016-03-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 3/3/16 11:39 AM, Brookbanks, Paul wrote: > Could someone in the Toronto, Ontario, Canada area recommend a > place that provides tomcat administrative training. I would > consider online training but prefer an “in-class” environment. >

Re: Performance regression from 7 to 8

2016-03-04 Thread Konstantin Kolinko
The rules: http://tomcat.apache.org/lists.html#tomcat-users -> 6. do not top-post -> 7. use plain text in your e-mail No clue what is instruction in your piece of code is "the yellow" one. 2016-03-04 13:24 GMT+03:00 Tullio Bettinazzi : > The problem is all in this small

Re: What would happen if there were 2 log4j.jar files in the same library

2016-03-04 Thread Joleen Barker
Thank you. I will make sure there is only one in the lib directory. -Joleen On Fri, Mar 4, 2016 at 9:54 AM, Chris Gamache wrote: > Hi Joleen, > > You may already know most of this, but just in case: > > Inside or outside of tomcat, if you have two classes in the same

Re: Stuck threads reading socket

2016-03-04 Thread Woonsan Ko
Thank you so much, Mark! It helped a lot! Appreciate much for sharing the slides, too. Cheers, Woonsan On Fri, Mar 4, 2016 at 3:28 AM, Mark Thomas wrote: > On 04/03/2016 00:51, Woonsan Ko wrote: >> I have tomcat instances (6.0.44) which are proxied by Apache 2.4.18 >>

Re: Context PreResources configuration question

2016-03-04 Thread Mark Thomas
On 03/03/2016 20:37, Mark Thomas wrote: > On 03/03/2016 17:08, Philippe Busque wrote: > > > >> Is it normal that the context is initialized BEFORE the host is started, >> while expecting the host to create the structure, but failing because >> the structure is not present? >> >> Should the

Re: What would happen if there were 2 log4j.jar files in the same library

2016-03-04 Thread Chris Gamache
Hi Joleen, You may already know most of this, but just in case: Inside or outside of tomcat, if you have two classes in the same classpath, both with the same class name and package name, it's often hit-or-miss which one will get picked. Weird things happen. And different weird things happen

What would happen if there were 2 log4j.jar files in the same library

2016-03-04 Thread Joleen Barker
I saw there is log4j-1.2.8-1.jar and log4j-1.2.17.jar in the WEB-INF/lib directory for a web application and I wonder what happens if there are two in the same library. Thank you, -Joleen

Re: Windows Authentication

2016-03-04 Thread tomcat
On 04.03.2016 14:40, George Stanchev wrote: It does not look like HTTP Basic. Did you try different browsers? IE, Chrome, FF? Do you get same behavior with all? Is the user logging in member of the domain your IWA is set up to? Did you try /un/-checking the "Enable WIA authentication"

RE: Windows Authentication

2016-03-04 Thread George Stanchev
It does not look like HTTP Basic. Did you try different browsers? IE, Chrome, FF? Do you get same behavior with all? Is the user logging in member of the domain your IWA is set up to? If you set up a 3rd party IWA provider (such as Waffle), does it act the same on all 3 browsers? There was a

RE: Performance regression from 7 to 8

2016-03-04 Thread Tullio Bettinazzi
Done and nothing changed. Any suggestion ? Here the code. package axioma.rubik.engine.web.servlet; import java.io.*; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.*; @WebServlet(name="Test8", description="Direct update of data",

Multiple domian names one web site different content

2016-03-04 Thread Andrew Hardy
New to web servers. This may be a spring MVC question rather than tomcat, I'm not sure. I understand I can map multiple domains to a single ip address using DNS. I have read some stuff on how to set up multiple virtual hosts on the same host (ip address) on tomcat which requests can be

Re: Performance regression from 7 to 8

2016-03-04 Thread Rémy Maucherat
2016-03-04 12:42 GMT+01:00 Mark Thomas : > On 04/03/2016 11:17, Tullio Bettinazzi wrote: > > This servlet reproduces the problem perfectly. > > Getting better but still some room for improvement. > - You don't need to implement doPost() > - You don't need to call System.gc() (or

Re: Performance regression from 7 to 8

2016-03-04 Thread Mark Thomas
On 04/03/2016 11:17, Tullio Bettinazzi wrote: > This servlet reproduces the problem perfectly. Getting better but still some room for improvement. - You don't need to implement doPost() - You don't need to call System.gc() (or if you do look there for the problem) - You do need to remove the

RE: Performance regression from 7 to 8

2016-03-04 Thread Tullio Bettinazzi
This servlet reproduces the problem perfectly. package axioma.rubik.engine.web.servlet; import java.io.*; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.*; import axioma.rubik.engine.web.ComunicationChannelHttp; import

Re: Performance regression from 7 to 8

2016-03-04 Thread Mark Thomas
On 04/03/2016 10:24, Tullio Bettinazzi wrote: > The problem is all in this small piece of code > ByteArrayOutputStream bbs = new ByteArrayOutputStream(); > BufferedOutputStream bos = new BufferedOutputStream(bbs); > trans.eseguiTrasformazioneOut(bos); > try { >

RE: Performance regression from 7 to 8

2016-03-04 Thread Tullio Bettinazzi
The problem is all in this small piece of code ByteArrayOutputStream bbs = new ByteArrayOutputStream(); BufferedOutputStream bos = new BufferedOutputStream(bbs); trans.eseguiTrasformazioneOut(bos); try { bos.flush();

Re: Windows Authentication

2016-03-04 Thread Chanchal Kariwala
But how does the browser decide on Basic Auth? Usually 401 Response contains WWW-Authenticate: Basic realm="MyREALM" to indicate Basic Auth Thanks, Chanchal R. Kariwala Product Engineer Seclore Technology chanchal.kariw...@seclore.com www.seclore.com On Fri, Mar 4, 2016 at 3:16 PM, André

Re: Windows Authentication

2016-03-04 Thread tomcat
On 04.03.2016 10:11, Chanchal Kariwala wrote: I tries what you asked and I have observed the following 1. Browser sends a request for the resource Server replies with HTTP 401 and WWW-Authenticate: Negotiate in Response Headers Fine. 2. Browser sends a new request with the following in

Re: Restricting manager app

2016-03-04 Thread Mark Thomas
On 04/03/2016 09:44, Martin Holz (for Usenet) wrote: > Hi, > > is there a simple a way to restrict, what the Tomcat manager app can do? > I want to deny deploying webapps or changing the configuration over the > net. But I want to allow starting, stopping and reloading. > > This could probably

Restricting manager app

2016-03-04 Thread Martin Holz (for Usenet)
Hi, is there a simple a way to restrict, what the Tomcat manager app can do? I want to deny deploying webapps or changing the configuration over the net. But I want to allow starting, stopping and reloading. This could probably be done by security constraints or a servlet filter, at least

Re: Performance regression from 7 to 8

2016-03-04 Thread Mark Thomas
On 04/03/2016 09:39, Tullio Bettinazzi wrote: > I applied tour suggestion and analyzed, with firebug, the composition of the > time. > The difference between 7 and 8 is the "receiving" time which is more or less > zero in 7 and 2sec. in 8. > How can I understand such difference ? Try creating

RE: Performance regression from 7 to 8

2016-03-04 Thread Tullio Bettinazzi
I applied tour suggestion and analyzed, with firebug, the composition of the time. The difference between 7 and 8 is the "receiving" time which is more or less zero in 7 and 2sec. in 8. How can I understand such difference ? Tks Tullio P.S. : same server, same client, same network, same code

Re: Windows Authentication

2016-03-04 Thread Chanchal Kariwala
I tries what you asked and I have observed the following 1. Browser sends a request for the resource Server replies with HTTP 401 and WWW-Authenticate: Negotiate in Response Headers 2. Browser sends a new request with the following in Request Headers Authorization: Negotiate

Re: Tomcat access log - body of a request shows in the next request

2016-03-04 Thread Olaf Kock
In addition to Mark's answer: Please add the *exact* tomcat version number ("7" is not sufficient) that you're running (make sure it's not an old one - it's unnecessary to hunt down bugs if they're long fixed. Also, when you crosspost

Re: Stuck threads reading socket

2016-03-04 Thread Mark Thomas
On 04/03/2016 00:51, Woonsan Ko wrote: > I have tomcat instances (6.0.44) which are proxied by Apache 2.4.18 > (+mod_proxy). SSL enabled on Apache side. > One day it was not responding and observed that all the catalina-exec > threads (25 maxthreads at the moment) were stuck in reading socket in >

Re: Tomcat access log - body of a request shows in the next request

2016-03-04 Thread Mark Thomas
On 03/03/2016 22:18, rails wrote: > I have a weird behavior in my tomcat (7). > > An external app sends a bunch of DELETE requests with a body to my TomCat > WebApp. > The body is being neglected in the webapp (I dont know why the app sends > it, the paramters the webapp needs are in the url). >