Skip to content

Migration Guide 1.0.6

btkitayamahr edited this page Mar 16, 2017 · 3 revisions

Migrating from 1.0.5 to 1.0.6

html

Table of contents

Main changes in 1.0.6 --------------------

Main changes in version 1.0.6 are following.

  • Updated the Spring Framework to 3.2.18

Updated the Spring Framework to 3.2.18

From version 1.0.6, Spring Framework has been updated to 3.2.18.RELEASE.

Migration procedures from 1.0.5 to 1.0.6

Migration procedures are as follows.

Note

Legend

Required : This procedure is mandatory.
Required by case : This procedure is mandatory, if conditions match.
Optional : This procedure is recommended. Perform it if you feel the need.
- : This procedure is not required.

[General]

p{0.30linewidth}p{0.20linewidth}

Step Procedure MavenMultiple Projects MavenSingle Project EclipseWTP Project
1. Update dependency libraries Required Required Required

[Step 1] Update dependency libraries

Update TERASOLUNA Global Framework Common Library and dependency libraries.

p{0.25linewidth}p{0.15linewidth}|

Library Name From version To version Remarks
TERASOLUNA Global Framework Common Library 1.0.5.RELEASE 1.0.6.RELEASE
Spring Framework 3.2.17.RELEASE 3.2.18.RELEASE

[Procedure's required cases]

This procedure is required.

[Step 1-1] Using Maven Multiple Projects

This update procedure is for the projects which are generated by using mvn archetype.

Update pom file in your parent project. ($YOUR_MULTIPLE_PROJECT_ROOT/pom.xml)

[Before correction]

[After correction]

[Step 1-2] Using Maven Single Project

This update procedure is for projects that are generated by using mvn archetype or downloaded from the release site.

Update pom file in your project. ($YOUR_SINGLE_PROJECT/pom.xml)

[Before correction]

[After correction]

[Step 1-3] Using Eclipse WTP Project

This update procedure is for Eclipse WTP project which is downloaded from the release site.

For update procedures, refer to Update libraries for using Eclipse WTP Project .

Appendix for 1.0.6

Update libraries for using Eclipse WTP Project

This update procedure is for Eclipse WTP project which is downloaded from the release site.

Note

Legend

[Table Header]
Non : Blank project for none O/R Mapper
MB2 : Blank project for MyBatis 2
JPA : Blank project for JPA
[Marks]
* : target for operations

[Step 1]

Download the Eclipse WTP Project of 1.0.6.RELEASE.

[Step 2]

If Eclipse is running, stop the Eclipse.

[Step 3]

Update(delete and add) jar files in $YOUR_ECLIPSE_WTP_PROJECT/src/main/webapp/WEB-INF/lib.

p{0.30linewidth}p{0.05linewidth}p{0.05linewidth}|

Library Name Delete File Add File Non MB2 JPA
TERASOLUNA Global Framework Common Library terasoluna-gfw-common-1.0.5.RELEASE.jar terasoluna-gfw-common-1.0.6.RELEASE.jar * * *
terasoluna-gfw-security-core-1.0.5.RELEASE.jar terasoluna-gfw-security-core-1.0.6.RELEASE.jar * * *
terasoluna-gfw-security-web-1.0.5.RELEASE.jar terasoluna-gfw-security-web-1.0.6.RELEASE.jar * * *
terasoluna-gfw-web-1.0.5.RELEASE.jar terasoluna-gfw-web-1.0.6.RELEASE.jar * * *
terasoluna-gfw-jpa-1.0.5.RELEASE.jar terasoluna-gfw-jpa-1.0.6.RELEASE.jar *
terasoluna-gfw-mybatis2-1.0.5.RELEASE.jar terasoluna-gfw-mybatis2-1.0.6.RELEASE.jar *
Spring Framework spring-aop-3.2.17.RELEASE.jar spring-aop-3.2.18.RELEASE.jar * * *
spring-aspects-3.2.17.RELEASE.jar spring-aspects-3.2.18.RELEASE.jar * * *
spring-beans-3.2.17.RELEASE.jar spring-beans-3.2.18.RELEASE.jar * * *
spring-context-3.2.17.RELEASE.jar spring-context-3.2.18.RELEASE.jar * * *
spring-context-support-3.2.17.RELEASE.jar spring-context-support-3.2.18.RELEASE.jar * * *
spring-core-3.2.17.RELEASE.jar spring-core-3.2.18.RELEASE.jar * * *
spring-expression-3.2.17.RELEASE.jar spring-expression-3.2.18.RELEASE.jar * * *
spring-jdbc-3.2.17.RELEASE.jar spring-jdbc-3.2.18.RELEASE.jar * * *
spring-orm-3.2.17.RELEASE.jar spring-orm-3.2.18.RELEASE.jar * * *
spring-tx-3.2.17.RELEASE.jar spring-tx-3.2.18.RELEASE.jar * * *
spring-web-3.2.17.RELEASE.jar spring-web-3.2.18.RELEASE.jar * * *
spring-webmvc-3.2.17.RELEASE.jar spring-webmvc-3.2.18.RELEASE.jar * * *

[Step 4]

Update(delete and add) jar files in $YOUR_ECLIPSE_WTP_PROJECT/testlib.

p{0.30linewidth}p{0.05linewidth}p{0.05linewidth}|

Library Name Delete File Add File Non MB2 JPA
Spring TestContext Framework spring-test-3.2.17.RELEASE.jar spring-test-3.2.18.RELEASE.jar * * *
Apache HTTPClient httpclient-4.4.1.jar * * *
CSS Parser cssparser-0.9.16.jar * * *
Gson gson-2.3.1.jar * * *
Html Unit htmlunit-2.17.jar * * *
Jetty jetty-io-9.2.11.v20150529.jar * * *
JNA jna-4.1.0.jar * * *
nekoHTML nekohtml-1.9.22.jar * * *
Netty netty-3.5.2.Final.jar * * *
JMTask sac-1.3.jar * * *
Code Generation Library cglib-nodep-2.1_3.jar * * *
serializer serializer-2.7.2.jar * * *
Selenium selenium-api-2.46.0.jar * * *
JUnit junit-dep-4.7.jar * * *
Webbit webbit-0.4.14.jar * * *
Xalan xalan-2.7.2.jar * * *
Xerces xercesImpl-2.11.0.jar * * *
XML Apis xml-apis-1.4.01.jar * * *
H2 Database Engine h2-1.3.172.jar h2-1.3.156.jar * *
Hamcrest hamcrest-core-1.2.1.jar * * *

[Step 5]

Update(delete and add) source jar files in $YOUR_ECLIPSE_WTP_PROJECT/libsrc.

p{0.30linewidth}p{0.05linewidth}p{0.05linewidth}|

Library Name Delete File Add File Non MB2 JPA
TERASOLUNA Global Framework Common Library terasoluna-gfw-common-1.0.5.RELEASE-sources.jar terasoluna-gfw-common-1.0.6.RELEASE-sources.jar * * *
terasoluna-gfw-security-web-1.0.5.RELEASE-sources.jar terasoluna-gfw-security-web-1.0.6.RELEASE-sources.jar * * *
terasoluna-gfw-web-1.0.5.RELEASE-sources.jar terasoluna-gfw-web-1.0.6.RELEASE-sources.jar * * *
Spring Framework spring-aop-3.2.17.RELEASE-sources.jar spring-aop-3.2.18.RELEASE-sources.jar * * *
spring-aspects-3.2.17.RELEASE-sources.jar spring-aspects-3.2.18.RELEASE-sources.jar * * *
spring-beans-3.2.17.RELEASE-sources.jar spring-beans-3.2.18.RELEASE-sources.jar * * *
spring-context-3.2.17.RELEASE-sources.jar spring-context-3.2.18.RELEASE-sources.jar * * *
spring-context-support-3.2.17.RELEASE-sources.jar spring-context-support-3.2.18.RELEASE-sources.jar * * *
spring-core-3.2.17.RELEASE-sources.jar spring-core-3.2.18.RELEASE-sources.jar * * *
spring-expression-3.2.17.RELEASE-sources.jar spring-expression-3.2.18.RELEASE-sources.jar * * *
spring-jdbc-3.2.17.RELEASE-sources.jar spring-jdbc-3.2.18.RELEASE-sources.jar * * *
spring-orm-3.2.17.RELEASE-sources.jar spring-orm-3.2.18.RELEASE-sources.jar * * *
spring-tx-3.2.17.RELEASE-sources.jar spring-tx-3.2.18.RELEASE-sources.jar * * *
spring-web-3.2.17.RELEASE-sources.jar spring-web-3.2.18.RELEASE-sources.jar * * *
spring-webmvc-3.2.17.RELEASE-sources.jar spring-webmvc-3.2.18.RELEASE-sources.jar * * *
Spring TestContext Framework spring-test-3.2.17.RELEASE-sources.jar spring-test-3.2.18.RELEASE-sources.jar * * *
Apache HTTPClient httpclient-4.4.1-sources.jar * * *
CSS Parser cssparser-0.9.16-sources.jar * * *
Gson gson-2.3.1-sources.jar * * *
Html Unit htmlunit-2.17-sources.jar * * *
Jetty jetty-io-9.2.11.v20150529-sources.jar * * *
JNA jna-4.1.0-sources.jar * * *
JUnit junit-dep-4.7-sources.jar * * *
nekoHTML nekohtml-1.9.22-sources.jar * * *
Netty netty-3.5.2.Final-sources.jar * * *
JMTask sac-1.3-sources.jar * * *
Code Generation Library cglib-nodep-2.1_3-sources.jar * * *
serializer serializer-2.7.2-sources.jar * * *
Selenium selenium-api-2.46.0-sources.jar * * *
Webbit webbit-0.4.14-sources.jar * * *
Xalan xalan-2.7.2-sources.jar * * *
Xerces xercesImpl-2.11.0-sources.jar * * *
XML Apis xml-apis-1.4.01-sources.jar * * *
H2 Database Engine h2-1.3.172-sources.jar h2-1.3.156-sources.jar * *
Hamcrest hamcrest-core-1.2.1-sources.jar * * *

[Step 6]

Update the referenced libraries in all of the following files, using replace string.

  • $YOUR_ECLIPSE_WTP_PROJECT/.classpath
  • $YOUR_ECLIPSE_WTP_PROJECT/build.xml

p{0.30linewidth}p{0.05linewidth}p{0.05linewidth}|

Library Name Before After Non MB2 JPA
TERASOLUNA Global Framework Common Library terasoluna-gfw-common-1.0.5.RELEASE terasoluna-gfw-common-1.0.6.RELEASE * * *
terasoluna-gfw-security-core-1.0.5.RELEASE terasoluna-gfw-security-core-1.0.6.RELEASE * * *
terasoluna-gfw-security-web-1.0.5.RELEASE terasoluna-gfw-security-web-1.0.6.RELEASE * * *
terasoluna-gfw-web-1.0.5.RELEASE terasoluna-gfw-web-1.0.6.RELEASE * * *
terasoluna-gfw-jpa-1.0.5.RELEASE terasoluna-gfw-jpa-1.0.6.RELEASE *
terasoluna-gfw-mybatis2-1.0.5.RELEASE terasoluna-gfw-mybatis2-1.0.6.RELEASE *
Spring Framework spring-aop-3.2.17.RELEASE spring-aop-3.2.18.RELEASE * * *
spring-aspects-3.2.17.RELEASE spring-aspects-3.2.18.RELEASE * * *
spring-beans-3.2.17.RELEASE spring-beans-3.2.18.RELEASE * * *
spring-context-3.2.17.RELEASE spring-context-3.2.18.RELEASE * * *
spring-context-support-3.2.17.RELEASE spring-context-support-3.2.18.RELEASE * * *
spring-core-3.2.17.RELEASE spring-core-3.2.18.RELEASE * * *
spring-expression-3.2.17.RELEASE spring-expression-3.2.18.RELEASE * * *
spring-jdbc-3.2.17.RELEASE spring-jdbc-3.2.18.RELEASE * * *
spring-orm-3.2.17.RELEASE spring-orm-3.2.18.RELEASE * * *
spring-tx-3.2.17.RELEASE spring-tx-3.2.18.RELEASE * * *
spring-web-3.2.17.RELEASE spring-web-3.2.18.RELEASE * * *
spring-webmvc-3.2.17.RELEASE spring-webmvc-3.2.18.RELEASE * * *
Spring TestContext Framework spring-test-3.2.17.RELEASE spring-test-3.2.18.RELEASE * * *
H2 Database Engine h2-1.3.172 h2-1.3.156 * *

[Step 7]

Please add reference library(jar files below) in Eclipse WTP project setting.

  • $YOUR_ECLIPSE_WTP_PROJECT/.classpath
  • $YOUR_ECLIPSE_WTP_PROJECT/build.xml

p{0.55linewidth}p{0.05linewidth}

Library name Prefix of jar file to be added Non MB2 JPA
Code Generation Library cglib-nodep-2.1_3 * * *
Apache HTTPClient httpclient-4.4.1 * * *
httpcore-4.4.1 * * *
httpmime-4.4.1 * * *
commons-codec-1.10 * * *
commons-exec-1.3 * * *
commons-logging-1.2 * * *
CSS Parser cssparser-0.9.16 * * *
Gson gson-2.3.1 * * *
Html Unit htmlunit-2.17 * * *
htmlunit-core-js-2.17 * * *
Jetty jetty-io-9.2.11.v20150529 * * *
jetty-util-9.2.11.v20150529 * * *
JNA jna-4.1.0 * * *
jna-platform-4.1.0 * * *
JUnit junit-dep-4.7 * * *
nekoHTML nekohtml-1.9.22 * * *
Netty netty-3.5.2.Final * * *
JMTask sac-1.3 * * *
serializer serializer-2.7.2 * * *
Selenium selenium-api-2.46.0 * * *
selenium-chrome-driver-2.46.0 * * *
selenium-firefox-driver-2.46.0 * * *
selenium-htmlunit-driver-2.46.0 * * *
selenium-ie-driver-2.46.0 * * *
selenium-java-2.46.0 * * *
selenium-leg-rc-2.46.0 * * *
selenium-remote-driver-2.46.0 * * *
selenium-safari-driver-2.46.0 * * *
selenium-support-2.46.0 * * *
Webbit webbit-0.4.14 * * *
websocket-api-9.2.11.v20150529 * * *
websocket-client-9.2.11.v20150529 * * *
websocket-common-9.2.11.v20150529 * * *
Xalan xalan-2.7.2 * * *
Xerces xercesImpl-2.11.0 * * *
XML Apis xml-apis-1.4.01 * * *
Hamcrest hamcrest-core-1.2.1 * * *
hamcrest-library-1.2.1 * * *

[Modification method]

.classpath

<!-- ### The following class path entries needs to be added ### -->

<!-- omitted -->

<classpathentry kind="lib"
    path="testlib/cglib-nodep-2.1_3.jar"
    sourcepath="libsrc/cglib-nodep-2.1_3-sources.jar" />
<classpathentry kind="lib"
    path="testlib/commons-codec-1.10.jar"
    sourcepath="libsrc/commons-codec-1.10-sources.jar" />
<classpathentry kind="lib"
    path="testlib/commons-exec-1.3.jar"
    sourcepath="libsrc/commons-exec-1.3-sources.jar" />
<classpathentry kind="lib"
    path="testlib/commons-logging-1.2.jar"
    sourcepath="libsrc/commons-logging-1.2-sources.jar" />
<classpathentry kind="lib"
    path="testlib/cssparser-0.9.16.jar"
    sourcepath="libsrc/cssparser-0.9.16-sources.jar" />
<classpathentry kind="lib"
    path="testlib/gson-2.3.1.jar"
    sourcepath="libsrc/gson-2.3.1-sources.jar" />
<classpathentry kind="lib"
    path="testlib/hamcrest-core-1.2.1.jar"
    sourcepath="libsrc/hamcrest-core-1.2.1-sources.jar" />
<classpathentry kind="lib"
    path="testlib/hamcrest-library-1.2.1.jar"
    sourcepath="libsrc/hamcrest-library-1.2.1-sources.jar" />
<classpathentry kind="lib"
    path="testlib/htmlunit-2.17.jar"
    sourcepath="libsrc/htmlunit-2.17-sources.jar" />
<classpathentry kind="lib"
    path="testlib/htmlunit-core-js-2.17.jar"
    sourcepath="libsrc/htmlunit-core-js-2.17-sources.jar" />
<classpathentry kind="lib"
    path="testlib/httpclient-4.4.1.jar"
    sourcepath="libsrc/httpclient-4.4.1-sources.jar" />
<classpathentry kind="lib"
    path="testlib/httpcore-4.4.1.jar"
    sourcepath="libsrc/httpcore-4.4.1-sources.jar" />
<classpathentry kind="lib"
    path="testlib/httpmime-4.4.1.jar"
    sourcepath="libsrc/httpmime-4.4.1-sources.jar" />
<classpathentry kind="lib"
    path="testlib/jetty-io-9.2.11.v20150529.jar"
    sourcepath="libsrc/jetty-io-9.2.11.v20150529-sources.jar" />
<classpathentry kind="lib"
    path="testlib/jetty-util-9.2.11.v20150529.jar"
    sourcepath="libsrc/jetty-util-9.2.11.v20150529-sources.jar" />
<classpathentry kind="lib"
    path="testlib/jna-4.1.0.jar"
    sourcepath="libsrc/jna-4.1.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/jna-platform-4.1.0.jar"
    sourcepath="libsrc/jna-platform-4.1.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/junit-dep-4.7.jar"
    sourcepath="libsrc/junit-dep-4.7-sources.jar" />
<classpathentry kind="lib"
    path="testlib/nekohtml-1.9.22.jar"
    sourcepath="libsrc/nekohtml-1.9.22-sources.jar" />
<classpathentry kind="lib"
    path="testlib/netty-3.5.2.Final.jar"
    sourcepath="libsrc/netty-3.5.2.Final-sources.jar" />
<classpathentry kind="lib"
    path="testlib/sac-1.3.jar"
    sourcepath="libsrc/sac-1.3-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-api-2.46.0.jar"
    sourcepath="libsrc/selenium-api-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-chrome-driver-2.46.0.jar"
    sourcepath="libsrc/selenium-chrome-driver-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-firefox-driver-2.46.0.jar"
    sourcepath="libsrc/selenium-firefox-driver-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-htmlunit-driver-2.46.0.jar"
    sourcepath="libsrc/selenium-htmlunit-driver-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-ie-driver-2.46.0.jar"
    sourcepath="libsrc/selenium-ie-driver-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-java-2.46.0.jar"
    sourcepath="libsrc/selenium-java-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-leg-rc-2.46.0.jar"
    sourcepath="libsrc/selenium-leg-rc-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-remote-driver-2.46.0.jar"
    sourcepath="libsrc/selenium-remote-driver-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-safari-driver-2.46.0.jar"
    sourcepath="libsrc/selenium-safari-driver-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/selenium-support-2.46.0.jar"
    sourcepath="libsrc/selenium-support-2.46.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/serializer-2.7.2.jar"
    sourcepath="libsrc/serializer-2.7.2-sources.jar" />
<classpathentry kind="lib"
    path="testlib/webbit-0.4.14.jar"
    sourcepath="libsrc/webbit-0.4.14-sources.jar" />
<classpathentry kind="lib"
    path="testlib/websocket-api-9.2.11.v20150529.jar"
    sourcepath="libsrc/websocket-api-9.2.11.v20150529-sources.jar" />
<classpathentry kind="lib"
    path="testlib/websocket-client-9.2.11.v20150529.jar"
    sourcepath="libsrc/websocket-client-9.2.11.v20150529-sources.jar" />
<classpathentry kind="lib"
    path="testlib/websocket-common-9.2.11.v20150529.jar"
    sourcepath="libsrc/websocket-common-9.2.11.v20150529-sources.jar" />
<classpathentry kind="lib"
    path="testlib/xalan-2.7.2.jar"
    sourcepath="libsrc/xalan-2.7.2-sources.jar" />
<classpathentry kind="lib"
    path="testlib/xercesImpl-2.11.0.jar"
    sourcepath="libsrc/xercesImpl-2.11.0-sources.jar" />
<classpathentry kind="lib"
    path="testlib/xml-apis-1.4.01.jar"
    sourcepath="libsrc/xml-apis-1.4.01-sources.jar" />

<!-- omitted -->

build.xml

<!-- ### The following class path entries needs to be added ### -->

<path id="build.classpath">
    <!-- omitted -->
    <pathelement location="${testlib.dir}/cglib-nodep-2.1_3.jar"/>
    <pathelement location="${testlib.dir}/commons-codec-1.10.jar"/>
    <pathelement location="${testlib.dir}/commons-exec-1.3.jar"/>
    <pathelement location="${testlib.dir}/commons-logging-1.2.jar"/>
    <pathelement location="${testlib.dir}/cssparser-0.9.16.jar"/>
    <pathelement location="${testlib.dir}/gson-2.3.1.jar"/>
    <pathelement location="${testlib.dir}/hamcrest-core-1.2.1.jar"/>
    <pathelement location="${testlib.dir}/hamcrest-library-1.2.1.jar"/>
    <pathelement location="${testlib.dir}/htmlunit-2.17.jar"/>
    <pathelement location="${testlib.dir}/htmlunit-core-js-2.17.jar"/>
    <pathelement location="${testlib.dir}/httpclient-4.4.1.jar"/>
    <pathelement location="${testlib.dir}/httpcore-4.4.1.jar"/>
    <pathelement location="${testlib.dir}/httpmime-4.4.1.jar"/>
    <pathelement location="${testlib.dir}/jetty-io-9.2.11.v20150529.jar"/>
    <pathelement location="${testlib.dir}/jetty-util-9.2.11.v20150529.jar"/>
    <pathelement location="${testlib.dir}/jna-4.1.0.jar"/>
    <pathelement location="${testlib.dir}/jna-platform-4.1.0.jar"/>
    <pathelement location="${testlib.dir}/junit-dep-4.7.jar"/>
    <pathelement location="${testlib.dir}/nekohtml-1.9.22.jar"/>
    <pathelement location="${testlib.dir}/netty-3.5.2.Final.jar"/>
    <pathelement location="${testlib.dir}/sac-1.3.jar"/>
    <pathelement location="${testlib.dir}/selenium-api-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-chrome-driver-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-firefox-driver-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-htmlunit-driver-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-ie-driver-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-java-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-leg-rc-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-remote-driver-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-safari-driver-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/selenium-support-2.46.0.jar"/>
    <pathelement location="${testlib.dir}/serializer-2.7.2.jar"/>
    <pathelement location="${testlib.dir}/webbit-0.4.14.jar"/>
    <pathelement location="${testlib.dir}/websocket-api-9.2.11.v20150529.jar"/>
    <pathelement location="${testlib.dir}/websocket-client-9.2.11.v20150529.jar"/>
    <pathelement location="${testlib.dir}/websocket-common-9.2.11.v20150529.jar"/>
    <pathelement location="${testlib.dir}/xalan-2.7.2.jar"/>
    <pathelement location="${testlib.dir}/xercesImpl-2.11.0.jar"/>
    <pathelement location="${testlib.dir}/xml-apis-1.4.01.jar"/>
    <!-- omitted -->
</path>
Clone this wiki locally