Maybe there's some issue with the jndi name you are specifying for the sessionfactory. Please post the entire exception stacktrace and also the configuration file which contains the jndi name of the session factory.
Reply to this message by going to Community
Start a new discussion in JNDI and Naming at Community