I have an application with JSF 2.2 and Spring 4.3
with these components: web-module, service-module, service-module-interface and ear.
- In the
service-moduleI have configured aSpringConfigurationclass. - In
earI have included theweb-moduleandservice-module The
web-modulehas a dependency withservice-module-interface(they are the interfaces of thespring @Serviceclass inservice-module). Below the a snippet ofweb.xml:<context-param> <param-name>contextClass</param-name> <param-value> org.springframework.web.context.support.AnnotationConfigWebApplicationContext </param-value><context-param> <!-- my spring configuration class --> <param-name>contextConfigLocation</param-name> <param-value>com.ipdb.datamodel.conf.SpringConfiguration</param-value><listener><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener> <listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener>
I cannot to inject with @Autowired in a Backing Bean in web module. I have this error: No qualifying bean of type. Can you help me, please?