Hi,
I am trying to load several context files from various sub projects into a war, but there seem to be a lot of hitches, I think I've got most of it working, but some beans don't seem to get loaded.
Please see the zipped project
I am currently getting this error:
There don't appear to be any other errors. You can see the gps.log in the zipped project.[WARNING] [talledLocalContainer] org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'showLocalitiesController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Could not autowire method: public void com.djpteam.bid.web.ShowLocalitiesController.setLo calityService(com.djpteam.bid.service.LocalityServ ice); nested exception is org.springframework.beans.factory.NoSuchBeanDefini tionException: No matching bean of type [com.djpteam.bid.service.LocalityService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
I suspect that the following configuration in web.xml is at fault as I have not seen a clear indication as to how to load configuration from the jarred classpath artifacts.
It is either this or some other detail in the configuration. Can anyone spot what's wrong?Code:<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> classpath*:**/*context.xml classpath:service-context.xml classpath:dao-context.xml </param-value> </context-param>
thanks


Reply With Quote