Webプロジェクトの展開が成功した後、ブラウザからWebアプリケーションにアクセスしようとしたときに次のエラーが表示されます。weblogic springframework TypeMismatchExceptionの変換に失敗しました
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)
アクション-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ファイルなどがありますか。このエラーを引き起こす可能性がある場合は、私に教えてください。
この問題はweblogicに関連していないことをJBにご返信いただきありがとうございます。 –
私はUserDetailServiceImpl(あなたの参照のためにアクションセブレットスニペットが添付されています)にどのように指しているのかわかりません。私のaction-servlet.xml全体では、どこでも 'UserDetailsServiceImpl'を見つけることができませんでした。 –
bean profileAccountServiceImplRefBeanの違いは何ですか? –