Context.INITIAL_CONTEXT_FACTORY的值
文件系统
com.sun.jndi.fscontext.RefFSContextFactory
LDAP
com.sun.jndi.ldap.LdapCtxFactory
RMI
com.sun.jndi.rmi.registry.RegistryContextFactory
CORBA
com.sun.jndi.cosnaming.CNCtxFactory
DNS
com.sun.jndi.dns.DnsContextFactory用于文件系统服务提供程序的工厂类需要从Sun Microsystems单独下载,它并没有与J2SE 1.4.x一起发行。
所以找不到
java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContext
文件系统
com.sun.jndi.fscontext.RefFSContextFactory
LDAP
com.sun.jndi.ldap.LdapCtxFactory
RMI
com.sun.jndi.rmi.registry.RegistryContextFactory
CORBA
com.sun.jndi.cosnaming.CNCtxFactory
DNS
com.sun.jndi.dns.DnsContextFactory用于文件系统服务提供程序的工厂类需要从Sun Microsystems单独下载,它并没有与J2SE 1.4.x一起发行。
所以找不到
java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContext
下载jndi1.2.1中的fscontext-1_2-beta3.zip
解压后在classpath中加入
fscontext.jar
providerutil.jar
就可以了。没有oracle
数据库部分没法验证了