2007/10/13, smallufo <[EMAIL PROTECTED]>:
>
> Hi ,
> I had a strong suspicion that WicketFilter (from 1.3 b3) not compatible
> with Resin ( I tried 2.1.17 and latest 3.0.24 )
I just grabbed the latest 1.3 b4 , the problem remains.
I also found that the following filter-mapping works :
<filter filter-name="test" filter-class="foo.bar.TestFilter"/>
<filter-mapping filter-name="test" url-pattern="/*" />
while the following doesn't work :
<filter filter-name="wicket" filter-class="
org.apache.wicket.protocol.http.WicketFilter">
<init-param applicationClassName="foo.bar.MyApplication"/>
<init-param configuration="DEVELOPMENT"/>
</filter>
<filter-mapping filter-name="wicket" url-pattern="/app/*"/>
When I try to connect to foo.bar.com:8080/app , it throws :
java.lang.IllegalArgumentException: Error initializing WicketFilter - you
have no <filter-mapping> element with a url-pattern that uses filter: wicket
It seems that WicketFilter cannot parse @filter-name and @url-pattern of
<filter-mapping> tag.
(But it can correctly parse @filter-name , @filter-class of <filter> tag.)
I have to change it to :
<filter-mapping>
<filter-name>wicket</filter-name>
<url-pattern>/app/*</url-pattern>
</filter-mapping>
But 1.3b4 's filter still cannot intercept "/app" at port 80.