Announcement Announcement Module
Collapse
No announcement yet.
OS issue??!!!or what? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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

      Comment


      • #4
        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,

        Comment


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

          All well

          Comment


          • #6
            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,

            Comment

            Working...
            X