ssh项目部署在weblogic10.3.4 下报错 30
web服务器weblogic10.3.4ssh(Spring3.0.5+hibernate3.3.+struts2.1)项目部署在jboss和tomat下面没问题错误如下...
web服务器 weblogic10.3.4
ssh(Spring3.0.5+hibernate 3.3.+struts2.1)
项目部署在 jboss和tomat下面没问题
错误如下
<WSEE:12>com.bea.core.repackaged.springframework.beans.factory.BeanCreationExcep
tion: Error creating bean with name 'com.telecommunications.ws.serviceimp.WsSicf
revenueauditoutsynServiceImp': Initialization of bean failed; nested exception i
s com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: D
ependency injection failure: can't find the bean definition about class class co
m.telecommunications.serviceimp.ServiceFactory; nested exception is com.bea.core
.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No uniq
ue bean of type [com.telecommunications.serviceimp.ServiceFactory] is defined: N
o beans of type com.telecommunications.serviceimp.ServiceFactory; owner=com.bea.
core.repackaged.springframework.context.support.GenericApplicationContext@1c4fcd
项目中用到注解
问一下 weblogic10.3.4不支持spring注解?
com.telecommunications.ws.serviceimp.WsUser
ServiceImp
private @Autowired ServiceFactory serviceFactory; 展开
ssh(Spring3.0.5+hibernate 3.3.+struts2.1)
项目部署在 jboss和tomat下面没问题
错误如下
<WSEE:12>com.bea.core.repackaged.springframework.beans.factory.BeanCreationExcep
tion: Error creating bean with name 'com.telecommunications.ws.serviceimp.WsSicf
revenueauditoutsynServiceImp': Initialization of bean failed; nested exception i
s com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: D
ependency injection failure: can't find the bean definition about class class co
m.telecommunications.serviceimp.ServiceFactory; nested exception is com.bea.core
.repackaged.springframework.beans.factory.NoSuchBeanDefinitionException: No uniq
ue bean of type [com.telecommunications.serviceimp.ServiceFactory] is defined: N
o beans of type com.telecommunications.serviceimp.ServiceFactory; owner=com.bea.
core.repackaged.springframework.context.support.GenericApplicationContext@1c4fcd
项目中用到注解
问一下 weblogic10.3.4不支持spring注解?
com.telecommunications.ws.serviceimp.WsUser
ServiceImp
private @Autowired ServiceFactory serviceFactory; 展开
1个回答
展开全部
No unique bean of type [com.telecommunications.serviceimp.ServiceFactory] is defined 说明你的bean有二义性或者没有匹配到这个类型的bean,不能确定那个ServiceFactory可以注入,查看一下你的配置文件ServiceFactory类型的bean是不是有多个,如果是,的确需要多个,@Autowired 注解需要配合@Qualifier这个注解一块用说明那一个bean要注入给这个属性。
追问
问题已经解决,不过不是你说的这个方面的原因。我的war下面有两个web.xml.weblogic可能会加载两次,而其他的web服务器只会加载一次。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询