웹 프로젝트를 성공적으로 배포 한 후 브라우저에서 웹 응용 프로그램에 액세스하려고하면 다음 오류가 발생합니다.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 구성의 관점에서 누락되었거나 중복 된 항아리 등이있을 수 있습니다 ...이 오류로 이어질 수있는 가능성이 있다면 저에게 계몽해주십시오.
이 문제가 weblogic과 관련이 없다는 귀하의 답변과 확인을 위해 JB에 감사드립니다. –
UserDetailServiceImpl을 가리키는 방법을 잘 모르겠습니다 (참조 용으로 action-sevlet 스 니펫이 첨부되어 있음). 내 전체 action-servlet.xml에서 다른 곳에서는 'UserDetailsServiceImpl'을 찾을 수 없었습니다. –
bean profileAccountServiceImplRefBean의 차이점은 무엇입니까? –