Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4207277

providerutil.jar not included with fscontext provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.0
    • 1.1
    • core-libs
    • None
    • beta
    • generic
    • generic
    • Not verified

      I downloaded:

         jndi111.zip
         fscontext-ea3.zip

      and installed them on top of jdk1.2, compiled the api examples, and tried running List:

      % java -classpath .:/files/local/jdk1.2/lib/jndi.jar:/files/local/jdk1.2/lib/fscontext.jar -Djava.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory -Djava.naming.provider.url=file:///home/ryans List

      Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jndi/misc/CharacterEncoder
         at com.sun.jndi.fscontext.RefFSContextFactory.createContext(Compiled Code)
         at com.sun.jndi.fscontext.RefFSContextFactory.createContextAux(Compiled Code)
         at com.sun.jndi.fscontext.FSContextFactory.getInitialContext(Compiled Code)
         at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
         at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
         at javax.naming.InitialContext.<init>(Compiled Code)
         at List.main(Compiled Code)

      It wasn't until I downloaded the NIS provider that the needed providerutil.jar
      file was installed. When I added it to my classpath and ran List with the
      RefFSContextFactory, everything worked fine.

            rleesunw Rosanna Lee (Inactive)
            rshoemak Ryan Shoemaker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: