You won't believe it. I deployed the app as war file and just to make sure I checked out the location \conf\Catalina\localhost to find a context.xml file named user.xml like the name of the webapps with exactly the same content. This is strange!
Cheers, Pete > -----Ursprüngliche Nachricht----- > Von: David Smith [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 14. November 2006 15:51 > An: Tomcat Users List > Betreff: Re: AW: Problem with RemoteAddrValve in Context.xml > > I suspect the context.xml file in META-INF isn't honored unless you > deploy your webapp as a web archive file (.war). Sounds to me like this > webapp is an exploded folder under webapps directory. In that case, > copy the context.xml file to Catalina/localhost, rename to match your > web application's context and re-start the webapp. You should find the > valve suddenly start working. > > --David > > Peter Neu wrote: > > >OK,to answer both questions: > > > >I got tomcat version 5.5.20 running on a windows box. > > > >I put my context.xml in a directory named META-INF which > >is on the same level as WEB-INF > > > >Cheers, > >Pete > > > > > > > >>-----Ursprüngliche Nachricht----- > >>Von: Martin Gainty [mailto:[EMAIL PROTECTED] > >>Gesendet: Dienstag, 14. November 2006 15:29 > >>An: Tomcat Users List > >>Betreff: Re: Problem with RemoteAddrValve in Context.xml > >> > >>I verified the allow attribute is operational in RemoteAddrValve.. > >>(that is when allow="192\.168\.200\.188" only 192.168.200.188 is > >>authorised to that tomcat instance) > >> > >>could you verify which IP's are being authorised? > >>could you tell us which version of Tomcat you are executing? > >> > >>Thanks, > >>M- > >>This e-mail communication and any attachments may contain confidential > and > >>privileged information for the use of the > >>designated recipients named above. If you are not the intended > recipient, > >>you are hereby notified that you have received > >>this communication in error and that any review, disclosure, > >>dissemination, distribution or copying of it or its > >>contents > >>----- Original Message ----- > >>From: "Peter Neu" <[EMAIL PROTECTED]> > >>To: "'Tomcat Users List'" <users@tomcat.apache.org> > >>Sent: Tuesday, November 14, 2006 6:49 AM > >>Subject: AW: Problem with RemoteAddrValve in Context.xml > >> > >> > >>Ok, I changed the allow attribute to a regular exp. Looks like this now: > >> > >> <Valve className="org.apache.catalina.valves.RemoteAddrValve" > >> allow="192\.168\.200\.188" > >> /> > >> > >>But still the filter lets all users access the application. > >> > >>Cheers, > >>Pete > >> > >> > >> > >> > >>>-----Ursprüngliche Nachricht----- > >>>Von: Mark Thomas [mailto:[EMAIL PROTECTED] > >>>Gesendet: Dienstag, 14. November 2006 01:11 > >>>An: Tomcat Users List > >>>Betreff: Re: Problem with RemoteAddrValve in Context.xml > >>> > >>>Peter Neu wrote: > >>> > >>> > >>>>I'm trying to define an ip access filter with RemoteAddrValve in the > >>>>context.xml file I deploy with my war file. > >>>> > >>>>If I read the documentation right the only thing to be done is write > >>>> > >>>> > >>the > >> > >> > >>>>following into the context.xml file: > >>>> > >>>><?xml version="1.0" encoding="UTF-8"?> > >>>><Context path="/user/public/"> > >>>> <Valve className="org.apache.catalina.valves.RemoteAddrValve" > >>>> allow="192.168.200.188" > >>>> /> > >>>></Context> > >>>> > >>>>But this does not work out. Does anyone know what's wrong? > >>>> > >>>> > >>>As the docs state, you need to use a regular expression. > >>>"192.168.200.188" doesn't do what you think it does since "." is a > >>>special character in regular expressions. > >>> > >>>Mark > >>> > >>>--------------------------------------------------------------------- > >>>To start a new topic, e-mail: users@tomcat.apache.org > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > >>--------------------------------------------------------------------- > >>To start a new topic, e-mail: users@tomcat.apache.org > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > > > > >--------------------------------------------------------------------- > >To start a new topic, e-mail: users@tomcat.apache.org > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]