WebObjects 5: Using the JNDI adaptor with EOModeler on Microsoft Windows

When using EOModeler to create a new model with the JNDI adaptor, you will see one of these messages:

This happens when using WebObjects 5.1 or WebObjects 5.2 on Microsoft Windows.

When using the LDAP plug-in with its default settings, the JNDI adaptor requires that the JNDI package and LDAP Service Provider be installed on the system. Otherwise, you will be unable to create a new model with the JNDI adaptor using EOModeler.

These jar files need to be downloaded and installed:


You should download them from the Sun website located at:

http://java.sun.com/products/jndi/downloads/index.html

Specifically, you would follow these steps:

  1. Download the JNDI 1.1.2 packages, which consist of:
    • JNDI 1.1.2 class libraries package (jndi112.zip)
    • LDAP Service Provider package (ldap103.zip)

    Upon extraction, jndi112.zip will place the file jndi.jar in its lib folder after extraction, and ldap103.zip will place the files ldap.jar and providerutil.jar in its lib folder.

  2. Download the JNDI 1.2.1 package (JNDI/LDAP booster pack 1.0 ldapbp-1_0.zip). Upon extraction, ldapbp-1_0.zip will place the file ldapbp.jar in its lib folder.

    Note: The LDAP provider supports access to LDAP directories using Secure Sockets Layer (SSL). This feature requires the "booster package", ldapbp.jar that comes with the JNDI 1.2 Standard Extension.

  3. Copy the extracted jar files, as appropriate, to either:
    • C:\\Apple\\Library\\Java
    • $NEXT_ROOT\\Library\\Java

  4. Modify the JavaConfig.plist file that resides under C:\\Apple\\Library\\Java to include this:

    $NEXT_ROOT/Library/Java/ldap.jar;$NEXT_ROOT/Library/Java/jndi.jar;$NEXT_ROOT/Library/Java/providerutil.jar;$NEXT_ROOT/Library/Java/ldapbp.jar

Important: Information about products not manufactured by Apple is provided for information purposes only, and does not constitute Apple's recommendation or endorsement. Please contact the vendor for additional information. JNDI software is licensed by Sun Microsystems, and its use is subject to their licensing terms.

Published Date: Feb 19, 2012