Slight intro to problem: Im in an accelerated Java class with 12 other people. This is the first time any of us have used hibernate, connecting Eclipse to MySQL using hibernate 4.0.1.
We are building a "movie library" for our class to learn all the proper syntax and such. We have our program working but it prints a large error in console.
Ive tried to look online for what could be causing this with very minimal results, thanks in advance for any help.
org.hibernate.service.jndi.JndiException: Error parsing JNDI name [] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92) at org.hibernate.service.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:108) at org.hibernate.internal.SessionFactoryRegistry.addSessionFactory(SessionFactoryRegistry.java:89) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:441) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737) at movieDataAccessLayer.BaseDao.getDbSession(BaseDao.java:22) at movieDataAccessLayer.MovieDao.getMovieDtoList(MovieDao.java:23) at movieBusinessLogicLayer.TransferMovieList.loadMovies(TransferMovieList.java:64) at moviePresentationLayer.MovieMenu.movieMenu(MovieMenu.java:23) at moviePresentationLayer.MovieLibrary.main(MovieLibrary.java:11) Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344) at javax.naming.InitialContext.getNameParser(InitialContext.java:499) at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86) ... 9 more
|