I mistakenly posted this to the issues mailing list. I think this is a better place for it.
I’ll be brief and provide more info as requested. As per title, updated hibernate and started getting this error:
javax.persistence.PersistenceException: [PersistenceUnit: DataSource] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:59) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) . . .
Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [java:comp/env/jdbc/ImageDirectorWorkflowDS] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92) at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63) at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116) at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223) at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89) at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1818) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1776) at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914) ... 33 more Caused by: javax.naming.OperationNotSupportedException: SimpleNamingContext does not support [javax.naming.Name] at org.springframework.mock.jndi.SimpleNamingContext.getNameParser(SimpleNamingContext.java:259) at javax.naming.InitialContext.getNameParser(InitialContext.java:499) at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86) ... 47 more
I have also updated spring to latest version, 3.2.4, thinking the version of spring was the problem. It still may be the problem, but this is all happening under the covers and it worked with the older versions, so I was hoping someone here might have run across this and know how to fix it. The initial reason for the update was a LazyInitialization exception that may be fixed with this newer version, so I have my fingers crossed that I can get this to work.
Thanks.
|