# How can I change the version of Spring framework in the user region?

You can upgrade or downgrade the version of Spring framework in the user region provided the new version satisfies the version range required by Virgo. Virgo 3.0.x can use 3.0.x versions of Spring framework. To use Spring framework 3.1.x requires Virgo 3.5.0 or later.

To upgrade or downgrade, delete the Spring framework bundles and <tt>.libd</tt> file in <tt>repository/ext</tt> and then add the corresponding bundles and <tt>.libd</tt> file for the replacement version of Spring framework. The Spring framework bundles are listed in the <tt>.libd</tt> file if you are uncertain about which they are. Then re-start Virgo with the <tt>-clean</tt> switch and the user region should now run with the replacement version of Spring framework.

Here's an example of upgrading Spring framework on a UNIX system:

    cd repository/ext/
    rm org.springframework.*-3.0.5.RELEASE.*
    cp /.../spring-framework-3.0.6/dist/org.springframework.* .

Note that it is not necessary to change the version of Spring framework used by the Virgo kernel as that version is independent of the version of Spring framework used by the user region.

If you want to use Spring framework version less than 3.0 (for instance 2.5.6.SEC2) you will have to use Virgo 2.1.x or Virgo Jetty Server 3.0. The reason for this is that Virgo Server for Apache Tomcat 3.0.x ships with Tomcat 7 and Servlet 3.0, while Spring framework 2.5.6 import range allows maximum Servlet 2.5 and this makes the two incompatible.