You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2011/04/08 17:33:05 UTC
[jira] [Commented] (WICKET-3604) Filter path not set in
WicketFilter
[ https://issues.apache.org/jira/browse/WICKET-3604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017489#comment-13017489 ]
Igor Vaynberg commented on WICKET-3604:
---------------------------------------
i dont see how 1.4 could figure out the path in this environment unless you explicitly set it before using setInitParameter. please provide a quickstart for 1.4.x where this works so we can figure out which code we lost.
> Filter path not set in WicketFilter
> -----------------------------------
>
> Key: WICKET-3604
> URL: https://issues.apache.org/jira/browse/WICKET-3604
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: Jetty embedded
> Reporter: Tapani Saarinen
> Priority: Minor
>
> This does not work anymore. Worked in 1.4.x and 1.5.M3. I use Jetty in embedded mode with NO xml configuration files. So I initialize all servlets and filters in code.
> CODE:
> FilterHolder filterHolder = new FilterHolder(WicketFilter.class);
> filterHolder.setInitParameter(ContextParamWebApplicationFactory.APP_CLASS_PARAM, XXXXX.MainApplication.class.getName());
> context.addFilter(filterHolder, "/*", 1);
> LOG:
> Starting Jetty server...
> WicketFilter [WARN] Unable to determine filter path from filter init-parm, web.xml, or servlet 3.0 annotations. Assuming user will set filter path manually by calling setFilterPath(String)
> Application [INFO] [org.apache.wicket.protocol.http.WicketFilter-324750153] init: Wicket core library initializer
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira