Back Forum Reply New

help with NoSuchBeanDefinitionException

Hi everybody, I seem to be having a lot of trouble getting my configuration together. The latest issue is that a bean I thought I had defined doesn't seem to be loading.

I have zipped the entire project (not much in there so should be easy to navigate around), inside it I have saved the stack trace of the error (trace.log), and there is also the slf4j log (gps.log). Note that the missing bean is in the service layer.

There don't seem to be any errors and all the context files appear to be loaded. So what's going on? What am I missing, is the configuration itself in error?

thanks

solved it.

I needed the component-scan configurations in the service and dao layersCode:   lt;context:component-scan base-package=quot;x.y.daoquot;gt;       lt;context:include-filter type=quot;annotationquot;expression=quot;org..stereotype.Repositoryquot;/gt;   lt;/context:component-scangt;
andCode:   lt;context:component-scan base-package=quot;x.y.servicequot;gt;       lt;context:include-filter type=quot;annotationquot;expression=quot;org..stereotype.Servicequot;/gt;   lt;/context:component-scangt;
with these in place the service and dao were detected.

cheers
¥
Back Forum Reply New