Upgrade Virgo Server's Spring Framework Version

Virgo logo

Update July 18, 2011: Virgo 3.0.0.M05 upgrades Spring Framework 3.0.5. Steps documented here are no longer necessary.

After upgrading Virgo Web Server to 3.0.0 M03, I wanted to upgrade String Framework’s version from 3.0.0 to 3.0.5. Although this upgrade is on Virgo’s roadmap to 3.0.0, it won’t land for a few more weeks.

Hopefully, according to this forum post, upgrading Virgo’s Spring Framework version manually is easy enough. One could use the bash script posted in the forum post, or follow the steps below. Before performing the changes, make sure Virgo is shut down first.

1. Update org.eclipse.virgo.kernel.launch.properties

Open lib/org.eclipse.virgo.kernel.launch.properties, and change all references to org.springframework.*-3.0.0.RELEASE.jar to a newer version.

2. Update Spring Framework JARs in lib/kernel

Replace the following JARs with a later version:

  • org.springframework.aop-3.0.0.RELEASE.jar
  • org.springframework.asm-3.0.0.RELEASE.jar
  • org.springframework.beans-3.0.0.RELEASE.jar
  • org.springframework.context-3.0.0.RELEASE.jar
  • org.springframework.core-3.0.0.RELEASE.jar
  • org.springframework.expression-3.0.0.RELEASE.jar

3. Update Spring Framework JARs in repository/ext

Replace he following JARs with a later version:

  • org.springframework.aop-3.0.0.RELEASE.jar
  • org.springframework.asm-3.0.0.RELEASE.jar
  • org.springframework.aspects-3.0.0.RELEASE.jar
  • org.springframework.beans-3.0.0.RELEASE.jar
  • org.springframework.context-3.0.0.RELEASE.jar
  • org.springframework.context.support-3.0.0.RELEASE.jar
  • org.springframework.core-3.0.0.RELEASE.jar
  • org.springframework.expression-3.0.0.RELEASE.jar
  • org.springframework.jdbc-3.0.0.RELEASE.jar
  • org.springframework.jms-3.0.0.RELEASE.jar
  • org.springframework.orm-3.0.0.RELEASE.jar
  • org.springframework.oxm-3.0.0.RELEASE.jar
  • org.springframework.spring-library-3.0.0.RELEASE.libd
  • org.springframework.transaction-3.0.0.RELEASE.jar
  • org.springframework.web-3.0.0.RELEASE.jar
  • org.springframework.web.portlet-3.0.0.RELEASE.jar

4. Empty cache

Remove everything under work/, and that’s it. Start Virgo, and enjoy the ability to use Spring Security and/or Spring Webflow.