Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

The

following

is

a

*

TO

DO

list

*

when

upgrading

your

Maven

projects

from

Spring

3.0.3

to

Spring

3.1.1.

\\ # Take out the version number in the


  1. Take out the version number in the xsd(s)
  1. referenced
  1. in
  1. the
  1. xsi:schemaLocation:
{
Panel
Wiki Markup
Code Block
}
  1. 
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd 
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">
    
{code}
  1. These
  1. xsd
  1. configurations
  1. will
  1. usually
  1. be
  1. found
  1. in
  1. the
  1. applicationContext.xml,
  1. servlet.xml
  1. and
  1. <web-app>-security.xml
  1. files.
\\ \\ # Modify the propertyConfigurer bean configuration to comply to the new class specification of the same bean in Spring


  1. Modify the propertyConfigurer bean configuration to comply to the new class specification of the same bean in Spring 3.1.1:
\\

  1. From:
{
  1. Code Block
}
  1. 
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations" value="file:$\{user.home\}/academic-ose-reporting.properties" />
    </bean>
    
{code}
  1. To:
{
  1. Code Block
}
  1. 
    <bean id="propertyConfigurer" class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>file:$\{user.home\}/academic-ose-reporting.properties</value>
            </list>
         </property>
         <property name="ignoreResourceNotFound" value="true" />    
    </bean>
    
{code}
  1. The
  1. propertyConfigurer
  1. bean
  1. are
  1. found
  1. in
  1. applicationContext.xml,
  1. servlet.xml
  1. and
  1. may
  1. be
  1. applicationContext-test.xml.
\\ \\ # Delete the springframework dependencies in the


  1. Delete the springframework dependencies in the pom.xml
  1. of
  1. the
  1. web
  1. application
  1. to
  1. use
  1. the
  1. transitive
  1. dependencies
  1. inherited
  1. from
  1. csf.
&nbsp;&nbsp;The following is the list of spring
  1.   The following is the list of spring 3.1.1
  1. dependencies
  1. defined
  1. in
  1. csf:
{
  1. Code Block
}
  1. 
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aop</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-asm</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aspects</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context-support</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-expression</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-instrument</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-instrument-tomcat</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jdbc</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-oxm</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-tx</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc-portlet</artifactId>
        <version>3.1.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc-struts</artifactId>
        <version>2.5.6.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-mobile-device</artifactId>
        <version>1.0.0.M2</version>
    <dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-core</artifactId>
        <version>3.1.0.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-web</artifactId>
        <version>3.1.0.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-ldap</artifactId>
        <version>3.1.0.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework.ldap</groupId>
        <artifactId>spring-ldap-core</artifactId>
        <version>1.3.1.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>pring-security-config</artifactId>
        <version>3.1.0.RELEASE</version>
    <dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>pring-security-taglibs</artifactId>
        <version>3.1.0.RELEASE</version>
    <dependency>
    
{code} \\ # If the web application uses spring web flow or spring batch, update the versions of the related modules in the dependencies in the pom file so that they are compatible with spring

  1. If the web application uses spring web flow or spring batch, update the versions of the related modules in the dependencies in the pom file so that they are compatible with spring 3.1.1:
{
  1. Code Block
}
  1. 
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>spring-binding</artifactId>
        <version>2.3.1.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>spring-faces</artifactId>
        <version>2.3.1.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>spring-webflow</artifactId>
        <version>2.3.1.RELEASE</version>
    </dependency>  
    <dependency>
        <groupId>org.springframework.batch</groupId>
        <artifactId>spring-batch-core</artifactId>
        <version>2.1.8.RELEASE</version>
        <type>jar</type>
        <scope>compile</scope>
        <exclusions>
            <exclusion>
                <artifactId>spring-tx</artifactId>
                <groupId>org.springframework</groupId>
            </exclusion>
            </exclusions>
        </dependency>
    <dependency>
        <groupId>org.springframework.batch</groupId>
        <artifactId>spring-batch-infrastructure</artifactId>
        <version>2.1.8.RELEASE</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.batch</groupId>
        <artifactId>spring-batch-test</artifactId>
        <version>2.1.8.RELEASE</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>
{code}
  1.