Starting order of Apache Tomcat server.xml components

2016-02-15 Thread Chiranga Alwis
Hi, Please refer the stackoverflow forum question. http://stackoverflow.com/questions/35403457/starting-order-of-apache-tomcat-server-xml-components/35403591#35403591

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Christoph Nenning
> Perhaps I¹m naïve, but I was looking for a Tomcat provided ³getCurrentURL > ()² call, and assumed that nothing else could have that. :-) > > Thank you for the SecurityManager suggestion, I hadn¹t thought about that. > I¹ll look in to how much of a pain that is. You can rebuild the url with

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Christoph Nenning
> > Perhaps I¹m naïve, but I was looking for a Tomcat provided > ³getCurrentURL > > ()² call, and assumed that nothing else could have that. :-) > > > > Thank you for the SecurityManager suggestion, I hadn¹t thought about > that. > > I¹ll look in to how much of a pain that is. > > > You can

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread tomcat
On 15.02.2016 11:06, Christoph Nenning wrote: Perhaps I¹m naïve, but I was looking for a Tomcat provided ³getCurrentURL ()² call, and assumed that nothing else could have that. :-) Thank you for the SecurityManager suggestion, I hadn¹t thought about that. I¹ll look in to how much of a

Block urls using X-forwaed-for

2016-02-15 Thread Dhanushka Parakrama
Hi Guys I have a Tomcat instance behind the load balancer (LB) , LB will pass the client ip address to backed tomcat instance using *X-forward-for* header . I basically want to filter user traffic based on the *X-forwaed-for* header in tomcat instance i have configured the following filter in

RE: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Cris Berneburg - US
Chris [SNIP: Chris Schultz and Greg Dougherty] > >>> The web app needs a DB password so it can connect to the DB. > >> > >> I disagree that the web app needs a password. > > > > The web app has to be able to read and write to the DB. That takes a > > password. > > I agree with Leo: your

WebEx meeting invitation: Apache Tomcat: Connection Selection

2016-02-15 Thread Mark Thomas
Hello, Mark Thomas invites you to join this WebEx meeting. Apache Tomcat: Connection Selection Tuesday, 16 February 2016 10:00 | GMT Time (London, GMT) | 30 mins JOIN WEBEX MEETING https://pivotal.webex.com/pivotal/j.php?MTID=m95de540bb15b6043a122279184c96f99 Meeting number: 647 655 074

WebEx meeting invitation: Apache Tomcat: Connector Selection

2016-02-15 Thread Mark Thomas
Hello, Mark Thomas invites you to join this WebEx meeting. Apache Tomcat: Connector Selection Tuesday, 16 February 2016 20:00 | GMT Time (London, GMT) | 30 mins JOIN WEBEX MEETING https://pivotal.webex.com/pivotal/j.php?MTID=m798bd4716dcd8a555f86ee2f77f4b002 Meeting number: 644 702 847

Re: Block urls using X-forwaed-for

2016-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dhanushka, On 2/15/16 7:03 AM, Dhanushka Parakrama wrote: > I have a Tomcat instance behind the load balancer (LB) , LB will > pass the client ip address to backed tomcat instance using > *X-forward-for* header . Note that the HTTP header is

Re: Block urls using X-forwaed-for

2016-02-15 Thread tomcat
On 15.02.2016 13:03, Dhanushka Parakrama wrote: Hi Guys I have a Tomcat instance behind the load balancer (LB) , LB will pass the client ip address to backed tomcat instance using *X-forward-for* header . I basically want to filter user traffic based on the *X-forwaed-for* header in tomcat

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregory, On 2/12/16 7:03 PM, Dougherty, Gregory T., M.S. wrote: > It appears I’ve done a poor job explaining the situation, so let me > try again. > > We have multiple apps running on a production Tomcat server. Each > one of those apps has one or

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregory, On 2/12/16 6:46 PM, Dougherty, Gregory T., M.S. wrote: > Chris, > > > On 2/12/16, 5:27 PM, "Christopher Schultz" > wrote: > >> Gregory, >> >> On 2/12/16 4:19 PM, Dougherty, Gregory T., M.S. wrote: >>> On

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Dougherty, Gregory T., M.S.
Chris, On 2/12/16, 7:35 PM, "Leo Donahue" wrote: >On Fri, Feb 12, 2016 at 5:46 PM, Dougherty, Gregory T., M.S. < >dougherty.greg...@mayo.edu> wrote: > >> Chris, >> >> >> On 2/12/16, 5:27 PM, "Christopher Schultz" >> >> wrote: >> >> >Gregory,

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 2/12/16 8:35 PM, Leo Donahue wrote: > On Fri, Feb 12, 2016 at 5:46 PM, Dougherty, Gregory T., M.S. < > dougherty.greg...@mayo.edu> wrote: > >> Chris, >> >> >> On 2/12/16, 5:27 PM, "Christopher Schultz" >>

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Dougherty, Gregory T., M.S.
Chris, On 2/15/16, 9:20 AM, "Christopher Schultz" wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Gregory, > >On 2/12/16 6:46 PM, Dougherty, Gregory T., M.S. wrote: >> Chris, >> >> >> On 2/12/16, 5:27 PM, "Christopher Schultz" >>

Re: Is there a way for code running on Tomcat 7+ to determine the URL of the Web App it's running under?

2016-02-15 Thread Dougherty, Gregory T., M.S.
How to trade information with a specified URL calling java code in tomcat/lib: 1: Servlet calls Decryptor.start (String whoIAm, int validator, int xOr) 2: Code calls Servlet http get with id=randomly generated int 3: Servlet returns validator in response to the http get call. 0 is not a valid

Re: Block urls using X-forwaed-for

2016-02-15 Thread Dave Fisher
You can take the source code for RemoteIPFilter and have it look at the X-Forwarded-For header. Even better offer a patch to RemoteIPFilter to allow the header field name to be configured. You are not the only one with this use case. Regards, Dave Sent from my iPhone > On Feb 15, 2016, at