Announcement Announcement Module
Collapse
No announcement yet.
Bean property 'xx' is not writable or has an invalid setter? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Didi you try changing to the latest (spring 3.1 and hibernate 4)?

    Comment


    • #17
      Hi Amila,

      Could I know whether there's any fix for this issue in higher versions? Actually this issue is occuring only for JUnit Test Cases only. We can go ahead with those versions If the higher versions have fix. otherwise it requires lot of effort to get those jars where we can;t download manually being using maven to get from common artifactory.

      Thanks in advance.

      Regards,
      Chaatna

      Comment


      • #18
        Hi Amila,

        Please find my BaseSpringTestCase code:

        @RunWith(SpringJUnit4ClassRunner.class)
        @ContextConfiguration(locations = {"classpath:spring-tests.xml"})
        @TransactionConfiguration(transactionManager="tran sactionManager", defaultRollback=true)
        @Transactional
        public abstract class BaseSpringTest extends BaseTest {

        @Resource(name="hibernateTemplate")
        HibernateTemplate hibernateTemplate;

        @After
        public void afterTest() {
        hibernateTemplate.getSessionFactory().getCurrentSe ssion().flush();
        hibernateTemplate.getSessionFactory().getCurrentSe ssion().clear();
        }

        }

        Please help in this.

        Thanks,
        Chaatna

        Comment


        • #19
          Do you run this test through eclipse? if so check if eclipse classpath refers the new jars you added

          Comment


          • #20
            Hi Amila,

            We are building through Maven by getting the jars from from common repository in a secured environment. That too those are not newly added jars. Those dependencies present from the beginning for application also.

            Could you please let me know how to proceed with maven build?

            Thanks,
            Chaatna

            Comment

            Working...
            X