Hi,
We devolp an application in Spring and Hibernate, using Eclipse M8 and JBoss 3.2.5 tools under 2 OS( Linux and Windows), the project is under CVS and all is fine until the parsing of applicationContext.
With the folowing beans :
- in x-servlet.xml
- in applicationContext.xmlCode:<bean id="userController" class="org.web.UserController"> <property name="userManager"><ref bean="userManager"/></property> </bean>
Under Windows is working smoothly, under Linux we receive the errorCode:<bean id="userManager" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager"><ref local="transactionManager"/> </property> <property name="target"><ref local="userManagerTarget"/> </property> <property name="transactionAttributes"> <props> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="remove*">PROPAGATION_REQUIRED</prop> <prop key="*">PROPAGATION_REQUIRED,readOnly</prop> </props> </property> </bean>
- in UserControllerCode:Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController' defined in resource [/WEB-INF/x-servlet.xml] of ServletContext: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'userManager' of bean class [org.web.UserController]: Property 'userManager' is not writable org.springframework.beans.NotWritablePropertyException: Invalid property 'userManager' of bean class [org.web.UserController]: Property 'userManager' is not writable
Any ideas?Code:public class UserController implements Controller { private final Log logger = LogFactory.getLog( getClass() ); private UserManager userManager; /** * @param userManager The userManager to set. */ public void setUserManager(UserManager userManager) { this.userManager = userManager; } ....
thanks cata


Reply With Quote
