AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Clemens Wyss DEV
>>> (The reuse can be disabled via a system property, see >>> RECYCLE_FACADES. I usually do so, for better security) >> Would I need to compile my own tomcat? >No, just set the system property as per the docs. What ist he (performance) impact of setting this property to "true"? -

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-12 Thread Lmhelp1
On 2014-03-11 7:44 PM, André Warnier [via Tomcat] wrote: Maybe easier : supposing that your user-id is "lmhelp1". Do "adduser lmhelp1 tomcat6" (that will add your user-id to the group tomcat6). Then logout, and login again. Then you would already have the permissions to read/write any file that h

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-12 Thread André Warnier
Lmhelp1 wrote: On 2014-03-11 7:44 PM, André Warnier [via Tomcat] wrote: Maybe easier : supposing that your user-id is "lmhelp1". Do "adduser lmhelp1 tomcat6" (that will add your user-id to the group tomcat6). Then logout, and login again. Then you would already have the permissions to read/write

Automatic deployment with TCD deletes customized context.xml file

2014-03-12 Thread Jesse Barnum
I was very happy to see the changes to automatic deployment, and that customized context.xml files in conf/Catalina/localhost/.xml are preserved when a war file is replaced on the server. However, when using the ant tasks that come with TCD (and I suspect when using the Tomcat manager, although

Re: AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Mark Thomas
On 12/03/2014 08:38, Clemens Wyss DEV wrote: (The reuse can be disabled via a system property, see RECYCLE_FACADES. I usually do so, for better security) >>> Would I need to compile my own tomcat? > >> No, just set the system property as per the docs. > What ist he (performance) impact

Re: AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/03/2014 06:19, Clemens Wyss DEV wrote: >> VelocityViewServlet or VelocityLayoutServlet? > None of these in use > > I give my "szenario" another try ;) [HTTP REQUEST 1] enters [HTTP > REQUEST 1] starts writing to the response.writer -> at a "cer

Re: Automatic deployment with TCD deletes customized context.xml file

2014-03-12 Thread Mark Thomas
On 12/03/2014 12:17, Jesse Barnum wrote: > I was very happy to see the changes to automatic deployment, and that > customized context.xml files in conf/Catalina/localhost/.xml > are preserved when a war file is replaced on the server. > > However, when using the ant tasks that come with TCD (and I

AUTO: Piotr Grzywna is out of the office. (returning 03/13/2014)

2014-03-12 Thread Piotr Grzywna
I am out of the office until 03/13/2014. I will respond to your message when I return. Note: This is an automated response to your message "AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request" sent on 12/03/2014 9:38:49. This is the only notification you w

Re: Automatic deployment with TCD deletes customized context.xml file

2014-03-12 Thread Jesse Barnum
On Mar 12, 2014, at 8:41 AM, Mark Thomas wrote: > Hmm. It looks like the update command does an undeployment followed by a > deploy rather than a replacement of the WAR file and a redeploy. You > aren't going to be able to fix that without code changes to Tomcat. > Changing the behaviour seems re

Re: Tomcat 8.0

2014-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alfonso, On 3/11/14, 5:31 PM, Gallegos, Alfonso wrote: > Does anyone have an idea when the first stable version of tomcat 8 > will be released? "When it's ready". Have you done any personal testing on the latest beta (8.0.3)? - -chris -BEGIN

Re: AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 3/12/14, 8:34 AM, Mark Thomas wrote: > On 12/03/2014 08:38, Clemens Wyss DEV wrote: > (The reuse can be disabled via a system property, see > RECYCLE_FACADES. I usually do so, for better security) Would I need to compile my ow

Re: Passing additional parameters using j_security_check (Form based authentication)

2014-03-12 Thread Neeraj Sinha
Hi Chris, On 12 March 2014 00:37, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Neeraj, > > On 3/8/14, 2:06 AM, Neeraj Sinha wrote: > > Chris, > > > > On 7 March 2014 21:43, Christopher Schultz > > wrote: > > > > Neeraj, > > > > On 3/6/14, 4:34 AM, Neeraj Sin

Re: Passing additional parameters using j_security_check (Form based authentication)

2014-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neeraj, On 3/12/14, 10:47 AM, Neeraj Sinha wrote: Thanks. Actually in the realm implementation, I make a call to backend authenticate () method which validates various login rules and if any of them fails, it returns false and the user is not allowe

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-12 Thread Lmhelp1
Hello and thank you for your answer. On 2014-03-12 11:54 AM, André Warnier wrote: If all you need to do, is to 1) read those files, to look at them 2) if they are ok, move them somewhere else 3) if they are not ok, delete them That's it. then (under Linux) you do not need write permissions t

AW: AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Clemens Wyss DEV
> Do you have any proof of this or is this just guess work? No guessing. Am taking into account apache's access-log and our application logging. We log the IP (i.e. request#getRemoteAddress) of sepcific requests into our application logs and from time to time see the IP oft he "previous request"

Re: AW: AW: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Clemens, On 3/12/14, 11:34 AM, Clemens Wyss DEV wrote: >> Do you have any proof of this or is this just guess work? > No guessing. Am taking into account apache's access-log and our > application logging. We log the IP (i.e. request#getRemoteAddress

AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Clemens Wyss DEV
> By all means, post the relevant portion of the log file. I don't think this is of big help here. > It would be very helpful if you'd answer my earlier question about >how you take a request and route it to Velocity We put the request into the velocityContext and hence have the possibility to a

Re: tomcat 6 refuses mod_jk connections after server runs for a couple of days

2014-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Isaac, On 3/11/14, 6:56 PM, Isaac Gonzalez wrote: > > > -Original Message- From: Christopher Schultz > [mailto:ch...@christopherschultz.net] Sent: Friday, March 07, 2014 > 8:18 AM To: Tomcat Users List Subject: Re: tomcat 6 refuses mod_jk

Re: AW: request.getRemoteAddr() sometimes returning IP address from the previous request

2014-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Clemens, On 3/12/14, 1:34 PM, Clemens Wyss DEV wrote: >> By all means, post the relevant portion of the log file. > > I don't think this is of big help here. But you also don't know what you are doing. If you don't help us, we can't help you. Tomc

Re: DBCP2 connection pool leak?

2014-03-12 Thread Felipe Jaekel
Changing to tomcat-jdbc solved the problem. Thanks 2014-02-28 16:03 GMT-03:00 Filip Hanik : > you can try out tomcat-jdbc, and see if that solves your problem, it may > help you narrow it down. > http://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html > > > > > On Fri, Feb 28, 2014 at 11:26 AM,

Site down for maintenance senario

2014-03-12 Thread John Smith
Is there a straightforward way to toggle or add something in Tomcat, in the event a webapp is intentionally taken 'offline for maintenance"? The user would receive the same single notification page saying as much, for any and all requests. Tomcat 7.0.42

Re: Site down for maintenance senario

2014-03-12 Thread Leo Donahue
On Wed, Mar 12, 2014 at 11:28 AM, John Smith wrote: > Is there a straightforward way to toggle or add something in Tomcat, in the > event a webapp is intentionally taken 'offline for maintenance"? The user > would receive the same single notification page saying as much, for any and > all requests

Re: Site down for maintenance senario

2014-03-12 Thread Leo Donahue
On Wed, Mar 12, 2014 at 11:51 AM, Leo Donahue wrote: > On Wed, Mar 12, 2014 at 11:28 AM, John Smith wrote: > >> Is there a straightforward way to toggle or add something in Tomcat, in >> the >> event a webapp is intentionally taken 'offline for maintenance"? The user >> would receive the same sin

Re: Site down for maintenance senario

2014-03-12 Thread Leo Donahue
On Wed, Mar 12, 2014 at 11:58 AM, Leo Donahue wrote: > On Wed, Mar 12, 2014 at 11:51 AM, Leo Donahue wrote: > >> On Wed, Mar 12, 2014 at 11:28 AM, John Smith wrote: >> >>> Is there a straightforward way to toggle or add something in Tomcat, in >>> the >>> event a webapp is intentionally taken 'o

Re: Site down for maintenance senario

2014-03-12 Thread André Warnier
Leo Donahue wrote: On Wed, Mar 12, 2014 at 11:58 AM, Leo Donahue wrote: On Wed, Mar 12, 2014 at 11:51 AM, Leo Donahue wrote: On Wed, Mar 12, 2014 at 11:28 AM, John Smith wrote: Is there a straightforward way to toggle or add something in Tomcat, in the event a webapp is intentionally take

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-12 Thread André Warnier
Lmhelp1 wrote: Hello and thank you for your answer. On 2014-03-12 11:54 AM, André Warnier wrote: If all you need to do, is to 1) read those files, to look at them 2) if they are ok, move them somewhere else 3) if they are not ok, delete them That's it. then (under Linux) you do not need wri

Re: Files created by a Tomcat webapp and owner, owner group, permissions for this file

2014-03-12 Thread Neven Cvetkovic
On Mar 12, 2014 11:31 PM, "André Warnier" wrote: > > Lmhelp1 wrote: >> >> Hello and thank you for your answer. >> >> On 2014-03-12 11:54 AM, André Warnier wrote: >>> >>> If all you need to do, is to >>> 1) read those files, to look at them >>> 2) if they are ok, move them somewhere else >>> 3) if

Re: Site down for maintenance senario

2014-03-12 Thread Leo Donahue
On Mar 12, 2014 2:15 PM, "André Warnier" wrote: > > I was going to suggest to replace the normal myApp.war by one named similarly, but returning a "on maintenance" page. > But the solution above is cleverer. > Bonus points. Thanks. I've never had bonus points before. ;)

AUTO: Uri Shani/Haifa/IBM is out of office, w/no business email. (returning 16/03/2014)

2014-03-12 Thread Uri Shani
I am out of the office until 16/03/2014. Urgent? call +972-546976282 Note: This is an automated response to your message "AW: request.getRemoteAddr() sometimes returning IP address from the previous request" sent on 12/03/2014 19:34:48. This is the only notification you will receive while thi

old versions with parallel deployments

2014-03-12 Thread Toby Lazar
If I deployed multiple versions of a single application using parallel deployments, is there a way I can access old versions of the app? Is there a way to go to version 001 using something like: /application##001 after version 002 is already deployed? I tried going to that URL but tomcat al