File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes ldap exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ldap exception" Watch "ldap exception" New topic
Author

ldap exception

Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi
iam trying to run a application on tomcat3.2.2 which uses JAAS for authentication. iam getting in the below exception when i connect to ldap server.
can any one reply back ? its urgent pls.....


javax.naming.CommunicationException: ldaptest.de.db.com:636. Root exception is
javax.net.ssl.SSLException: untrusted server cert chain
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.ClientHandshaker.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.Handshaker.process_record([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.OutputStream.write(OutputStream.java:61)
at com.sun.jndi.ldap.Connection.<init>(Connection.java:214)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:113)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2384)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:244)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:79)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:83)
at com.db.ta.security.util.NamingUtil.getDirContext(NamingUtil.java:68)
at com.db.ta.security.util.NamingUtil$RetryingHandler.<init>(NamingUtil.java:110)
at com.db.ta.security.util.NamingUtil$RetryingHandler.<init>(NamingUtil.java:102)
at com.db.ta.security.util.NamingUtil.getRetryingDirContext(NamingUtil.java:96)
at com.db.ta.gd.GlobalDirectoryEntry.getAaContext(GlobalDirectoryEntry.java:329)
at com.db.ta.gd.GlobalDirectoryLoginModule.login(GlobalDirectoryLoginModule.java:74)
at com.db.ta.security.auth.NamePasswordLoginModule.login(NamePasswordLoginModule.java:58)
at java.lang.reflect.Method.invoke(Native Method)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at com.db.ta.security.LoginUtil.login(LoginUtil.java:102)
at com.db.ac.mccTracking.services.register.RegisterBean.processBean(RegisterBean.java:66)


Rgds,
Raj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ldap exception