Results 1 to 6 of 6

Thread: OS issue??!!!or what?

  1. #1
    Join Date
    Aug 2004
    Location
    Bucharest,Romania
    Posts
    19

    Default OS issue??!!!or what?

    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
    Code:
        <bean id="userController" class="org.web.UserController">
        	<property name="userManager"><ref bean="userManager"/></property> 
        </bean>
    - in applicationContext.xml
    Code:
    	<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>
    Under Windows is working smoothly, under Linux we receive the error
    Code:
    Context initialization failed
    org.springframework.beans.factory.BeanCreationException&#58; Error creating bean with name 'userController' defined in resource &#91;/WEB-INF/x-servlet.xml&#93; of ServletContext&#58; Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException&#58; Invalid property 'userManager' of bean class &#91;org.web.UserController&#93;&#58; Property 'userManager' is not writable
    org.springframework.beans.NotWritablePropertyException&#58; Invalid property 'userManager' of bean class &#91;org.web.UserController&#93;&#58; Property 'userManager' is not writable
    - in UserController
    Code:
    public class UserController implements Controller &#123;
        
        private final Log logger = LogFactory.getLog&#40; getClass&#40;&#41; &#41;;
        private UserManager userManager;
        /**
         * @param userManager The userManager to set.
         */
        public void setUserManager&#40;UserManager userManager&#41; &#123;
            this.userManager = userManager;
        &#125;
    ....
    Any ideas?
    thanks cata

  2. #2
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    339

    Default

    are you doing a clean build before running on the Linux machine? No possibility that an old class file or jar of your application code is hanging around, or that you're working on the wrong CVS branch/version? What happens if you build on the Windows machine and deploy the WAR file to the Linux box?

    It's certainly not an error specific to the OS - looks much more likely to be a versioning issue of some description.
    Darren Davison.
    Public Key: 0xE855B3EA

  3. #3
    Join Date
    Aug 2004
    Location
    Bucharest,Romania
    Posts
    19

    Default

    I deployed the war file from Windows to Linux JBoss and I had the same problem. And we have the same version from CVS. btw we had a clean build too

  4. #4
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Try killing your temp directory and work directory under JBoss, and look for other places (such as app server lib dir or wherever) that an older version of the code in question could be. This really seems to have no relationship to a platform issue, but rather some sort of versioning issue where the copy of the class in question that is being found simply doesn't have that property.

    Regards,
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  5. #5
    Join Date
    Aug 2004
    Location
    Bucharest,Romania
    Posts
    19

    Default

    btw Mrs Colin, r u planing to come in Romania?

    All well

  6. #6
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Very off-topic, :-), but I'll actually be in Romania for a wedding in Sept. I would probably try to speak at a user's group meeting (or something of that nature) in Bucharest some time during that visit, but my Romanian is not quite up to that level unfortunately...

    Regards,
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •