weblogic吧 关注:488贴子:1,437
  • 1回复贴,共1

注入CDIIntegrationService失败

只看楼主收藏回复

tomcat下跑是正常的,但是这个ssh项目在weblogic中跑出现了CDIIntegrationService注入失败,无法找到的问题
找了老半天只要spring容器初始化
即加入
<listener>
<listener-class>xxx.ContextListener</listener-class>
</listener>
就会报错
具体报错如下:
Error creating bean with name 'CDIIntegrationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private weblogic.server.ServerService com.oracle.injection.integration.CDIIntegrationService.depdendency; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [weblogic.server.ServerService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject(), @javax.inject.Named(value=DiagnosticFoundationService)}.
百度上有类似的错误,但是没有给出解决办法!!!
额 此外 我的weblogic跑我的的ssm之类的项目是没有问题的,应该不是服务器本身的问题


IP属地:湖北1楼2020-04-07 22:29回复
    请问楼主这个问题解决了吗 ?


    IP属地:北京2楼2022-09-06 23:02
    回复