-
Bug
-
Resolution: Fixed
-
P3
-
1.1
-
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.
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.