首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >weblogic springframework无法转换

weblogic springframework无法转换
EN

Stack Overflow用户
提问于 2011-12-17 23:06:13
回答 1查看 365关注 0票数 0

成功部署web项目后,当我尝试从浏览器访问web应用程序时,收到以下错误。

代码语言:javascript
复制
2011-12-17 17:37:52.887  AdminServer <consumerFaultTracking> [-] ERROR Context initialization failed : org.springframework.web.struts.ContextLoaderPlugIn-(228) 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.bt.custc.faulttracking.dao.FaultTrackingProfileAccountDAOImpl#e71be2' defined in ServletContext resource [/WEB-INF/action-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.bt.custc.userdetails.service.UserdetailsServiceImpl] to required type [com.bt.custc.profileaccountservice.service.ProfileAccountService] for property 'profileAccountService']
PropertyAccessExceptionsException (1 errors)
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.bt.custc.userdetails.service.UserdetailsServiceImpl] to required type [com.bt.custc.profileaccountservice.service.ProfileAccountService] for property 'profileAccountService'
    at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1103)
    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:848)
    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733)
    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890)
    at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917)    

action-servlet.xml内容:

代码语言:javascript
复制
<property name="accountService">
    <bean class="com.bt.custc.faulttracking.service.FaultTrackingProfileAccountServiceImpl">
        <property name="profileAccountDAO">
            <bean class="com.bt.custc.faulttracking.dao.FaultTrackingProfileAccountDAOImpl">
                <property name="profileAccountService">
                    <ref bean="profileAccountServiceImplRefBean" />
                </property>
            </bean>
        </property>
    </bean>
</property>

如果有人之前遇到过同样的问题,请告诉我解决方案。我不认为我被允许修改代码,因为这应该对其他团队成员起作用。

从weblogic配置的角度看,有没有我可能遗漏的东西,或者可能是重复的jars等等……请告诉我是否会有这样的可能导致这个错误?

EN

回答 1

Stack Overflow用户

发布于 2011-12-17 23:51:47

此异常中没有任何与WebLogic相关的内容。在/WEB-INF/action-servlet.xml文件中,您试图将类型为com.bt.custc.faulttracking.dao.FaultTrackingProfileAccountDAOImpl的bean的属性profileAccountService设置为com.bt.custc.userdetails.service.UserdetailsServiceImpl的实例。该属性的类型为com.bt.custc.profileaccountservice.service.ProfileAccountService,并且UserdetailsServiceImpl不是ProfileAccountService的实现。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8545604

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档