Hallo
In mein projekt wie arbeiten mit Spring und JSF.
Wir haben diese fehler bei unsere integration.
2007-04-18 10:10:14,051 ERROR [main ] (ContextLoader.java:205) Context initialization failed org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'articleHandler' defined in URL [file:/C:/Documents%20and%20Settings/f0fp083/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/webapps/Projekt/WEB-INF/classes/applicationContext-jsf.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found Caused by: org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessException details (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:224) at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:139) at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:772)
Mein datei applicationContext-jsf.xml ist so.
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- ========================= GENERAL DEFINITIONS ========================= -->
<bean id="messageSource"
class="org.springframework.context.support.Resourc eBundleMessageSource">
<property name="basenames">
<list>
<value>com.test.ui.resource.test_messages</value>
<value>com.test.ui.resource.security_messages</value>
</list>
</property>
</bean>
<!-- ========================= Start of SERVICE DEFINITIONS ========================= -->
<bean id="loginHandler" class="com.test.ui.security.SimpleLoginHandler"/>
<bean id="articleHandler" class="com.test.ui.artikeldaten.ArticleManager">
<property name="MasterdataService">
<ref bean="MasterdataService"/>
</property>
</bean>
<bean id="userList" class="com.test.ui.usermanagement.UserListManager" >
<property name="MasterdataService">
<ref bean="MasterdataService"/>
</property>
</bean>
</beans>
In mein projekt wie arbeiten mit Spring und JSF.
Wir haben diese fehler bei unsere integration.
2007-04-18 10:10:14,051 ERROR [main ] (ContextLoader.java:205) Context initialization failed org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'articleHandler' defined in URL [file:/C:/Documents%20and%20Settings/f0fp083/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/webapps/Projekt/WEB-INF/classes/applicationContext-jsf.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found Caused by: org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessException details (1) are: PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy5] to required type [com.teste.logic.command.masterdata.service.Masterd ataService] for property 'masterdataService': no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:224) at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:139) at org.springframework.beans.BeanWrapperImpl.setPrope rtyValue(BeanWrapperImpl.java:772)
Mein datei applicationContext-jsf.xml ist so.
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!-- ========================= GENERAL DEFINITIONS ========================= -->
<bean id="messageSource"
class="org.springframework.context.support.Resourc eBundleMessageSource">
<property name="basenames">
<list>
<value>com.test.ui.resource.test_messages</value>
<value>com.test.ui.resource.security_messages</value>
</list>
</property>
</bean>
<!-- ========================= Start of SERVICE DEFINITIONS ========================= -->
<bean id="loginHandler" class="com.test.ui.security.SimpleLoginHandler"/>
<bean id="articleHandler" class="com.test.ui.artikeldaten.ArticleManager">
<property name="MasterdataService">
<ref bean="MasterdataService"/>
</property>
</bean>
<bean id="userList" class="com.test.ui.usermanagement.UserListManager" >
<property name="MasterdataService">
<ref bean="MasterdataService"/>
</property>
</bean>
</beans>
Comment