Announcement Announcement Module
Collapse
No announcement yet.
shared property in EhCacheManagerFactoryBean Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • shared property in EhCacheManagerFactoryBean

    Hello,

    I have the following bean definition:

    Code:
    <bean id="cacheManager"
    	class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    	<property name="shared" value="true" />
    	<property name="configLocation" value="classpath:ehcache.xml" />
    </bean>
    The property "shared" returns a no setter found error in Spring IDE which in fact that property is present.
    How can I solve this problem?

  • #2
    Anyone knows how to solve the problem?

    Comment


    • #3
      File JIRA issue
      Originally posted by samuelyung View Post
      Hello,

      I have the following bean definition:

      Code:
      <bean id="cacheManager"
      	class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
      	<property name="shared" value="true" />
      	<property name="configLocation" value="classpath:ehcache.xml" />
      </bean>
      The property "shared" returns a no setter found error in Spring IDE which in fact that property is present.
      How can I solve this problem?

      Comment


      • #4
        Thanks alot!

        Comment


        • #5
          Hi,

          I just tried to reproduce the problem. I don't get described error. Are you sure that you point to a Spring > 2.0 version jar. The shared property has been introduced with Spring 2.

          Christian

          Comment


          • #6
            Strange... It works after I switched to M2Eclipse. Before the switching I use maven eclipse:eclipse plugin to generate eclipse project dependencies and I'm sure I was using spring 2.0 jars as the source uses Spring 2.0 specific functionalities. Otherwise it cannot be run.

            Anyway, seems it was solved... although I dunno why it get solved

            Comment


            • #7
              I'm glad to hear that you are back on track and don't get spurious warnings.

              Christian

              Comment

              Working...
              X