-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: can not find hibernate.jndi.class when buildSessionFactory()
PostPosted: Wed Dec 14, 2005 3:01 am 
Beginner
Beginner

Joined: Tue Nov 01, 2005 5:21 am
Posts: 24
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 9:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Do you have the jar containing com.sun.jndi.fscontext.RefFSContextFactory on your classpath? (it is not part of the standard jdk)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 9:58 pm 
Beginner
Beginner

Joined: Tue Nov 01, 2005 5:21 am
Posts: 24
what's the name of jar file containing com.sun.jndi.fscontext.RefFSContextFactory class?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.