0 0

flex spring blazdes 注入问题 30

@Controller
@RemotingDestination(value="loginController", channels="my-amf")
public class LoginController {
    

@Autowired
@Qualifier("loginInfoService")
private LoginInfoService loginInfoService;

@RemotingInclude
    public String getInfo() {
    return loginInfoService.getInfo();
// return  "你好 。。。访问成功 。。。嘻嘻嘻  ";
}


错误


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.com.fxdemon.modules.demo.service.LoginInfoService cn.com.fxdemon.modules.demo.web.LoginController.loginInfoService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.com.fxdemon.modules.demo.service.LoginInfoService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=loginInfoService)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.com.fxdemon.modules.demo.service.LoginInfoService cn.com.fxdemon.modules.demo.web.LoginController.loginInfoService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.com.fxdemon.modules.demo.service.LoginInfoService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=loginInfoService)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
... 29 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.com.fxdemon.modules.demo.service.LoginInfoService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=loginInfoService)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1103)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:963)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480)
... 31 more

九月 18, 2014 1:38:37 下午 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /flex-spring-mobile threw load() exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.com.fxdemon.modules.demo.service.LoginInfoService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=loginInfoService)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1103)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:963)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

九月 18, 2014 1:38:37 下午 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /flex-spring-mobile threw load() exception
javax.servlet.ServletException: Unable to find MessageBroker, ensure that if messageBrokerId is set for the MessageBrokerServlet the RDS FrontEndServlet has a matching init-param value
at flex.rds.server.RdsServlet.init(RdsServlet.java:64)
at flex.rds.server.servlet.FrontEndServlet.loadServlet(FrontEndServlet.java:262)
at flex.rds.server.servlet.FrontEndServlet.init(FrontEndServlet.java:127)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2014年9月18日 13:46
目前还没有答案

相关推荐

    FlexSpring jar包

    FlexSpring jar包是针对Flex和Spring框架集成使用的一个关键组件,它使得基于Adobe Flex的前端应用能够无缝地与Spring框架的后端服务进行交互。在本文中,我们将深入探讨Flex和Spring框架的基本概念,FlexSpring集成...

    flexspring

    Flex,作为Adobe的一款用于构建RIA的开发工具,提供了一种交互式的用户界面,而Spring则是Java领域中广泛应用的轻量级应用程序框架,它提供了依赖注入、面向切面编程以及服务管理等功能。 FlexSpring库的核心目标是...

    Flex-Spring-JAVA-BLAZEDS.rar_Flex spring_flex_flex java

    标题中的“Flex-Spring-JAVA-BLAZEDS.rar”提到了三个关键技术:Flex、Spring和BlazeDS,这在IT行业中是关于前端与后端交互的重要技术组合。Flex是Adobe开发的一种用于创建富互联网应用(RIA)的开源框架,主要用于...

    Flex 与 Spring整合

    Spring框架以其灵活的依赖注入(Dependency Injection,DI)和面向切面编程(Aspect-Oriented Programming,AOP)能力,简化了服务端的开发工作。Flex则通过HTTP、AMF(Action Message Format)等协议与Spring服务...

    flex spring

    Spring是Java领域最流行的轻量级应用程序框架,它提供了依赖注入(DI)和面向切面编程(AOP)等核心特性。Spring还支持各种Web应用的开发,包括Model-View-Controller(MVC)架构,使得后端业务逻辑与视图分离,便于...

    Flex Spring JAVA BLAZEDS整合

    【Flex Spring JAVA BLAZEDS整合】是一种技术实践,它将Adobe Flex的前端展示层与Spring框架的后端业务逻辑层紧密结合,利用BlazeDS作为中间件进行数据传输。Flex作为一个强大的RIA(富互联网应用程序)开发平台,常...

    整合flex和spring常遇到的问题

    ### 整合Flex与Spring常遇到的问题 在实际开发过程中,将Adobe Flex与Spring框架进行集成是一项复杂的任务,尤其对于初次尝试的开发者来说更是如此。本文根据多年的实践经验,总结了在整合Flex与Spring时常见的几个...

    flex+spring flex整合

    【整合 Adobe Flex 和 Spring】 Adobe Flex 作为一款强大的富互联网应用程序(RIA)开发框架,能够创建具有丰富用户体验的用户界面。然而,为了实现后端数据处理和业务逻辑,开发者通常会选择像Spring这样的Java EE...

    Pro Flex on Spring

    Flex是一种强大的客户端开发工具,用于创建具有动态图形和交互性内容的Web应用程序,而Spring框架则是Java后端开发中的支柱,提供了强大的依赖注入和面向切面编程功能。两者结合,可以为开发者提供从前端到后端的...

    flex+spring 工程

    7. **测试与调试**:Eclipse提供了强大的调试工具,可以同时调试Flex和Spring代码,帮助开发者定位问题并优化性能。 综上所述,"SSP"工程展示了Flex和Spring如何协同工作,为开发者提供了一种构建RIA的强大工具链。...

    flex整合spring需要的spring相关包

    6. **安全性考虑**:整合Flex和Spring时,安全问题不容忽视。可以通过Spring Security对服务进行权限控制,限制Flex客户端的访问权限。同时,数据传输应进行加密,例如使用HTTPS协议。 7. **异常处理**:在Spring...

    Pro Flex On Spring

    在当今的IT行业中,"Pro Flex On Spring"一书为我们提供了一个深入探讨如何将Flex和Java的Spring框架结合使用的珍贵视角。在这本书中,作者Chris Giametta详细讲述了如何将Flex应用于前端UI展示,同时利用Java开发...

    flex整合spring的例子

    这个例子旨在展示如何在Flex前端与Spring后端之间建立通信,以便利用Spring框架的强大功能,如依赖注入、事务管理等。 首先,Flex是一个基于ActionScript和Flash Player的开源框架,用于创建交互式的、基于Web的富...

    flex spring hibernate jar

    标题中的“flex spring hibernate jar”表明我们正在讨论一个与使用Flex、Spring和Hibernate技术相关的Java应用程序。这个压缩包可能包含这些技术的库文件或一个整合了这三者的项目。 Flex是Adobe公司开发的一种...

    上一篇的flex的远程对象调用,flex和spring集成分页的jar和截图

    描述中提到的“flex和spring集成分页”是指将Flex客户端与Spring框架结合,实现服务器端数据的分页展示。Spring是一个广泛使用的Java企业级应用开发框架,提供IoC(Inversion of Control)容器、数据访问、事务管理...

    flex+hibernate+Spring

    Flex、Hibernate 和 Spring 是三个在IT行业中非常重要的技术框架,它们分别在用户界面、持久化层和应用架构方面发挥着关键作用。让我们深入探讨一下这三个技术的整合以及如何实现它们的详细配置。 Flex 是 Adobe ...

    Flex Builder3+MyEclipse8.5搭建Flex Spring Hibernate环境

    - **配置service-config.xml**:在flex目录下的`service-config.xml`中注入Spring工厂,以便Blazeds能够使用Spring来创建服务实例。 - **建立目录结构**:按照Spring和Hibernate的标准目录结构组织源代码和配置文件...

    Flex4 spring整合实例

    Flex4和Spring是两个在开发领域中非常重要的技术框架,它们分别用于构建富互联网应用程序(RIA)和企业级Java应用的依赖注入与控制反转。在本整合实例中,我们将探讨如何将Adobe Flex4与Spring框架无缝集成,以实现...

Global site tag (gtag.js) - Google Analytics