In addition to declaring the base package where Spring will start to search for your "Beans", you have to also annotate the class with @Component.
Best regards, Alfredo On Thu, Aug 23, 2012 at 5:02 PM, pierre leagault <[email protected]> wrote: > hi > > i use spring and gwt (request factory). > > in my applicationContext, i use context component-scan but my bean is not > retrieved. > > i need to declare it manually. > > why component scan don't work? > > > my web.xml > > <context-param> > <param-name>contextConfigLocation</param-name> > <param-value>/WEB-INF/applicationContext.xml</param-value> > </context-param> > > <listener> > > <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> > </listener> > > <servlet> > <servlet-name>requestFactoryServlet</servlet-name> > > <servlet-class>com.google.web.bindery.requestfactory.server.RequestFactoryServlet</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>requestFactoryServlet</servlet-name> > <url-pattern>/gwtRequest</url-pattern> > </servlet-mapping> > > > <welcome-file-list> > <welcome-file>welcomeGWT.html</welcome-file> > </welcome-file-list> > > > thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/4QrWjBivh5YJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
