Hi,
I use JDK1.4.1, hibernate-3.1
In hibernate.properties, I set:
hibernate.session_factory_name hibernate/session_factory
hibernate.jndi.class com.sun.jndi.fscontext.RefFSContextFactory
hibernate.jndi.url file:/
In hibernate.cfg.xml:
<session-factory name="hibernate/SessionFactory">
statement
sessionFactory = new Configuration().configure().buildSessionFactory();
throws exceptions says class com.sun.jndi.fscontext.RefFSContextFactory could not be found.
Could anyone tell me which hibernate.jndi.class and hibernate.jndi.url should I specifiy? There are two environments: one is JDK1.4+hibernate-3.1 and one is JDK1.4+hibernate-3.1+tomcat5.0
Thanks in advance.
|