WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  binary Scanner java version issue

    Posted Thu January 28, 2021 05:17 PM
    Hello,

    Good Day,

    with reference to the below screen shot, there is no option for open jdk version ? is any comment, what happen if my application is using openJDK 7 and running in tomcat wanted to migrate to Liberty also java 11? in this scenario, I do not have source java version input? when I tried it throws error? "invalid entry"



    ------------------------------
    PRABAKAR
    ------------------------------


  • 2.  RE: binary Scanner java version issue

    Posted Thu January 28, 2021 06:59 PM
    Hi Prabakar,
    I think OpenJDK 7 would be closest to the oracle7 rule set.  Your command should look something like the following command:

    java -jar binaryAppScanner.jar <path to your application> --sourceAppServer=tomcat --targetAppServer=liberty --sourceJava=oracle7 --targetJava=java11

    If you provide the command you are using, we can better understand what is causing "invalid entry".

    ------------------------------
    Cindy High
    IBM
    ------------------------------



  • 3.  RE: binary Scanner java version issue

    Posted Fri January 29, 2021 01:45 PM
    Hello Cindy,

    Thanks for your reply, as requested below is the screen shot of my exercise...
    First , I tried without java, it throws error, then I used the java8, again it throws error...hope this helps...



    ------------------------------
    PRABAKAR SINGARAM
    ------------------------------



  • 4.  RE: binary Scanner java version issue

    Posted Mon February 01, 2021 01:50 AM
    Hello Prabarkar,

    use the in-built help functionality, maybe that helps.

    Take care

    Peter
    ----------------------------------------------------
    Example:

    #  ./java -jar binaryAppScanner.jar --help --all

    Usage:
            java -jar binaryAppScanner.jar <binaryInputPath> --all [options]

        binaryInputPath
            Specify an absolute or relative path to a .ear or .war file, or to a
            directory that contains .ear and .war files.

    Description:
            Generate the Application Migration Report, which consolidates
            the content for all the individual actions into one report,
            with sections including Technology Evaluation, Detailed
            Migration Analysis, Inventory, and Configuration.

    Application server options:
            You can use application server options to specify the source and
            target application server and target cloud runtime environment.

        --sourceAppServer=[jboss|liberty|libertyCore|other|tomcat|was61|was70|was80|was855|was90|weblogic]
            Include rules for migrating from the specified source application
            server to the target application server. The default is was855.
            The following options are valid:
            * jboss - JBoss Application Server
            * liberty - WebSphere Application Server Liberty
            * libertyCore - WebSphere Application Server Liberty Core
            * other - Other third-party servers
            * tomcat - Apache Tomcat Application Server
            * was61 - WebSphere Application Server traditional V6.1
            * was70 - WebSphere Application Server traditional V7.0
            * was80 - WebSphere Application Server traditional V8.0
            * was855 - WebSphere Application Server traditional V8.5.5
            * was90 - WebSphere Application Server traditional V9.0
            * weblogic - WebLogic Application Server

        --targetAppServer=[liberty|libertyCore|was855|was90]
            Include rules for migrating to the specified target application
            server from the source application server. The default is liberty.
            The following options are valid:
            * liberty - WebSphere Application Server Liberty
            * libertyCore - WebSphere Application Server Liberty Core
            * was855 - WebSphere Application Server traditional V8.5.5
            * was90 - WebSphere Application Server traditional V9.0

        --targetCloud=[cfIBMCloud|dockerIBMCloud|thirdParty|vmIBMCloud]
            Include rules for migrating to the specified target cloud runtime
            environment. There is no default. If you specify this option without
            a source or target application server, only cloud rules are included.
            The following options are valid:
            * cfIBMCloud - IBM Cloud Runtimes (CF PaaS)
            * dockerIBMCloud - Docker (IBM Cloud Kubernetes Service)
            * thirdParty - Third-party PaaS (CF, OSE, etc.)
            * vmIBMCloud - WebSphere in IBM Cloud (Virtual Machines)

    Java options:
            You can use Java options to specify the source and target Java
            version and the target Java Platform, Enterprise Edition version.

        --sourceJava=[ibm5|ibm6|ibm7|ibm8|java11|java13|oracle5|oracle6|oracle7|oracle8]
            Include rules for migrating from the specified source Java version to
            the target Java version. The default is ibm5 for V6.1, ibm6 for V7.0
            to V8.5.5, and ibm8 for the V9.0 traditional source application
            server options. The default is ibm8 for all other source application
            application server options. The following options are valid:
            * ibm5 - IBM Java 5
            * ibm6 - IBM Java 6
            * ibm7 - IBM Java 7
            * ibm8 - IBM Java 8
            * java11 - Java 11  (LTS)
            * java13 - Java 13 (non-LTS)
            * oracle5 - Oracle Java 5
            * oracle6 - Oracle Java 6
            * oracle7 - Oracle Java 7
            * oracle8 - Oracle Java 8

        --targetJava=[ibm7|ibm8|java11|java13|oracle7|oracle8]
            Include rules for migrating to the specified target Java version
            from the source Java version. The default is ibm8 for all target
            application server options. The following options are valid:
            * ibm7 - IBM Java 7
            * ibm8 - IBM Java 8
            * java11 - Java 11 (LTS)
            * java13 - Java 13 (non-LTS)
            * oracle7 - Oracle Java 7
            * oracle8 - Oracle Java 8


    ​​

    ------------------------------
    Peter Sattler
    Finanz Informatik
    Hannover
    +49-511-5102-21726
    ------------------------------



  • 5.  RE: binary Scanner java version issue

    Posted Mon February 01, 2021 10:14 AM
    Hi Prabakar,
    Your and Peter's posts show the list of valid options.  --sourceJava=java8 is not a valid option.  Use --sourceJava=oracle8 instead.

    java -jar binaryAppScanner.jar <path to your application> --sourceAppServer=tomcat --targetAppServer=liberty --sourceJava=oracle8 --targetJava=ibm8

    If you are not going to change the Java version you are using, you can also enter the sourceJava and the targetJava to be the same like this:


    java -jar binaryAppScanner.jar <path to your application> --sourceAppServer=tomcat --targetAppServer=liberty --sourceJava=oracle8 --targetJava=oracle8


    ------------------------------
    Cindy High
    IBM
    ------------------------------