lisj0731
2011-03-30 10:31
浏览 174
已采纳

jbpm+spring 整合 报错 整了两三天了,希望大家帮个忙

10:25:34,921 ERROR ContextLoader:215 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'leaveBiz': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.forever.leave.jbpm.JbpmTemplate] is defined: Unsatisfied dependency of type [class org.forever.leave.jbpm.JbpmTemplate]: expected at least 1 matching bean
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at com.caucho.server.webapp.WebApp.start(WebApp.java:1864)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
at com.caucho.server.host.Host.start(Host.java:450)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
at com.caucho.server.cluster.Server.start(Server.java:1315)
at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
at com.caucho.server.resin.Resin.start(Resin.java:703)
at com.caucho.server.resin.Resin.initMain(Resin.java:1157)
at com.caucho.server.resin.Resin.main(Resin.java:1360)
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.forever.leave.jbpm.JbpmTemplate] is defined: Unsatisfied dependency of type [class org.forever.leave.jbpm.JbpmTemplate]: expected at least 1 matching bean
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:613)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:431)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
... 34 more
[10:25:34.921] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'leaveBiz': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.forever.leave.jbpm.JbpmTemplate] is defined: Unsatisfied dependency of type [class org.forever.leave.jbpm.JbpmTemplate]: expected at least 1 matching bean
[10:25:34.921] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:292)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
[10:25:34.921] at java.security.AccessController.doPrivileged(Native Method)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
[10:25:34.921] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
[10:25:34.921] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
[10:25:34.921] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
[10:25:34.921] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
[10:25:34.921] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
[10:25:34.921] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
[10:25:34.921] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
[10:25:34.921] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
[10:25:34.921] at com.caucho.server.webapp.WebApp.start(WebApp.java:1864)
[10:25:34.921] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:25:34.921] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:25:34.921] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:25:34.921] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:25:34.921] at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
[10:25:34.921] at com.caucho.server.host.Host.start(Host.java:450)
[10:25:34.921] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:25:34.921] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:25:34.921] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:25:34.921] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:25:34.921] at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[10:25:34.921] at com.caucho.server.cluster.Server.start(Server.java:1315)
[10:25:34.921] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
[10:25:34.921] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
[10:25:34.921] at com.caucho.server.resin.Resin.start(Resin.java:703)
[10:25:34.921] at com.caucho.server.resin.Resin.initMain(Resin.java:1157)
[10:25:34.921] at com.caucho.server.resin.Resin.main(Resin.java:1360)
[10:25:34.921] Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.forever.leave.jbpm.JbpmTemplate] is defined: Unsatisfied dependency of type [class org.forever.leave.jbpm.JbpmTemplate]: expected at least 1 matching bean
[10:25:34.921] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:613)
[10:25:34.921] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:431)
[10:25:34.921] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
[10:25:34.921] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
[10:25:34.921] at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
[10:25:34.921] at org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
[10:25:34.921] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
[10:25:34.921] ... 34 more
10:25:35,156 ERROR Dispatcher:27 - Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/D:/zhong_ying_work/leave/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:144)
at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:91)
at com.caucho.server.webapp.WebApp.start(WebApp.java:1871)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
at com.caucho.server.host.Host.start(Host.java:450)
at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
at com.caucho.server.cluster.Server.start(Server.java:1315)
at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
at com.caucho.server.resin.Resin.start(Resin.java:703)
at com.caucho.server.resin.Resin.initMain(Resin.java:1157)
at com.caucho.server.resin.Resin.main(Resin.java:1360)
Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/zhong_ying_work/leave/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 24 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:211)
... 27 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext in EnvironmentClassLoader[web-app:http://localhost:8080]
at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1223)
at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1202)
... 31 more
[10:25:35.156] javax.servlet.ServletException: Unable to load configuration. - bean - jar:file:/D:/zhong_ying_work/leave/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
[10:25:35.156] at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:174)
[10:25:35.156] at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:91)
[10:25:35.156] at com.caucho.server.webapp.WebApp.start(WebApp.java:1871)
[10:25:35.156] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:25:35.156] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:25:35.156] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:25:35.156] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:25:35.156] at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
[10:25:35.156] at com.caucho.server.host.Host.start(Host.java:450)
[10:25:35.156] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:25:35.156] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:25:35.156] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:25:35.156] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:25:35.156] at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[10:25:35.156] at com.caucho.server.cluster.Server.start(Server.java:1315)
[10:25:35.156] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
[10:25:35.156] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
[10:25:35.156] at com.caucho.server.resin.Resin.start(Resin.java:703)
[10:25:35.156] at com.caucho.server.resin.Resin.initMain(Resin.java:1157)
[10:25:35.156] at com.caucho.server.resin.Resin.main(Resin.java:1360)
[10:25:35.156] Caused by: Unable to load configuration. - bean - jar:file:/D:/zhong_ying_work/leave/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
[10:25:35.156] at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
[10:25:35.156] at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
[10:25:35.156] at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
[10:25:35.156] at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:144)
[10:25:35.156] ... 19 more
[10:25:35.156] Caused by: Unable to load configuration. - bean - jar:file:/D:/zhong_ying_work/leave/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
[10:25:35.156] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
[10:25:35.156] at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
[10:25:35.156] at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
[10:25:35.156] ... 22 more
[10:25:35.156] Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/zhong_ying_work/leave/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:47:178
[10:25:35.156] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
[10:25:35.156] at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
[10:25:35.156] at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
[10:25:35.156] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
[10:25:35.156] ... 24 more
[10:25:35.156] Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContext
[10:25:35.156] at java.lang.Class.getDeclaredConstructors0(Native Method)
[10:25:35.156] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
[10:25:35.156] at java.lang.Class.getDeclaredConstructors(Class.java:1836)
[10:25:35.156] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:211)
[10:25:35.156] ... 27 more
[10:25:35.156] Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContext in EnvironmentClassLoader[web-app:http://localhost:8080]
[10:25:35.156] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1223)
[10:25:35.156] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1202)
[10:25:35.156] ... 31 more
[10:25:35.187] java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!
[10:25:35.187] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:182)
[10:25:35.187] at org.forever.leave.util.SpringContextLoaderServlet.init(SpringContextLoaderServlet.java:24)
[10:25:35.187] at javax.servlet.GenericServlet.init(GenericServlet.java:70)
[10:25:35.187] at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:830)
[10:25:35.187] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:732)
[10:25:35.187] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:159)
[10:25:35.187] at com.caucho.server.webapp.WebApp.start(WebApp.java:1872)
[10:25:35.187] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:25:35.187] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:25:35.187] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:25:35.187] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:25:35.187] at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
[10:25:35.187] at com.caucho.server.host.Host.start(Host.java:450)
[10:25:35.187] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[10:25:35.187] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[10:25:35.187] at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[10:25:35.187] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[10:25:35.187] at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[10:25:35.187] at com.caucho.server.cluster.Server.start(Server.java:1315)
[10:25:35.187] at com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
[10:25:35.187] at com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
[10:25:35.187] at com.caucho.server.resin.Resin.start(Resin.java:703)
[10:25:35.187] at com.caucho.server.resin.Resin.initMain(Resin.java:1157)
[10:25:35.187] at com.caucho.server.resin.Resin.main(Resin.java:1360)
[

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • piaoyao1203 2011-03-30 17:41
    已采纳

    上面的异常显示的是依赖注入时,在spring容器中查找不到相应的bean定义。
    我的思路是:不通过Annotation配置,直接在xml中配置各个bean,具有依赖关系的bean为一组来进行测试,看看到底是那个bean配置时出的错。

    已采纳该答案
    评论
    解决 无用
    打赏 举报
  • liukaihandsome 2011-03-30 11:26

    好好看下leaveBiz呢
    看看是不是漏了什么东西或写错了

    评论
    解决 无用
    打赏 举报
  • piaoyao1203 2011-03-30 12:57

    [code="java"]
    ested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.forever.leave.jbpm.JbpmTemplate] is defined: Unsatisfied dependency of type [class org.forever.leave.jbpm.JbpmTemplate]: expected at least 1 matching bean
    [/code]

    在你的配置中应该有依赖org.forever.leave.jbpm.JbpmTemplate类型的bean,确定org.forever.leave.jbpm.JbpmTemplate类型的bean已经配置了吗?

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题