tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sinkinson,Andrew [NCR]" <Andrew.Sinkin...@ec.gc.ca>
Subject Configuring RemoteHostValve
Date Thu, 26 Aug 2004 17:53:26 GMT


> Hi All,
> 
> I am having difficulty in setting up a RemoteHostValve for my WebApp.
> I have created a configuration descriptor file named CST_CLIENT.xml
> with the following Context defined:
>    
>  <Context path="/CST_CLIENT">
>       <Valve className="org.apache.catalina.valves.RemoteHostValve"
> allow="*.gc.ca"/>
>       <!-- <Valve
> className="org.apache.catalina.valves.RemoteAddrValve"
> allow="142.135.*"/> -->
> </Context>
> 
> I am running Tomcat 5.0.27 on Windows 2000 Server.  I have no problem
> when I use RemoteAddrValve but cannot get the RemoteHostValve to work.
> Here is the error in the stdout.log file:
> 
> SEVERE: Error deploying configuration descriptor CST_CLIENT.xml
> java.io.IOException: java.lang.IllegalArgumentException: Syntax error
> in request filter pattern *.gc.ca
> 	at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl
> oyer.java:494)
> 	at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
> 
> I have tried a lot of different regex expressions but have not had any
> luck.  If I try to perform an NSLOOKUP on the server this works also
> without any problem.
> What am I missing?  Any help would be appreciated!
> 
> Thanks in advance
> 
> Andrew

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message