I feel like I just saw some some messages, not exactly like my problem, but
still about resolving urls properly (perhaps on the apache list).  Anyway, I
was just curious if there was something else I can do to help.  I don't know
that submitting a quickstart will help because it should happen with any
WicketFilter based project.  I modified an old quickstart (Jetty based,
versus my own Tomcat-based project) to use the following filter in web.xml
and was able to get the error with this url:
http://localhost:8081/quickstart/app/
but not with this one:
http://localhost:8081/quickstart/app

<filter>
  <filter-name>quickstart</filter-name>
  <filter-class>wicket.protocol.http.WicketFilter</filter-class>
  <init-param>
    <param-name>applicationClassName</param-name>
    <param-value>
      wicket.quickstart.QuickStartApplication
    </param-value>
  </init-param>
  <init-param>
    <param-name>filterPath</param-name>
    <param-value>app</param-value>
  </init-param>
</filter>

<filter-mapping>
  <filter-name>quickstart</filter-name>
  <url-pattern>/app/*</url-pattern>
</filter-mapping>

I'll gladly help where I can to solve this.  Not that it is a huge problem,
but I know that you guys can't do everything and I'd like to contribute if I
can.


ChuckDeal wrote:
> 
> <filter>
>   <filter-name>aimsWicket</filter-name>
>   <filter-class>wicket.protocol.http.WicketFilter</filter-class>
>   <init-param>
>     <param-name>applicationClassName</param-name>
>     <param-value>
>       com.csc.aims.framework.AIMSApplication
>     </param-value>
>   </init-param>
>   <init-param>
>     <param-name>filterPath</param-name>
>     <param-value>app</param-value>
>   </init-param>
> </filter>
> 
> <filter-mapping>
>   <filter-name>aimsWicket</filter-name>
>   <url-pattern>/app/*</url-pattern>
> </filter-mapping>
> 
> 
> Johan Compagner wrote:
>> 
>> what does your web.xml look like (the filter and the filtermapping)
>> 
>> On 12/22/06, ChuckDeal <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>> This path works to load my app: http://localhost:2467/aims/app
>>> This one doesn't: http://localhost:2467/aims/app/   <-- note the ending
>>> slash
>>>
>>> When tracing through the WicketFilter code, it looks like
>>> isWicketRequest()
>>> can't deal with it so it delegates to
>>> webApplication.getRequestCycleProcessor
>>> ().getRequestCodingStrategy().urlCodingStrategyForPath(path)
>>> which returns null because it specifically excludes the '/'.  You can't
>>> mount '/' because mount(...) will throw IllegalArgumentException("The
>>> mount
>>> path '/' is reserved for the application home page").  Is this a
>>> loophole,
>>> or have I missed something.
>>>
>>> The comments on this issue (
>>> http://issues.apache.org/jira/browse/WICKET-114)
>>> do not descirbe my problem, but they do seem to be related in that
>>> WickFilter doesn't always handle slashes correctly.
>>>
>>> Chuck
>>> --
>>> View this message in context:
>>> http://www.nabble.com/WicketFilter-problem-with-isWicketRequest%28%29-tf2871497.html#a8025822
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> -------------------------------------------------------------------------
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>> your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Wicket-user mailing list
>>> Wicket-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>>
>> 
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/WicketFilter-problem-with-isWicketRequest%28%29-tf2871497.html#a8435669
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to