Hello Friends, I am new to Hibernate and while coding data retrieval from MySql (ClassicModels schema) database in main() I keep running into "Exception in thread "main" java.lang.IllegalStateException: Could not locate SessionFactory in JNDI". Searched for resolution in many many forums but couldn't zero in on a fix to this issue (perhaps my inexperience blinded me). Apologize for reposting if this has been addressed earlier but please help with a resolution. Please let me know any additional tech detail if required. Thanks in advance.. and sorry the message is long!
Logger: SLF4J 1.7.5
Hibernate version: 4.2.6
MySql jdbc connector: 5.1.26
OS: Mac OSX, Mavericks
No properties setup.
Genrated domain code using Hibernate perspective's code gen functionality.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database