View Full Version : Spring Framework 2.5 Released
Ben Hale
Nov 19th, 2007, 04:59 PM
(2007/11/19) - We're pleased to announce that Spring Framework 2.5 has been released. Here is Juergen's original announcement:
--
Dear Spring Community,
We are pleased to announce that the Spring Framework 2.5 final release is now available.
http://static.springframework.org/images/spring25.png
Download (http://sourceforge.net/project/showfiles.php?group_id=73357&package_id=173644&release_id=555312) | Documentation (http://static.springframework.org/spring/docs/2.5.x/reference/index.html) | Changelog (http://static.springframework.org/spring/docs/2.5.x/changelog.txt)
Spring 2.5 enhances Spring 2.0 with many exciting new features, including:
Full Java 6 and Java EE 5 support (JDBC 4.0, JTA 1.1, JavaMail 1.4, JAX-WS 2.0)
Full-featured annotation-driven dependency injection, including support for 'qualifiers'
Support for auto-detecting application components in the classpath and auto-configuring them as Spring managed objects
A new bean name pointcut element in AspectJ pointcut expressions
Built-in support for AspectJ load-time weaving based on the LoadTimeWeaver abstraction
New XML configuration namespaces "context" and "jms", for maximum convenience
A completely revised integration test framework, with first-class support for JUnit 4 and TestNG
A new annotation-based controller model for Spring MVC supporting Servlet and Portlet environments
Extended SimpleJdbcTemplate functionality, including support for named SQL parameters
Officially certified WebSphere support
The packaging of Spring Framework jars as OSGi-compliant bundles out of the box
The ability to deploy a Spring ApplicationContext as a JCA RAR file, for headless application modules
JCA 1.5 message endpoint management, for Spring-managed JMS and CCI message listenersCheck out the series What's New in Spring 2.5? (http://www.infoq.com/articles/spring-2.5-part-1) for a walkthrough of the new Spring 2.5 features, including information on how to deploy the Spring sample applications that demonstrate them.
We recommend upgrading to Spring 2.5 from all previous Spring 2.0.x versions in order to benefit from the new features as well as the significant performance enhancements that Spring 2.5 has to offer. Spring 2.5 is designed as a drop-in replacement for Spring 2.0, except for the slightly restructured jar file contents (please see the readme file in the distribution for more information on this).
Please note that Spring 2.5 is still compatible with JDK 1.4.2+ and J2EE 1.3+. Java 1.4 users, for example on WebLogic 8.1 or WebSphere 5.1/6.0, are very welcome to upgrade to Spring 2.5 as well. We recommend putting the backport-util-concurrent jar on the classpath when running on Java 1.4, which allows Spring and your applications to benefit from significant concurrency enhancements.
Enjoy Spring 2.5,
Juergen Hoeller
Lead, Spring Framework Development
Tama-Chan
Nov 19th, 2007, 10:57 PM
Hi there!
Congratulations for this release!
However I have a little problem: I'm a Maven user, so to take advantage of this new release I have updated my dependencies in my POM file. It turns out that the spring-aop artifact has accidentally been put at /org/springframework/spring/2.5/ (cf. http://repo1.maven.org/maven2/org/springframework/spring/2.5/ for instance).
Consequently:
- the spring-aop artifact is misplaced
- the spring artifact (the one I was looking for) is absent
Could you fix this problem?
Thanks!
Ben Hale
Nov 19th, 2007, 11:26 PM
Could you fix this problem?
I've fixed the release. The fix may take up to 6 hours to propagate.
pledge
Nov 20th, 2007, 04:16 AM
Phew! Thanks Ben. I was worried this was part of the osgi bundle changes and I was going to have to add in each one individually.
Andreas Schildbach
Nov 20th, 2007, 05:51 AM
For the records: These issues are also known as
http://opensource.atlassian.com/projects/spring/browse/SPR-4130
http://opensource.atlassian.com/projects/spring/browse/SPR-4131
Ben Hale
Nov 20th, 2007, 07:18 AM
... and I was going to have to add in each one individually.
In general, this is what we recommend to our users. By using the smaller jars you get much finer grained control about what's going on your classpath. With 2.5 we've vastly reduced the number of jars that you need to choose from as well. And since you're using Maven, a lot of the heavy lifting such as determining which dependencies are needed has been taken care of for you. If you simply depend on spring.jar, all of the dependencies are optional and you actually have to do a bit more work.
pledge
Nov 20th, 2007, 10:07 AM
Of course that is a good point. However when you are using the majority of Spring, along with using newer/differing versions of dependencies then your POM can grow rapdily. I'm just trying to justify my laziness :)
flashing
Nov 21st, 2007, 07:45 AM
I've fixed the release. The fix may take up to 6 hours to propagate.
It's greate but the maven's repo still can't work well. The .jar file is missing?:confused:
wleck
Nov 21st, 2007, 04:06 PM
Yeah, I'm having the same issue. Everything in http://repo1.maven.org/maven2/org/springframework/spring/2.5/ is there except the actual JAR file itself. This is messing up my builds :(
antony.stubbs
Nov 22nd, 2007, 12:12 AM
I've fixed the release. The fix may take up to 6 hours to propagate.
There's still a problem on http://repo1.maven.org/maven2/org/springframework/spring/2.5/ - the sources jar is still the Spring-AOP source!
I wouldn't have bothered msging about this, but the other jar is now fixed so it appears to have 'propagated'. Please let us know if the sources jar is also on it's way.
FYI I also got hash failures on the downloads.
testn
Nov 25th, 2007, 08:38 AM
I still don't see many jars of 2.5 not there in maven2 repo
- spring-supports-2.5.jar (is it changed to spring-context-supports-2.5.jar)
- spring-context-supports-2.5.jar (Invalid SHA-1)
- spring-remote-2.5.jar
- spring-jmx-2.5.jar
- spring-mock-2.5.jar
- spring-jpa-2.5.jar
- spring-jdo-2.5.jar
- spring-jca-2.5.jar
- spring-ibatis-2.5.jar
- spring-hibernateXXX-2.5.jar
- spring-dao-2.5.jar
Can you check please?
haroon.rafique
Nov 26th, 2007, 09:53 AM
I still don't see many jars of 2.5 not there in maven2 repo
- spring-supports-2.5.jar (is it changed to spring-context-supports-2.5.jar)
- spring-context-supports-2.5.jar (Invalid SHA-1)
- spring-remote-2.5.jar
- spring-jmx-2.5.jar
- spring-mock-2.5.jar
- spring-jpa-2.5.jar
- spring-jdo-2.5.jar
- spring-jca-2.5.jar
- spring-ibatis-2.5.jar
- spring-hibernateXXX-2.5.jar
- spring-dao-2.5.jar
Can you check please?
There should be some sort of maven2 migration guide when going from spring 2.0.x to 2.5. However, this is the synopsis of what I committed to my own project and it should get you started (you might want to look at the changelog (http://static.springframework.org/spring/docs/2.5.x/changelog.txt)to see if anything else needs changing):
version bump for spring to 2.5
* spring-jmx and spring-remoting rolled into spring-context
* spring-dao renamed to spring-tx
* spring-support renamed to spring-context-support
* spring-jpa and other ORM-related artifacts rolled into spring-orm
* spring-mock renamed to spring-test
And jca is now included in spring-tx
Does that answer most of your questions?
manifoldronin
Nov 28th, 2007, 07:37 PM
I'm having this issue with pretty much every spring module up in ibiblio: both md5 and sha1 sums don't match the corresponding pom file.
spring_user1
Dec 4th, 2007, 02:25 PM
I also downloaded spring-2.5.jar from http://repo1.maven.org/maven2/org/springframework/spring/2.5/, but the downloaded file and MD5 (spring-2.5.jar.md5) & SHA1 (spring-2.5.jar.sha1) signatures do not match.
Please resolve this issue.
Thank You.
Marten Deinum
Dec 4th, 2007, 02:30 PM
If you want an issue resolved, please post/create a JIRA issue.
al0
Dec 8th, 2007, 12:33 PM
Reference is so much improved, congratulations!
Regards,
Oleksandr
storm
Dec 10th, 2007, 09:07 AM
Encountered error using Spring 2.5 with JDK1.4.2! :confused:
Please note that Spring 2.5 is still compatible with JDK 1.4.2+ and J2EE 1.3+. Java 1.4 users, for example on WebLogic 8.1 or WebSphere 5.1/6.0, are very welcome to upgrade to Spring 2.5 as well.
I think 2.5 is not full compatible with Java 4 or it's a bug in JVM. When using StoredProcedure (method execute(Map))
NoSuchMethod exception occured.
java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
Using Java 5 or 6 the same code works okay. Has anybody same experience?
Jörg Heinicke
Dec 10th, 2007, 10:46 PM
Encountered error using Spring 2.5 with JDK1.4.2!
Seems to be this issue: SPR-4215 (http://opensource.atlassian.com/projects/spring/browse/SPR-4215).
Joerg
CameronBraid
Jan 3rd, 2008, 11:49 AM
Is spring 2.5 intended to be compatible with spring-security-2, or will there be a spring-security-2.5 ?
Also, are there plans to make a spring-security forum, or will you just continue to use the acegisecurity forum ?
Juergen Hoeller
Jan 3rd, 2008, 07:12 PM
Spring Security 2.0 will be compatible with both Spring 2.0 and Spring 2.5. In general, all our upcoming portfolio releases will be supporting Spring 2.5 as far as possible.
Juergen
CameronBraid
Jan 3rd, 2008, 10:31 PM
Thanks for the reply - the reason that I ask, is that I am trying to migrate from acegi security to spring-security in a spring 2.5 based application.
I am getting this exception:
Caused by: java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.r egisterAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Ljava/lang/Object;)V
at org.springframework.security.config.AnnotationDriv enBeanDefinitionParser.parse(AnnotationDrivenBeanD efinitionParser.java:70)
at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1246)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1236)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:133)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:90)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:468)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:363)
I'd be happy to submit a JIRA bug report - I just wasn't sure that this was meant to work.
al0
Jan 10th, 2008, 04:55 PM
Spring 2.5.1 is released nad 2.0.8
PascalAlberty
Jan 11th, 2008, 04:04 AM
Am I the only one with a dependency problem on Spring 2.5.1 ?
http://jira.springframework.org/browse/SPR-4312
al0
Jan 11th, 2008, 04:23 AM
It's emblematic that tools supposed to eliminate (or at least alleviate) dependency problems causes more problems then "hand" builds :eek:
Am I the only one with a dependency problem on Spring 2.5.1 ?
http://jira.springframework.org/browse/SPR-4312
puran
Jan 13th, 2008, 04:46 PM
Hello All, i am also getting the same error with spring 2.5 , i am using 1.5.3 version of aspectj libraries
org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.r egisterAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Ljava/lang/Object;)V
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:385)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:313)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:290)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:142)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:158)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:184)
at org.springframework.test.AbstractSingleSpringConte xtTests.createApplicationContext(AbstractSingleSpr ingContextTests.java:242)
at org.springframework.test.AbstractSingleSpringConte xtTests.loadContextLocations(AbstractSingleSpringC ontextTests.java:212)
at org.springframework.test.AbstractSingleSpringConte xtTests.loadContext(AbstractSingleSpringContextTes ts.java:187)
at org.springframework.test.AbstractSpringContextTest s.getContext(AbstractSpringContextTests.java:140)
at org.springframework.test.AbstractSingleSpringConte xtTests.setUp(AbstractSingleSpringContextTests.jav a:100)
at junit.framework.TestCase.runBare(TestCase.java:132 )
at org.springframework.test.ConditionalTestCase.runBa re(ConditionalTestCase.java:76)
at junit.framework.TestResult$1.protect(TestResult.ja va:110)
at junit.framework.TestResult.runProtected(TestResult .java:128)
at junit.framework.TestResult.run(TestResult.java:113 )
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:2 32)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.OldTestClassRunner.run( OldTestClassRunner.java:76)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR eference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)
Caused by: java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.r egisterAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Ljava/lang/Object;)V
at org.springframework.transaction.config.AnnotationD rivenBeanDefinitionParser.parseInternal(Annotation DrivenBeanDefinitionParser.java:61)
at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:56)
at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1246)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1236)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:133)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:90)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:468)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:363)
... 25 more
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:385)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:313)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:290)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:142)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:158)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:184)
at org.springframework.test.AbstractSingleSpringConte xtTests.createApplicationContext(AbstractSingleSpr ingContextTests.java:198)
at org.springframework.test.AbstractSingleSpringConte xtTests.loadContextLocations(AbstractSingleSpringC ontextTests.java:179)
at org.springframework.test.AbstractSingleSpringConte xtTests.loadContext(AbstractSingleSpringContextTes ts.java:158)
at org.springframework.test.AbstractSpringContextTest s.getContext(AbstractSpringContextTests.java:105)
at org.springframework.test.AbstractSingleSpringConte xtTests.setUp(AbstractSingleSpringContextTests.jav a:87)
at junit.framework.TestCase.runBare(TestCase.java:132 )
at org.springframework.test.ConditionalTestCase.runBa re(ConditionalTestCase.java:69)
at junit.framework.TestResult$1.protect(TestResult.ja va:110)
at junit.framework.TestResult.runProtected(TestResult .java:128)
at junit.framework.TestResult.run(TestResult.java:113 )
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:2 32)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.OldTestClassRunner.run( OldTestClassRunner.java:76)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR eference.run(JUnit4TestReference.java:38)
at org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:196)
Caused by: java.lang.NoSuchMethodError: org.springframework.aop.config.AopNamespaceUtils.r egisterAutoProxyCreatorIfNecessary(Lorg/springframework/beans/factory/xml/ParserContext;Ljava/lang/Object;)V
at org.springframework.transaction.config.AnnotationD rivenBeanDefinitionParser.parseInternal(Annotation DrivenBeanDefinitionParser.java:61)
at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:56)
at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1246)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1236)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:133)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:90)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:468)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:363)
... 25 more
Marten Deinum
Jan 14th, 2008, 01:36 AM
You are probably better of with a new Thread instead of hijacking this one. However I think you are mixing version of spring, make sure that there is only 1 version of spring or of the spring modules (if you don'tuse the big spring.jar) in your classpath. I guess you are mixing Spring 2.0 and Spring 2.5 jars...
garyng
Jan 14th, 2008, 08:54 AM
It's emblematic that tools supposed to eliminate (or at least alleviate) dependency problems causes more problems then "hand" builds :eek:
As a long time debian user, I found the maven thing pretty ridiculous, at least its dependency management department.
In fact, the other poster's issue about mixing different spring versions are a typical result of maven(many spring sub-projects still have coded dependency fo 2.0.x so any time including those would pull them in).
j0y0
Feb 25th, 2008, 03:30 AM
dear all spring community,
is there anybody help me to find the source code for building a spring mvc(2.5)??
bba
Feb 29th, 2008, 04:41 AM
As I tryed to update from Spring 2.0.7 to Spring 2.5.1, I realised that the class:
org.springframework.web.servlet.view.InternalResou rceViewResolver ,
in fact the whole package org.springframework.web.servlet
is missing from spring.jar (in all 3 distributions spring-framework-2.5.1.zip, spring-framework-2.5.1-with-docs.zip spring-framework-2.5.1-with-dependencies.zip)
According to the Spring 2.5.x Javadoc it should be there. And acording also with the contents of the src folder in the distribution spring-framework-2.5.1-with-dependencies.zip.
Am I missing something?
al0
Feb 29th, 2008, 04:54 AM
It is in spring-webmvc.jar.
From version 2.5 Spring packaging has changed. It is described in details in readme.txt in the root directory of the Spring distribution.
Regards,
Oleksandr
As I tryed to update from Spring 2.0.7 to Spring 2.5.1, I realised that the class:
org.springframework.web.servlet.view.InternalResou rceViewResolver ,
in fact the whole package org.springframework.web.servlet
is missing from spring.jar (in all 3 distributions spring-framework-2.5.1.zip, spring-framework-2.5.1-with-docs.zip spring-framework-2.5.1-with-dependencies.zip)
According to the Spring 2.5.x Javadoc it should be there. And acording also with the contents of the src folder in the distribution spring-framework-2.5.1-with-dependencies.zip.
Am I missing something?
bba
Feb 29th, 2008, 06:11 AM
Yes, you are right, I got confused by the "all" word in the second sentence of the 3-rd Chapter (3. DISTRIBUTION JAR FILES):
"Both module-specific jar files and a jar file with all of Spring are provided."
But a few lines below is indeed cleared:
"FULL JAR (dist)"
...
" - Does not include contents of spring-aspects.jar, spring-test.jar and spring-webmvc*.jar!"
Thank you, Oleksandr!
It is in spring-webmvc.jar.
From version 2.5 Spring packaging has changed. It is described in details in readme.txt in the root directory of the Spring distribution.
Regards,
Oleksandr
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.