LDAP Adapter is not started after deployment and it throwss the following error even after running the cmd line execution of the adapter instance.
2567 [main] INFO com.tibco.security.providers.TIBCOCtxWrapper - Error trying to set default trust managers: java.lang.IllegalArgumentException: Invalid trust roots
java.lang.IllegalArgumentException: Invalid trust roots
at com.entrust.toolkit.x509.jsse.JSSEX509TrustManager.<init>(Unknown Source)
at com.entrust.toolkit.x509.jsse.JSSEX509TrustManagerFactory.a(Unknown Source)
at com.entrust.toolkit.x509.jsse.JSSEX509TrustManagerFactory.engineInit(Unknown Source)
at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:230)
at com.tibco.security.providers.TrustManagerFactoryWrapper.engineInit(TrustManagerFactoryWrapper.java:48)
at javax.net.ssl.TrustManagerFactory.init(TrustManagerFactory.java:230)
at com.tibco.security.providers.TIBCOCtxWrapper.engineInit(TIBCOCtxWrapper.java:396)
at com.tibco.security.providers.TIBCOCtxWrapper.<init>(TIBCOCtxWrapper.java:67)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.security.Provider$Service.newInstance(Provider.java:1221)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:147)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:125)
at javax.net.ssl.SSLContext.getDefault(SSLContext.java:68)
at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:102)
at netscape.ldap.factory.JSSESocketFactory.<init>(JSSESocketFactory.java:72)
at netscape.ldap.factory.JSSESocketFactory.<init>(JSSESocketFactory.java:58)
at com.tibco.ldap.core.AdLDAPConnection.connect(AdLDAPConnection.java:78)
at com.tibco.ldap.adapter.LDAPConnectionManager.createConnection(LDAPConnectionManager.java:205)
at com.tibco.ldap.adapter.LDAPConnectionManager.initialize(LDAPConnectionManager.java:129)
at com.tibco.ldap.adapter.LDAPApplicationManager.getConnectionManager(LDAPApplicationManager.java:737)
at com.tibco.ldap.adapter.LDAPApplicationManager.createServerService(LDAPApplicationManager.java:563)
at com.tibco.ldap.adapter.LDAPApplicationManager.loadServices(LDAPApplicationManager.java:402)
at com.tibco.ldap.adapter.LDAPApplicationManager.loadServices(LDAPApplicationManager.java:368)
at com.tibco.ldap.adapter.LDAPApplicationManager.onInitialization(LDAPApplicationManager.java:109)
at com.tibco.sdk.MAppImpl.initialize(MAppImpl.java:498)
at com.tibco.sdk.MDefaultAppImpl.start(MDefaultAppImpl.java:132)
at com.tibco.sdk.MApp.start(MApp.java:221)
at com.tibco.ldap.adapter.LDAPAdapter.main(LDAPAdapter.java:45)
Caused by: com.entrust.toolkit.exceptions.CertificationRootException: No root-of-trust certificates were provided.
at com.entrust.toolkit.x509.CertVerifier.<init>(Unknown Source)
at com.entrust.toolkit.x509.jsse.a.<init>(Unknown Source)
... 34 more
2017 May 18 16:29:34:899 GMT -4 AIM_ECareConnector2_UAT-ADLDSAdapter Error [Adapter] AELDAP-000024 Startup Error. Unable to create a connection with the target application using connection parameters [ Host = n2vldsu001.hphc.org , Port = 50001, User DN = cn=aimecare,ou=Admins,o=Hphc, Password = ******]. Target application error is null
2017 May 18 16:29:34:899 GMT -4 AIM_ECareConnector2_UAT-ADLDSAdapter Error [Adapter] AELDAP-000224 Connection Manager initialization failed. The initialize() method of connectionManager '/tibco/private/adapter/SharedResources/ADLDSAdapter/connectionManager/LDAPConnectionPool' raised Exception. Could not connect to ldap server with the specified parameters
com.tibco.sdk.MException: The initialize() method of connectionManager '/tibco/private/adapter/SharedResources/ADLDSAdapter/connectionManager/LDAPConnectionPool' raised Exception. Could not connect to ldap server with the specified parameters
at com.tibco.ldap.adapter.LDAPApplicationManager.getConnectionManager(LDAPApplicationManager.java:746)
at com.tibco.ldap.adapter.LDAPApplicationManager.createServerService(LDAPApplicationManager.java:563)
at com.tibco.ldap.adapter.LDAPApplicationManager.loadServices(LDAPApplicationManager.java:402)
at com.tibco.ldap.adapter.LDAPApplicationManager.loadServices(LDAPApplicationManager.java:368)
at com.tibco.ldap.adapter.LDAPApplicationManager.onInitialization(LDAPApplicationManager.java:109)
at com.tibco.sdk.MAppImpl.initialize(MAppImpl.java:498)
at com.tibco.sdk.MDefaultAppImpl.start(MDefaultAppImpl.java:132)
at com.tibco.sdk.MApp.start(MApp.java:221)
at com.tibco.ldap.adapter.LDAPAdapter.main(LDAPAdapter.java:45)
The process is not recognizing the certificate file placed In the SSL path even after trying a number of times with /without SSL and with/without placing the file, it displays the same error.