Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » How to downgrade Spring version to 2.5.6?
How to downgrade Spring version to 2.5.6? [message #689774] Tue, 28 June 2011 06:36 Go to next message
Duch Bechlegor is currently offline Duch Bechlegor
Messages: 4
Registered: July 2009
Junior Member
Hi,

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 Wink.

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?

--
Best regards,
Duch
Re: How to downgrade Spring version to 2.5.6? [message #689869 is a reply to message #689774] Tue, 28 June 2011 10:14 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
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!
Re: How to downgrade Spring version to 2.5.6? [message #690001 is a reply to message #689869] Tue, 28 June 2011 14:12 Go to previous messageGo to next message
Duch Bechlegor is currently offline Duch Bechlegor
Messages: 4
Registered: July 2009
Junior Member
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).

Thanks for fast reply and good solution Smile.
Re: How to downgrade Spring version to 2.5.6? [message #690210 is a reply to message #690001] Wed, 29 June 2011 03:30 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Great! I added a FAQ for future reference.
Re: How to downgrade Spring version to 2.5.6? [message #719045 is a reply to message #690210] Thu, 25 August 2011 17:56 Go to previous messageGo to next message
Duch Bechlegor is currently offline Duch Bechlegor
Messages: 4
Registered: July 2009
Junior Member
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?
Re: How to downgrade Spring version to 2.5.6? [message #719320 is a reply to message #719045] Fri, 26 August 2011 13:41 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 234
Registered: October 2010
Senior Member
you can use Virgo Jetty Server it is still with servlet 2.5
Re: How to downgrade Spring version to 2.5.6? [message #719360 is a reply to message #719320] Fri, 26 August 2011 15:53 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Can you please post the result (again) ?

If the Jetty variant and Spring 2.5.6 work ok for you I'll update the FAQ.
Re: How to downgrade Spring version to 2.5.6? [message #719887 is a reply to message #719360] Mon, 29 August 2011 06:29 Go to previous messageGo to next message
Duch Bechlegor is currently offline Duch Bechlegor
Messages: 4
Registered: July 2009
Junior Member
Yes, I've done a similar test.
Virgo Jetty Server 3.0.0 and Spring 2.5.6 still works ok.
Re: How to downgrade Spring version to 2.5.6? [message #719890 is a reply to message #719887] Mon, 29 August 2011 06:36 Go to previous message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Thanks a lot. I updated the Virgo FAQ
Previous Topic:Custom XML schema definition not found
Next Topic:Which repository to use when having dependency on virgo kernel modules?
Goto Forum:
  


Current Time: Thu Aug 28 07:13:11 EDT 2014

Powered by FUDForum. Page generated in 0.02466 seconds