Announcement Announcement Module
Collapse
No announcement yet.
help with NoSuchBeanDefinitionException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    solved it.

    I needed the component-scan configurations in the service and dao layers

    Code:
        <context:component-scan base-package="x.y.dao">
            <context:include-filter type="annotation"
                expression="org.springframework.stereotype.Repository"/>
        </context:component-scan>
    and

    Code:
        <context:component-scan base-package="x.y.service">
            <context:include-filter type="annotation"
                expression="org.springframework.stereotype.Service"/>
        </context:component-scan>
    with these in place the service and dao were detected.

    cheers

    Comment

    Working...
    X