0

Webプロジェクトの展開に成功した後、ブラウザからWebアプリケーションにアクセスしようとすると、次のエラーが発生します。

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コンテンツ:

<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の構成の観点から欠落している可能性があるものや、jarが重複している可能性があるものはありますか?このエラーにつながる可能性がある場合は、教えてください。

4

1 に答える 1

2

この例外では、WebLogicに関連するものは何もありません。ファイルで、タイプのBeanのプロパティをのインスタンスに/WEB-INF/action-servlet.xml設定しようとしています。プロパティはタイプであり、の実装ではありません。profileAccountServicecom.bt.custc.faulttracking.dao.FaultTrackingProfileAccountDAOImplcom.bt.custc.userdetails.service.UserdetailsServiceImplcom.bt.custc.profileaccountservice.service.ProfileAccountServiceUserdetailsServiceImplProfileAccountService

于 2011-12-17T15:51:47.337 に答える