SAP Knowledge Base Article - Preview

3426318 - "No connection to the ldap server" after upgrade to SPS28 !

Symptom

Important: The SAP Note is valid for SAP NetWeaver Application Server Java 7.5 

After upgrade to SPS28 and JVM 8.1.097 LDAP connection does not work anymore and LDAP users are not able to login to AS Java.

defaultTrace files show:

Validation failed. Technical detail: No connection to the ldap server:<LDAP_server_name>:<SSL_port_of_LDAP_server> Cause com.sap.security.core.server.https.SecureConnectionFactory (loaded by library:security.class@82821 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.net.SocketFactory (loaded by <bootstrap>)  

In TSHW traces or Default Trace files:
No connection to the ldap server, recheck configuration or availability of directory server
[EXCEPTION]
java.security.PrivilegedActionException: javax.naming.CommunicationException: <LDAP_server_name>:<SSL_port_of_LDAP_server> [Root exception is java.lang.ClassCastException: com.sap.security.core.server.https.SecureConnectionFactory (loaded by library:security.class@82821 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.net.SocketFactory (loaded by <bootstrap>)]
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:549)
at com.sap.security.core.persistence.datasource.imp.LDAPDataSourceConnectionPool.newConnection(LDAPDataSourceConnectionPool.java:1417)
at com.sap.security.core.persistence.datasource.imp.LDAPDataSourceConnectionPool.<init>(LDAPDataSourceConnectionPool.java:736)

Caused by: javax.naming.CommunicationException: <LDAP_server_name>:<SSL_port_of_LDAP_server> [Root exception is java.lang.ClassCastException: com.sap.security.core.server.https.SecureConnectionFactory (loaded by library:security.class@82821 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.net.SocketFactory (loaded by <bootstrap>)]
at com.sun.jndi.ldap.Connection.<init>(Connection.java:247)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:137)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1615)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2847)

Caused by: java.lang.ClassCastException: com.sap.security.core.server.https.SecureConnectionFactory (loaded by library:security.class@82821 com.sap.engine.boot.loader.ResourceMultiParentClassLoader) cannot be cast to javax.net.SocketFactory (loaded by <bootstrap>)
at com.sun.jndi.ldap.Connection.getSocketFactory(Connection.java:330)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:296)

Please recheck the LDAP configuration Initialization of connection pool failed for USER
poolname <your LDAP hostname>:SSL port
java.naming.factory.initial= com.sun.jndi.ldap.LdapCtxFactory
com.sun.jndi.ldap.connect.timeout= 100000
java.naming.ldap.version= 3
com.sun.jndi.ldap.read.timeout= 15000
connection_pool_name= <your LDAP hostname>:SSL port
java.naming.provider.url= dap://<LDAP IP>:/<your LDAP domain>
java.naming.security.protocol= ssl
java.naming.ldap.factory.socket= com.sap.security.core.server.https.SecureConnectionFactory
java.naming.security.authentication= simple
java.naming.security.credentials= ******

 


Read more...

Environment

SAP Netweaver Application Server Java

Product

SAP NetWeaver 7.5

Keywords

com.sun.jndi.ldap.Connection ,socketfactory, javax.net.SocketFactory,com.sap.security.core.server.https.SecureConnectionFactory,8.1.097,SPS28, 8.1.098.SAP JVM,JVM , KBA , BC-JAS-SEC-UME , User Management Engine , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.