Versions Compared

Key

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

Definition

Excerpt

Deploying J2EE / Java EE WARs on Tomcat 10.x onwards (which is Jakarta EE)

...

uses Jakarta EE, which is not backwards compatible with

...

J2EE / Java EE.

To ease migration, a Jakarta EE migration tool is part of Tomcat, and through the legacyAppBase configuration property allows automatic conversion of legacy WARs to Jakarta EE WARs.

Codehaus Cargo 1.10.14 introduced a functionality to benefit for the same, by providing a property called version on Deployable objects, to specify whether it is j2ee, javaee or jakartaee and enable the Tomcat deployer to handle it accordingly:

...

Code Block
xml
xml
<cargo containerId="tomcat10x" home="c:/tomcat/tomcat-10.1.23" action="start">
  <configuration>
    <deployable type="war" file="path/to/some-war.war">
      <property name="versiobversion" value="javaee"/>
    </deployable>
  </configuration>
</cargo>

...