Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: JNDI Conection


Message #1 by Scott Taylor <scott.taylor@4...> on Mon, 26 Aug 2002 12:59:21 +0100
Hi ,
the LDAP sample code runs well if the java ap and LDAP are both in the same
subnet,
BUT when I move my java ap to different subnet,it occurs the following
exception,
javax.naming.CommunicationException: Request: 1 cancelled
        at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:47)
        at com.sun.jndi.ldap.Connection.readReply(Connection.java:396)
        at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:315)
        at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:168)
        at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2516)
        at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:263)
        at
com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:76)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.<init>(InitialContext.java:195)
        at
javax.naming.directory.InitialDirContext.<init>(InitialDirContext.jav
a:80)
        at JNDIAdd.main(JNDIAdd.java:34)

can you try to access(insert/update entry) LDAP server that in different
subnet using the sample java code ?

I will be very appreciated for your help.
I am looking for your answer
Best Regards
Terry
my LDAP server ip is 61.218.108.100
suffix is dc=tibco.com
cn=Directory Manager
password=administrator

admin url is http://61.218.108.100:11111
pwd=admin

----- Original Message -----
From: <craigb@w...>
To: "Java 2 Enterprise Edition" <j2ee@p...>
Sent: Wednesday, August 28, 2002 11:03 AM
Subject: [j2ee] Re: JNDI Conection


> I believe the book's code is based on you having a sample directory
listing
> that comes with the NDS install. Therefore, if you're using a different
> LDAP server you'll probably either need to add the data yourself or change
> it to use any data that comes with your choice of server.


  Return to Index