inversion of control - Wicket and spring how to configure such that it does not look for applicationContext -


i using wicket 6.19 , spring 4.0.3

i have configured spring such not need applicationcontext.xml.

i have added appropriate listener web.xml upon deploying spring-wicket application have been shot down message saying cannot find applicationcontext.xml

a bit of searching turned following: annotationconfigwebapplicationcontext

so need tell application application based configuration , class takes care of this. got idea how configure within wicket-spring environment ?

in ? extends webapplication class in init have:

 getcomponentinstantiationlisteners().add(new springcomponentinjector(this)); 

my web.xml

 <listener>        <listener-class>            org.springframework.web.context.contextloadlistener        </listener-class>  </listener> 

nothing else seems relevant issue fact keeps trying find applicationcontext.xml despite spring configuration being exclusively handled annotations.

do use @configuration based config?
if yes take @ wicket 7.x wicket-examples:

https://github.com/apache/wicket/blob/7bcf9236b0fe8a86f53603c22390a75dda4fad7b/wicket-examples/src/main/java/org/apache/wicket/examples/spring/common/springconfig.java

https://github.com/apache/wicket/blob/7bcf9236b0fe8a86f53603c22390a75dda4fad7b/wicket-examples/src/main/webapp/web-inf/web.xml#l825-l833


Comments