NameNotFoundException « Exception « JPA Q&A





1. NameNotFoundException:Name is not bound in this context    forum.hibernate.org

ERROR - ContextLoader.initWebApplicationContext(219) | Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/xaconfig/daoJPAConfig.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name java:comp is not bound in this Context at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196) at ...

2. OAS 10G issues javax.naming.NameNotFoundException    forum.hibernate.org

Hi, i am getting the following error in OAS 10G org.hibernate.HibernateException: Could not locate TransactionManager org.hibernate.HibernateException: Could not locate TransactionManager at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:325) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at com.osg.rmp.dao.util.HibernateFactory.configureSessionFactory(HibernateFactory.java:99) at com.osg.rmp.dao.util.HibernateFactory.buildIfNeeded(HibernateFactory.java:36) at com.osg.rmp.dao.util.HibernateFactory.openSession(HibernateFactory.java:51) at com.osg.rmp.dao.MasterDataDAO.getImpactUnitsList(Unknown Source) at com.osg.rmp.ajax.util.RMData.(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at com.osg.rmp.ajax.servlet.RMContextListener.contextInitialized(RMContextListener.java:42) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1009) at com.evermind.server.http.HttpApplication.(HttpApplication.java:549) at com.evermind.server.Application.getHttpApplication(Application.java:890) at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707) at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625) at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278) at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278) at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179) ...