Re: tomcat virtualhost configuration confuse

2015-09-08 Thread Mike.Guo
Found one hack solutions: create a soft link from other folder to ROOT Sent from my iPhone > 在 2015年9月7日,09:51,Mike Guo 写道: > > Hi, folks. > > > I really need your guys help. I got so confuse about the tomcat 8.0.26 > virtual host configuration . > > > per tomcat

WARNING [Tribes-Task-Receiver-3] org.apache.catalina.ha.session.ClusterSessionListener.messageReceived Context manager doesn't exist

2015-09-08 Thread Martijn Bos
Hi all, I tried to create a cluster two hosts. At which I did not succeeded completely. OS(both systems): SMP Debian 3.16.7 java (both systems): martijn@bloemkool:~/apache-tomcat-8.0.26/conf$ java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java

Undefined behaviour with Credential Handler

2015-09-08 Thread Sreyan Chakravarty
Okay is if I have stored my password in my DB with SHA256 encryption, can the credential handler declared in the realm work if the it is declared with SHA512 ? As far as I know it must be same algorithm, salt and iterations for the hash to be matched perfectly. Now take my case-: Okay this

Tomcat access log customization

2015-09-08 Thread Eric Tang
Dear Tomcat support, I am a developer working on Java applications and have been using different containers and deployment platforms. I would like to have a question on the access logs. The access logs of Tomcat is configured in $TOMCAT_HOME/conf/server.xml, the "Valve" attribute with

Re: Tomcat 8 Session Timeout

2015-09-08 Thread Theo . Sweeny
Hi Chris - I added this value to the Engine container - backgroundProcessorDelay="20" This has made a big improvement - there is much more frequent clear down of the sessions. Is there a config setting for maximum session age? The reason for asking is that in a REST stateless environment

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() >

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

2015-09-08 Thread 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 Brian
Hello José, That’s a nice idea indeed (A VERY NICE ONE!), but an extra work because of the networking effort. I'm talking about a site that can get hundreds of requests per second. Since Nginx has access to this information, I bet there must be a way to pass it to Tomcat the same way the IP

RE: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Jeffrey Janner
> -Original Message- > From: Jose María Zaragoza [mailto:demablo...@gmail.com] > Sent: Tuesday, September 08, 2015 9:22 AM > To: Tomcat Users List > Subject: Re: Multiple JSESSIONID cookies being presented. > > 2015-09-08 15:51 GMT+02:00 Jeffrey Janner

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 22:10 GMT+02:00 Brian : > Hello José, > > That’s a nice idea indeed (A VERY NICE ONE!), but an extra work because of > the networking effort. I'm talking about a site that can get hundreds of > requests per second. But you would want to execute

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

2015-09-08 Thread Brian
mm.. ... Well, so far I have always assumed that Tomcat itself has always made this effort (assuming that it is enabled to do so in the connector), so that when I execute the method I'm just retrieving the value. I'm I wrong? In this case when using Nginx+Tomcat, I assume that Nginx

RE: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Caldarale, Charles R
> From: Jose María Zaragoza [mailto:demablo...@gmail.com] > Subject: Re: Multiple JSESSIONID cookies being presented. > > Thanks for the clarification of what's supposed to happen on receipt, Jose. > > However, I am describing what happens on first contact from the client to > > the server. > >

RE: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Jeffrey Janner
> -Original Message- > From: Jose María Zaragoza [mailto:demablo...@gmail.com] > Sent: Tuesday, September 08, 2015 9:08 AM > To: Tomcat Users List > Subject: Re: Multiple JSESSIONID cookies being presented. > > 2015-09-08 15:51 GMT+02:00 Jeffrey Janner

Re: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Jose María Zaragoza
2015-09-08 22:57 GMT+02:00 Jeffrey Janner : >> -Original Message- >> From: Jose María Zaragoza [mailto:demablo...@gmail.com] >> Sent: Tuesday, September 08, 2015 9:08 AM >> To: Tomcat Users List >> Subject: Re: Multiple JSESSIONID

RE: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread 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 JSESSIONID cookies being presented. > > -BEGIN PGP SIGNED MESSAGE- > Hash:

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: Multiple JSESSIONID cookies being presented.

2015-09-08 Thread Igor Cicimov
On 09/09/2015 7:13 AM, "Jeffrey Janner" wrote: > > > -Original Message- > > From: Jose María Zaragoza [mailto:demablo...@gmail.com] > > Sent: Tuesday, September 08, 2015 9:22 AM > > To: Tomcat Users List > > Subject: Re: Multiple

Unable to get the jmx information for tomcat 8 from command line(curl command)

2015-09-08 Thread Andrew M
Hi Guys,  Any idea why it is saying "401 Unauthorized"  I execute the following command: curl -1 --max-time 10 -s -k -u tomcat_jmx:'eyFW$&$FvSIp#FUk' --url https://pentagon505:8443/deploy/jmxproxy? I have added the user to tomcat-users.xml configuration file as well         Where are the things

Issue in reading SSL certificate

2015-09-08 Thread Hirnya Kaushal
Dear, I am facing a very peculiar issue with the SSL certificate for Tomcat7. I am using Java 7 and Tomcat 1.7.075. and facing the below issue with the SSL certificate. I have followed the below steps to generate the certificate and apply same on server.xml. Generated the CSR file by using