【发布时间】:2015-11-16 12:47:27
【问题描述】:
我正在将我的代码从 3.5.1 迁移到 3.6.2,并且我还使用对象存储来存储其他场景的所有失败记录。我已经从“安装新软件”下载了新的对象库(我看到只有社区版本可用,如果企业版也发布了 3.6.2 运行时的对象库,请告诉我)。
当我运行我的应用程序时,我遇到了异常
Error creating bean with name 'ObjectStore': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.mule.api.registry.Registry org.mule.modules.objectstore.ObjectStoreConnector.registry; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.mule.api.registry.Registry] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}
当我尝试在对象存储上创建一个单独的小实用程序进行测试时,它工作正常,但在我现有的代码中,当我添加对象存储时,它显示上述错误。
请指教,
@TyroneVillaluna
干杯, 求解器
【问题讨论】:
-
您有任何弹簧组件扫描设置吗?如果是这样,则可能是您的组件扫描配置(不包括 Mule 包)存在问题。见这里:github.com/mulesoft/objectstore-connector/issues/14
-
嘿瑞恩,你能告诉我如何找到扫描部分实际上我是新骡子请提供更多提示或更好的方法来找出......你提供的链接没有帮助。跨度>
-
查看您的 Mule XML 上是否有
<context:component-scan>标签。如果你有,它将限制扫描到你指定的包,因此不包括 Mule 包。如果你需要添加自己的包,在 Ryan 提供的链接上有一种方法。 -
非常感谢...问题已解决...
标签: mule esb persistent-object-store