Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

What else must you do

There is a backport folder located in the j4 zip file.

Altenatively, you can find the backport files here:

You must put these files contained in backport file into your WEB-INF/lib folder.

There is a translate.bat file located in the backport file. You can run the bat file to
convert your Java 5 jars into j4. In summary:

  • I got the backport files from the nightlies which i copied to ... \WebContent\WEB-INF\lib
  • Then i modified the translate.bat as follows:

java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-core-2.0.1.jar -destjar struts2-core-j4-2.0.1.jar
java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-api-2.0.1.jar -destjar struts2-api-j4-2.0.1.jar
java -jar retrotranslator-transformer-1.0.8.jar -srcjar xwork-2.0-beta-1 -destjar xwork-2.0-j4.jar

  • invoke translate.bat
  • It is important to note that you will have to replace the following jars mentioned above with java 1.4.x equivalents:
    struts2-core-2.0.1 with struts2-core-j4-2.0.1.jar
    struts2-api-2.0.1 with struts2-api-j4-2.0.1.jar
    xwork-2.0-beta-1 with xwork-2.0-j4.jar

What jars should you have in your WEB-INF/lib folder after performing these steps:

commons-collections-3.1
commons-beanutils-1.6
commons-digester-1.6
commons-logging-1.0.4
freemarker-2.3.4
spring-aop-1.2.8
spring-context-1.2.8
spring-web-1.2.8
retrotranslator-runtime-1.0.8
retrotranslator-transformer-1.0.8
ognl-2.6.7
spring-beans-1.2.8
spring-core-1.2.8
struts2-core-j4-2.0.1
struts2-api-j4-2.0.1
xwork-2.0-beta-1j4
backport-util-concurrent