Download Google Chrome The fast new browser by Google Fast and Free. Download Now! www.Google.com/Chrome

Migrating to Spring 2.5

Posted on
  • Friday, February 20, 2009
  • by
  • Urvashi Sharma
  • in


  • Just finished the migration from my pet project (which was Spring 2.0.6) to Spring 2.5.1
    I must say, contrary to the claim on the SpringSource website, my migration did not went as smoothly as expected. I had more problems now then when migrating from Spring 1.0.2 to Spring 2 (of course my pet project wasn't that big back then).
    Encountered problems and their fixes:
    1. Declarative transactions are not working (symptom "org.hibernate.HibernateException: createQuery is not valid without active transaction"). The fix is to remove the property thread. Luckily I found this solution rather quickly.
    2. Problems with auto-wiring of Configurable beans. My solution was to switch from autowiring by type to by name. I filed an issuefor this problem.
    3. must be replaced by (symptom: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:spring-configured')
      The declaration is as follows:


      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:aop="http://www.springframework.org/schema/aop"
      xmlns:tx="http://www.springframework.org/schema/tx"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="
      http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
      http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
      http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">

    That's it. If you want to excuse me now, I have to experiment with

    Enter your email address:

    Delivered by FeedBurner

    0 comments:

    Post a Comment

     
    .