webMethods

 View Only
  • 1.  MWS startup fail on DB connection

    Posted Wed June 30, 2021 12:19 PM

    Hi all,

    I’m having a problem with the SQL Server Database connection starting MWS.
    The SQL Server is on Azure, in cloud.

    This is the error which I get from the osgi log file under MWS installation logs folder:

    2021-06-30 18:08:02,566 ERROR [com.w.p.s.s.c.p.p.ConnectionPoolManager ] - Error creating database connection to: jdbc:wm:sqlserver://:;databaseName=;encrypt=true;trustServerCertificate=true;hostNameInCertificate=;loginTimeout=30;
    com.wm.dd.jdbc.sqlserverbase.ddea: [SoftwareAG][SQLServer JDBC Driver]SSL handshake failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    Thanks in advance!

    Best regards,
    Alessio


    #MWS-CAF-Task-Engine
    #DB-Connection
    #webMethods


  • 2.  RE: MWS startup fail on DB connection

    Posted Thu July 01, 2021 02:51 AM

    Hi Alessio,

    Just a Hint : If there is a running Antivirus on the system, can you disable it and start MWS .

    Thanks,
    Harsha


    #DB-Connection
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: MWS startup fail on DB connection

    Posted Thu July 01, 2021 05:07 AM

    Hi Harsh,

    the antivirus on Azure can’t be disabled.
    Btw our Integration Server is actually using the same URL connection with another DB name and it is working correctly.

    Thanks
    Alessio


    #MWS-CAF-Task-Engine
    #webMethods
    #DB-Connection


  • 4.  RE: MWS startup fail on DB connection

    Posted Thu July 01, 2021 06:57 AM

    Hi Alessio

    Can you try adding setValidateServerCertificate=false in the JDBC URL ?

    jdbc:wm:sqlserver://:;databaseName=;encrypt=true;trustServerCertificate=true;hostNameInCertificate=;loginTimeout=30;setValidateServerCertificate=false;

    Thanks

    Manish


    #MWS-CAF-Task-Engine
    #webMethods
    #DB-Connection


  • 5.  RE: MWS startup fail on DB connection

    Posted Mon July 05, 2021 02:45 AM

    thanks for the awesome information.


    #webMethods
    #MWS-CAF-Task-Engine
    #DB-Connection


  • 6.  RE: MWS startup fail on DB connection

    Posted Thu July 01, 2021 08:06 AM

    Hi Manish,

    I get the same error adding the suggested parameter in the DB url connection string

    Thanks
    Alessio


    #webMethods
    #MWS-CAF-Task-Engine
    #DB-Connection