Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 302239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:04:45+00:00 2026-05-12T07:04:45+00:00

I am having trouble connecting to an LDAP server in my JSP application. I

  • 0

I am having trouble connecting to an LDAP server in my JSP application. I am running the application on GlassFish v2. The following code works well in a console application but fails when used in the jsp:

java.security.Security.addProvider(
    new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("javax.net.ssl.trustStore",
        "C:\\Users\\Projects\\npope-PostiniSSO\\PostiniSSO\\ssltest.keystore");
LDAPJSSESecureSocketFactory ssf = new LDAPJSSESecureSocketFactory();    

LDAPConnection conn = new LDAPConnection(ssf);

conn.connect( ldapHost, sslPort);

The exception that is thrown is:

LDAPException: Unable to connect to server 192.168.254.128:636 (91) Connect Error    java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
class com.novell.ldap.LDAPException 

I suspect that I am missing a certificate or bit of configuration but cannot find any good info.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:04:45+00:00Added an answer on May 12, 2026 at 7:04 am

    I was missing the following lines to set properties which are needed by GlassFish:

    System.setProperty("javax.net.ssl.keyStore",
                    "C:\\Users\\Nathan\\Projects\\npope-PostiniSSO\\PostiniSSO\\ssltest.keystore");
            System.setProperty("javax.net.ssl.trustStorePassword",
                    "password");
            System.setProperty("javax.net.ssl.keyStorePassword",
                    "password");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble connecting my online application to others across another network. I
I'm using rubber to deploy a rails application and am having trouble connecting to
I'm doing my first C++ - Qt4 application and I'm having some trouble connecting
I'm having trouble connecting a socket from my android phone to my computer running
Summary: I am having trouble connecting to an exchange 2007 mailbox that is running
I'm having trouble connecting to my ftp server in PHP. I'm able to log
Having trouble connecting to SQL Server 2012 through my router firewall. I opened ports
I'm having trouble connecting to an SQL Server 2000 database using C. The program
I'm having trouble connecting to my mysql server with C# from a remote machine.
I'm having a bit of trouble connecting intstruments to my App on a iPod

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.