You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Maxim Solodovnik (Jira)" <ji...@apache.org> on 2023/09/27 15:46:00 UTC
[jira] [Resolved] (WICKET-7077) 2 spring web application contexts are created
[ https://issues.apache.org/jira/browse/WICKET-7077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Solodovnik resolved WICKET-7077.
--------------------------------------
Fix Version/s: 10.0.0-M2
Resolution: Fixed
> 2 spring web application contexts are created
> ---------------------------------------------
>
> Key: WICKET-7077
> URL: https://issues.apache.org/jira/browse/WICKET-7077
> Project: Wicket
> Issue Type: Bug
> Components: wicket-spring
> Affects Versions: 10.0.0-M1
> Reporter: Maxim Solodovnik
> Assignee: Maxim Solodovnik
> Priority: Major
> Fix For: 10.0.0-M2
>
>
> 2 spring web application contexts are created in case {{web.xml}}
> defines both {{SpringWebApplicationFactory}} and {{ContextLoaderListener}} as follows:
> {code}
> <filter>
> <filter-name>MyApplication</filter-name>
> <filter-class>org.apache.wicket.protocol.ws.javax.JavaxWebSocketFilter</filter-class>
> <async-supported>true</async-supported>
> <init-param>
> <param-name>applicationClassName</param-name>
> <param-value>my.package.web.Application</param-value>
> </init-param>
> <init-param>
> <param-name>applicationFactoryClassName</param-name>
> <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value>
> </init-param>
> <init-param>
> <param-name>configuration</param-name>
> <param-value>${wicket.configuration}</param-value>
> </init-param>
> </filter>
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)