Rocket Modern Experience (formerly LegaSuite)

 View Only

Using Tomcat 10 with Rocket MX (Web Edition)

  • 1.  Using Tomcat 10 with Rocket MX (Web Edition)

    ROCKETEER
    Posted 04-21-2023 11:10

    Wanting to upgrade your version of Tomcat to Tomcat 10? That's fine. What you need to take into account is that Tomcat 10 has upgraded the version of the servlet spec from version 4 to version 5. Since servlet spec 5 uses different class names, this will cause the Web Client to fail as the Web Client is based on servlet spec 4. No need to fear, there is simple solution to convert the webclient.war file from servlet spec 4 to servlet spec 5. Below are the simple steps needed to convert the .war file to work on Tomcat 10.

    1. Download the migration tool binaries from  https://tomcat.apache.org/download-migration.cgi

    2.  the jars are located in the lib folder

    3.  Run the command java -jar jakartaee-migration-x.x.x.jar <source> <destination>**

    a.       source = path of current WAR file

    b.       destination = path, where new WAR file will be generated

    4.      4.    Deploy the newly generated file to tomcat 10 and it is successfully deployed.

    An example command of this would be:

    C:\war>java -jar C:\war\jakartaee\lib\jakartaee-migration-1.0.6.jar c:\war\old\webclient.war c:\war\new\webclient.war

    The command was simplified by creating a folder called war with subfolders of the jakartaee files, an old folder for the original webclient.war and a new subfolder for the new webclient.war file.





              



    ------------------------------
    Patrick Carroll
    Manager, Technical Support Engineering
    Rocket Internal - All Brands
    Atlanta GA US
    ------------------------------