Looking for com.sun.jndi.toolkit.url.Uri.class

Does anybody have any idea where I can find com.sun.jndi.toolkit.url.Uri.class?

Ah well...I found it. Not seperate from the provider classes but I did finally find it. It is in the providerutil.zip that is included with the LDAP Service Provider download. The download is available at: http://java.sun.com/products/jndi/#download

Similar Messages

  • No such method found for com.sun.jndi.toolkit.url.UrlUtil: method

    Hello,
    I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
    The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
    ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
    What is the problem? Where should I put my jndi.jar? Thanks.
    Regards
    CY Seah

    Hello,
    I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
    The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
    ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
    What is the problem? Where should I put my jndi.jar? Thanks.
    Regards
    CY Seah

  • Looking for com.sun.xml.tree package

    Hi,
    I�m looking for a jar which contains the XmlDocument class to download.
    I found the package, (it�s com.sun.xml.tree) but I cannot find where the package/jar is to download it.
    Your help will be much appreciated.
    Thank you,
    Chris

    I have all latest jars (jaxp, xerces, xalan, jdom, dom4j and any related jars). I have w3c DOM and i have been trying to convert it to JDOM and dom4j using relevant APIs. i keep getting following error.
    Exception in thread "main" java.lang.AbstractMethodError: com.sun.xml.tree.Eleme
    ntNode.getNamespaceURI()Ljava/lang/String;
    at org.dom4j.io.DOMReader.readElement(DOMReader.java:181)
    at org.dom4j.io.DOMReader.readTree(DOMReader.java:106)
    at org.dom4j.io.DOMReader.read(DOMReader.java:88)
    Can you advise what could be the reason and how to resolve this?
    FYI : my w3c DOM has been created with com.sun.xml.tree.XmlDocumentBuilder class and other methods of the package. I need to resolve this error at earliest to move forward.
    I would apprecaite early response at [email protected]
    Thanks,

  • Need javadoc for com.sun.jndi.ldap.ctl.*?

    Hi,
    has anybody the javadoc for the above named package?
    I need at first com.sun.jndi.ldap.ctl.SortKey.
    It is needed to get a sorted search result from a LDAP server.
    Thank you for your help.
    Fredi

    Download the LDAP provider at
    http://java.sun.com/products/jndi/#download
    See the README-LDAP.txt in the bundle.
    It says that the javadocs for the controls are
    at doc/ldapcontrols.

  • Looking for com.sun.javacard.javax.smartcard.rmiclient

    Hi guys!
    Im trying to write a smart card host application but im not able to find this com.sun.javacard.javax.smartcard.rmiclient package.
    It seems that the package is not included into Java Card Development Kit 2.2.2!?
    I would be grateful for any help!
    greetings

    Problem solved!
    The package is located in %JC_PATH%/lib/jcrmiclientframework.jar.
    Thx!

  • Random classcast exception - com.sun.jndi.cosnaming.CNCtxFactory

    Hi,
    I am trying to use a remote ejb (weblogic 8.1.5/ jdk 14) from a j2se 1.5 rmi-iiop client.
    If I use com.sun.jndi.cosnaming.CNCtxFactory to look up the remote home & then use the remote interface, I get the following error RANDOMly (i.e only some calls succeed).
    java.lang.ClassCastException
         at xxx.equals(xxxjava:129)
         at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
         at xxx.yyy_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    I had a look at IndirectionValueHashtable class. It looks like the classcast is happening because the "handle-to-object" map has non String values.
    Could this be a corba compatabilty issue?
    The problem doesn't occur if I use weblogic initial context factory & t3 protocol.
    What is the best way to overcome this problem? I dont want to distribute weblogic.jar [from 8.1.5 server]. wlclient is okay.
    thanks

    Tony Zimmer <> writes:
    Certainly looks like a bug, in which case you need to go through
    support to get it fixed. Do however check that your objects are in
    fact serializable (including all their fields).
    andy
    Tried a few more combinations. No luck so far.
    classcast exception for some objects at some times
    server: WebLogic Server 10.0 / Sun 1.5.0_06/ WinNT 6
    client: Sun jdk 1.5.0_11/1.4.2_14
    java.lang.ClassCastException: java.lang.String
         at xxxpack.client.PaymentReceipt.equals(PaymentReceipt.java:881)
         at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1836)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
         at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
         at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
         at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
         at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
         at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    server: WebLogic Server 8.1 SP6 / Sun 1.4.2_11 / WinNT 6
    client jdk 1.4.2_14/1.5.0_11:
    java.lang.ClassCastException
         at xxxpack.client.PurchaseAmount.equals(PurchaseAmount.java:148)
         at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
         at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
         at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
         at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
         at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
         at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Do you have a list/ martix of client-server versions used for the bug fixes?
    Thanks

  • JNDI: Can't find Class com.sun.jndi.nis.NISCtxFactory

    Hi
    I searched this forum for similar problems .. and I also found some, but this questions were either not be answered or not detailed enough.
    Now to my question. I've got a Java File that I imported to Oracle (I use it from PL/SQL). This Java File contains following code.
    static Properties = System.getProperties();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.nis.NISCtxFactory");
    env.put(Context.PROVIDER_URL, "nis://disney/geo.unizh.ch");
    Context ctx = new InitialContext(env);
    And if I run it from oracle(PL/SQL) I get the error below.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.nis.NISCtxFactory. Root exception is java.lang.ClassNotFoundException: com/sun/jndi/nis/NISCtxFactory
    at java.lang.Class.forName0(Class.java)
    at java.lang.Class.forName(Class.java)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java)
    at javax.naming.InitialContext.init(InitialContext.java)
    at javax.naming.InitialContext.<init>(InitialContext.java)
    at GIUZContext.getCtx(GIUZContext:42)
    at CheckPwd.check(CheckPwd:18)
    The nis.jar I imported with the loadjava, so actuallay should it be in the database. But why it cant find this class (NISCtxFactory)!
    I get no error if I use this code ->
    NISCtxFactory test = new NISCtxFactory();
    System.out.println(test);
    It would be very nice if you could give me some clues. TNX!!
    Oracle Version 8.1.7.
    Cyrill

    Hi Cyrill,
    I don't know what other postings you have read, and I also don't
    know why they were insufficient for you, so excuse me if I repeat
    things you already know.
    As far as I know, the error message you are getting is most probably
    due to one of the following three causes:
    1. The class is not loaded into the database.
    2. The class is loaded but is not "valid".
    3. You don't have permission to access the class.
    To the best of my memory, there have been several posts to either
    this forum or the "Products > Database > JVM" forum
    http://forums.oracle.com/forums/forum.jsp?id=424322
    that (in my opinion) sufficiently explain how to resolve the problem
    for each of the three causes listed above.
    Personally, I believe that the Oracle documentation sufficiently
    explains how to resolve the above three issues, and I have posted
    the URLs for the relevant Oracle documentation several times already.
    I am guessing that you are trying to "talk" to an EJB (probably deployed
    in SUN's application server) from a java stored procedure in the Oracle
    database. If that is the case, then that question has been discussed
    many times in this forum. Perhaps you can say why those discussions
    were not sufficiently helpful for you.
    Hope this helps.
    Good Luck,
    Avi.

  • Com.sun.jndi.cosnaming.CNCtxFactory in java stored, makes ORA-03113

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    In java store procedure we have to contact an iiop enabled application
    If I specify
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    In the java stored procedure
    the SQL call will end with the error :
    ORA-03113: end-of-file on communication channel
    with a huge core dump in cdump
    any idea?
    The class exists in the loaded JVM
    it is valid and resolved
    Nothing can explain that.
    Thanks in advance
    Message was edited by:
    Réda BOULOS

    Yes, CORBA as well as the entire J2EE stack has been desupported in 9i R2.
    I ran the sample using 10g database which is Java SE 4.0 compatible and therefore susceptible of acting as RMI/IIOP client. Here are the jars file i have loaded in my example
    loadjava -u scott/tiger@localhost:port:instance_name -r -v
    $J2EE_HOME/ejb/helloworld/dist/stub_helloworld.jar
    $J2EE_HOME/lib/ejb.jar
    $J2EE_HOME/ejb/helloworld/dist/helloworld-ejb.jar
    $J2EE_HOME/ejb/helloworld/dist/helloworld-client.jar
    [code/]
    In addition, you need to:
    - grant ejbclient to the schema in question
    - grant java.util.PropertyPermission, java.lang.RuntimePermission, java.util.logging.LoggingPermission, and java.util.PropertyPermission
    Frankly you need to read the section of my book to get everything right;
    for example i tweak a bit the JNDI lookup in the client code.
    Fwiw, SAP JCO callout using RMI is also covered in chapter 4 of my book.
    Kuassi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Delays in acquiring lock for com.sun.xml.ws.handler.ServerSOAPHandler

    Using WLS 10.0 mp2 and jrockit, there looks to be intermittent delays in the webservice, of about 3.5 seconds delay, when WLS is trying to acquire locks for com.sun.xml.ws.handler.ServerSOAPHandler in com.sun.xml.ws.handler.HandlerPipe.process(). This is showing up in JRA recording, and is happening about 15-20% of the calls.
    Does anyone encounter similar issue?
    Also, WLS 10.0.2 comes with JAX-WS 2.0.1. Is there any issue upgrading to 2.2?

    Using WLS 10.0 mp2 and jrockit, there looks to be intermittent delays in the webservice, of about 3.5 seconds delay, when WLS is trying to acquire locks for com.sun.xml.ws.handler.ServerSOAPHandler in com.sun.xml.ws.handler.HandlerPipe.process(). This is showing up in JRA recording, and is happening about 15-20% of the calls.
    Does anyone encounter similar issue?
    Also, WLS 10.0.2 comes with JAX-WS 2.0.1. Is there any issue upgrading to 2.2?

  • Message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl

    When I try to request a simple reuest (getversion) from the drm wsdl I receive an error in the XML repsonse (see below).
    I read somewhere in the forum that I have to change the external direcortory provider in HSS from "MSAD" to LDAP/OID. But this can not be configured in HSS since I can not change the ID attribute (its greyed out).
    Does anyone knows how I can sole it: I think its related to: "message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl"
    Perhaps wrong or missing jar files in the connection configuration?
    Any help is welcome.
    Detlev
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Cannot getVersion.
    [Tue Feb 14 16:03:06 CET 2012] - Oracle EPM Foundation Agent
    Error in request: begin session (message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl)</faultstring>
    <detail>
    <DrmServiceException xmlns="http://drm.webservices.epm.oracle">
    <Message xmlns:ns2="http://drm.webservices.epm.oracle" xmlns="">Cannot getVersion.
    [Tue Feb 14 16:03:06 CET 2012] - Oracle EPM Foundation Agent
    Error in request: begin session (message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl)</Message>
    <Code xmlns:ns2="http://drm.webservices.epm.oracle" xmlns="">0</Code>
    </DrmServiceException>
    </detail>
    </env:Fault>
    </env:Body>
    </env:Envelope>

    Thanks for the repsonse.
    Its exactly how you explain it.
    Last thing I am dealing with (as var as I can see now) is getting a (generic/other) ldap connection in HSS to our MSAD.
    HSS userinterface comes up with an error just before showing the user list. (on the serverside I traced traffic (wireshark) and see that userinformation is indeed retrieved).
    But the frontend is juist not showing/ loading the information.
    the error"a communication error occured when loading the view pane" Than the screen keeps on loading for ever
    Oracle support tries to find out whats going wrong here.
    Detlev

  • NullPointerException at com.sun.jndi.ldap.Connection.run(Connection.java:52

    We are using the Sun jndi 1.2.1 files from a Java client to
    access the IBM SecureWay Directory 3.2 server. Our test case is
    retrieving entries using the ctx.getAttributes (String, String[])
    method. Occasionally we are receiving the following error.
    java.lang.NullPointerException
    at com.sun.jndi.ldap.Connection.run(Connection.java:525)
    at java.lang.Thread.run(Thread.java:481)
    The java.lang.NullPointerException is coming from the Sun JNDI file.
    Our program is not catching this exception.
    Has anyone seen this problem before and have any ideas on how this can be resolved?

    Download and use LDAP 1.2.3 or JDK 1.3.1.
    The problem should go away.

  • Where is the source for com.sun.media.rtp?

    Is the source for com.sun.media.rtp available for download?
    I downloaded the JMF source code, but, it's not there. I have downloaded the source for J2SE and it's not there.
    Where is it?
    Greg Silverman
    NGC
    San Jose, CA

    Hi,
    This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question in the appropriate forum.
    Thanks,
    RK.

  • Com.sun.jndi.ldap

    Hi,
    Is anyone familiar with JNDI LDAP automatic discovery codes
    env.put(Context.PROVIDER_URL,
        ldap:///o=JNDITutorial,dc=example,dc=com);
    It seems that by using DNS that associate with multiple domain controllers, it would lock out user account if they enter wrong pw because LDAP provider will send the request to each of the associated DC at the same time.  I wonder if anyone run through this issue and if it is a JDK bug and if someone does, how to you work around it?
    Thanks,
    Jennifer

    Hi,
    did you also try the following timeout variables?
    env.put("com.sun.jndi.dns.timeout.initial", "2000");
    env.put("com.sun.jndi.dns.timeout.retries", "3");...
    Besides you specific problem you will find a probably interesting article about handling network timeouts her:
    http://www.javacoffeebreak.com/articles/network_timeouts/
    Regards
    Klaus

  • Where to download API for com.sun.j3d.utils ?

    hi,
    where can i download the api for com.sun.j3d.utils. i dont want to see it online, i need an offline version (in order to use it with a textpad-plug-in.
    thanx,
    Usul

    yes, the documentation.
    well, of couse i have downloaded java3d. but i cant find the documentation in there. java3d has two subfolders "demo" and "jre". in "jre" are the two subfolders "bin" and "lib". and the documentation nowhere to be found.

  • Help with  running sun jndi tutorial example LookUp.class

    I am learning JNDI,and when I run LookUp.java available in JNDI TUTORIAL ,souce code here:
    * @(#)Lookup.java     1.3 99/08/12
    * Copyright 1997, 1998, 1999 Sun Microsystems, Inc. All Rights
    * Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free,
    * license to use, modify and redistribute this software in source and
    * binary code form, provided that i) this copyright notice and license
    * appear on all copies of the software; and ii) Licensee does not
    * utilize the software in a manner which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE
    * HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE
    * FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING,
    * MODIFYING OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN
    * NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
    * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL,
    * CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT
    * OF THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS
    * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line
    * control of aircraft, air traffic, aircraft navigation or aircraft
    * communications; or in the design, construction, operation or
    * maintenance of any nuclear facility. Licensee represents and warrants
    * that it will not use or redistribute the Software for such purposes.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.Hashtable;
    class Lookup {
    public static void main(String[] args) {
         // Check that user has supplied name of file to lookup
         if (args.length != 1) {
         System.err.println("usage: java Lookup <filename>");
         System.exit(-1);
         String name = args[0];
         // Identify service provider to use
         Hashtable env = new Hashtable(11);
         env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.fscontext.RefFSContextFactory");
         try {
         // Create the initial context
         Context ctx = new InitialContext(env);
         // Look up an object
         Object obj = ctx.lookup(name);
         // Print it out
         System.out.println(name + " is bound to: " + obj);
         // Close the context when we're done
         ctx.close();
         } catch (NamingException e) {
         System.err.println("Problem looking up " + name + ": " + e);
    after I compiled it sucessfully,I typed
    java LookUp d:/test.java ,error message shown following:
    Problem looking up LookUp.java: javax.naming.NoInitialContextException: Cannot i
    nstantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is
    java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
    please help me!

    Read the Preparations chapter of the tutorial.
    It tells you to download and install the file
    system service provider from
    http://java.sun.com/products/jndi/#download

Maybe you are looking for

  • Oracle 10.1.3.

    Hi, I recently installed oracle app server 10.1.3 and following the instructions Reconfiguring Application Server Instances I tried to make it so that my 10.1.3 app server can use SSO with my 10.1.2 infrastructure. I deployed an application on 10.1.3

  • What is wrong with firefox?

    What is wrong with firefox?

  • Question about 4500X VSS management port

    I have two standalone 4500X switches that I'm planning to convert to VSS. If I cable the management port on both switches to a management cloud, which management port should I put the management IP address? Is it the port on the active switch? if the

  • Newbie How to do a FlattenPages of many PDF in a Batch?

    I'm using Acrobat Pro 10. I have a PDF with a fillable form. Example, 2 users fill out the PDF( with Adobe Reader) and Upload it to server. I want the server to run a routine( batch process) to take those 2 PDF's and make it Flatten. I will eventuall

  • 2 ipods to one computer?

    Ok, this is a very stupid question, but I'm curious. I have an ipod, but my dad and I want to get one for my mom for Christmas. The thing is, I'm not sure if you can have two ipods for one computer. I asked my friend once a long time ago and she said