I'm trying to deploy my application on Virgo 3.0.0M05, but I have a problem with a too new Spring version within it. There are some incompatibilities in JavaConfig implementation between Spring 2.5.6 and Spring 3.x and it is not so easy to resolve them in my app.
So according to slogan on the Virgo main page:
"Spring 3 - Virgo packages Spring 3.0 final, but can easily be configured to use a different version of Spring"
I want to "easily" downgrade Spring to 2.5.6 .
But I didn't find any documentation how to do that. So my question is what should I do to downgrade Spring to 2.5.6 in Virgo (which jars replace, which config files edit, etc.)? Maybe there is somewhere such configuration ready to download?
You need to delete the Spring framework bundles and .libd file in repository/ext and then add the corresponding files for Spring 2.5.6. The Spring framework bundles are listed in the .libd file if you are uncertain about which they are. Then re-start Virgo with the -clean switch and you should be in business.
I tried to find documentation of these steps, but cannot quickly lay my hands on them.
If you would like to raise a (documentation) bug, please feel free. We could also capture any sequel to this if the steps don't quite work out as expected!
I have done as you write: delete Spring 3.0.x bundles and .libd file in repository/ext and add Spring 2.5.6 bundles to the same location. Everything works fine (after re-starting Virgo with the -clean switch).
Virgo 3.0.0 is released, so I've found out that FAQ section is changed to:
"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. The reason for this is that Virgo 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."
Is it a valid sentence for "Virgo Jetty Server" release too or only for Tomcat one? My question is: can I downgrade Spring version to 2.5.6 in user region in Virgo Jetty Server 3.0.0?