B2B Integration

 View Only
Expand all | Collapse all

Fail to start Sterling B2B after install external jar

  • 1.  Fail to start Sterling B2B after install external jar

    Posted Mon January 27, 2020 09:15 AM
    Hi all,
    I create a simple jar file to validate a bearer token, when I execute this jar with CLA2 adapter Sterling execute no problem, but I want install this jar in classpath into Sterling B2B, following the process describe in IBM Sterling documentation.
    First execute install3rdPatry.sh and after that execute setup.sh, dynamicclaspath.in and dynamicclasspth.cfg are update, but when start Sterling received HTTP 404 error.

    Someone know whats happen?

    Version Sterling: 5.2.6.3
    SO: Linux Redhat
    Java version: 1.7

    ------------------------------
    Douglas Rezende
    ------------------------------

    #B2BIntegration
    #SupplyChain


  • 2.  RE: Fail to start Sterling B2B after install external jar

    Posted Tue January 28, 2020 01:33 PM
    I am sure you looked at all the log files. Are you overloading any system classes in your Jar? Are you getting final dashboard ready message which starting B2Bi?

    First step will be to unistall the custom library using "./install3rdParty.sh -uninstall" command and restart B2Bi.

    IBM Sterling B2Bi is not an API gateway and lacks key out of box functionalities of API gateway such as CORS, Spike Arrest, JWT and OAUTH support etc.

    I would explore the real API gateway such as IBM Connect (https://www.ibm.com/cloud/api-connect). There are some open-source tools (https://dev.to/imthedeveloper/open-source-api-gateways-32c5) that can also be considered.

    -Dhiraj Patil

    ------------------------------
    Dhiraj Patil
    ------------------------------



  • 3.  RE: Fail to start Sterling B2B after install external jar

    Posted Tue January 28, 2020 05:53 PM
    I not found nothing in logs, in dashboard just show me o error in the browser:

    HTTP ERROR: 404
    Problem accessing /dashboard/. Reason:
    NOT_FOUND

    I install this jar in Sterling Integrator 6.0 and worked very well, but in the moment I need install in 5.2.6.3.
    I dont know whats happen.
    My jar just do this:

    if(validateCredentials(args[0])) {
                    System.out.println("Token: " + args[0] + " is valid!");   
                }else {
                    updatePropertiePublicKey();
                    if(validateCredentials(args[0])) {
                        System.out.println("Token: " + args[0] + " is valid!");   
                    }else {
                        System.out.println("Token: " + args[0] + " is invalid!");   
                    }
                }
            }

    Do you have any enviroment with version 5.2.6.3 ?


    Regards,
    Douglas Rezende


    ------------------------------
    Douglas Rezende
    ------------------------------



  • 4.  RE: Fail to start Sterling B2B after install external jar

    Posted Thu January 30, 2020 10:32 AM
    Please share  install/properties/dynamicclasspath.cfg file from your 6.0 and 5.26.3 environment  and also log files folder

    ------------------------------
    Sreedhar Janaswamy
    ------------------------------



  • 5.  RE: Fail to start Sterling B2B after install external jar

    Posted Thu January 30, 2020 06:56 PM
    Hello,
    I attached the files!


    ------------------------------
    Douglas Rezende
    ------------------------------

    Attachment(s)

    zip
    5.2.6.3.zip   2.70 MB 1 version
    zip
    6.0.zip   154 KB 1 version


  • 6.  RE: Fail to start Sterling B2B after install external jar

    Posted Sat February 01, 2020 12:56 AM
    In the 6.0  dynamicclasspath.cfg, I see this entry
    VENDOR_JAR=C:/IBM/SterlingIntegrator\jar\TokenValidatorOffline\1_0\TokenValidatorOffline.jar

    but in 5.2.6.3 dynamciclasspath.cfg   there is no entry for TokenValidationOffline.jar,  please check  your custom service configuration and deployment on 5.2.6.3

    ------------------------------
    Sreedhar Janaswamy
    ------------------------------



  • 7.  RE: Fail to start Sterling B2B after install external jar

    Posted Sun February 02, 2020 11:06 AM
    When I installed jar I see in dynamicclasspath.cfg and dynamicclasspath.in the path of the jar, I send to you file after uninstall jar.

    ------------------------------
    Douglas Rezende
    ------------------------------



  • 8.  RE: Fail to start Sterling B2B after install external jar

    Posted Fri January 31, 2020 05:09 PM
    Which version of JDK have you used to compile the code? It should be JDK 1.7 to make JAR compatible with 5.2.6.X versions.

    -Dhiraj  Patil

    ------------------------------
    Dhiraj Patil
    ------------------------------



  • 9.  RE: Fail to start Sterling B2B after install external jar

    Posted Fri January 31, 2020 06:03 PM
    I compile the code in 1.7 version.

    ------------------------------
    Douglas Rezende
    ------------------------------



  • 10.  RE: Fail to start Sterling B2B after install external jar

    Posted Thu February 20, 2020 04:11 PM
    I had a similar issue that I reported to IBM, and they're currently working on it as a bug.  Not sure if it's a match for your issue, but it sounds similar:

    https://www.ibm.com/support/pages/installation-component-jars-can-cause-hotfix-jars-be-removed-sterling-b2b-integrator

    ------------------------------
    Peter Milakovich
    ------------------------------



  • 11.  RE: Fail to start Sterling B2B after install external jar

    Posted Fri February 21, 2020 09:44 AM
    I reported to IBM too and I think that necessary update version to Sterling Integrator 6.

    ------------------------------
    Douglas Rezende
    ------------------------------