[ 
https://issues.apache.org/jira/browse/WICKET-7077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769557#comment-17769557
 ] 

Martin Tzvetanov Grigorov commented on WICKET-7077:
---------------------------------------------------

The provided web.xml in the description should not lead to 2 Spring configs.

You have to have <param-name>contextConfigLocation</param-name> on servlet 
context level to trigger the problem.

> 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
>
> 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)

Reply via email to