Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.2
Mapping documents:
<session-factory name="java:hibernate/HibernateFactory">
<!-- Database connection settings -->
<property name="connection.datasource">bnfe</property>
</session-factory>
Code for creating session factory
// Initialize SessionFactory...
sessionFactory_ = new Configuration().configure().buildSessionFactory();
I am running WAS 6.0, Hibernate 3.2, EJB 2.0, oracle 10g
I have created a data source
Logical Name: bnfe
JNDI Name : jndi/ds1
I have added datasource to my web.xml as a reference and also added reference to all the EJB's
I am getting data source not found error. I tried using jndi name instead of logical name. Also tried using "java:comp/env" prefix. None of them work.
<property name="connection.datasource">jdbc/ds1</property>
<property name="connection.datasource">java:comp/env/jdbc/ds1</property>
Please let me know if you can help
Thanks
J
Full stack trace of any exception that occurs:
[4/25/07 13:02:41:734 EDT] 0000002e DatasourceCon E org.hibernate.connection.DatasourceConnectionProvider configure Could not find datasource: bnfe
javax.naming.NameNotFoundException: Context: LT8FB4P71Node01Cell/nodes/LT8FB4P71Node01/servers/server1, name: bnfe: First component in name bnfe not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:543)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4043)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1746)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.jpmc.planning.hib.util.HibernateUtil.<clinit>(HibernateUtil.java:34)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.getOrgById(OrganizationNodeDAO.java:95)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.search(OrganizationNodeDAO.java:80)
at com.jpmc.tao.business.domain.DomainObjectFactory.search(DomainObjectFactory.java:554)
at com.jpmc.planning.biz.service.reference.ReferenceLookupServiceImpl.lookupOrgHierarchy(ReferenceLookupServiceImpl.java:52)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupBean.lookupOrgHierarchy(ReferenceLookupBean.java:56)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:67)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupServiceProxy.lookupOrgHierarchy(ReferenceLookupServiceProxy.java:52)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.populateCostCenters(HomePageUseCase.java:116)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.doBnFE(HomePageUseCase.java:46)
at com.jpmorgan.bnfe.web.usecase.BnFEBaseUseCase.doIt(BnFEBaseUseCase.java:60)
at com.jpmc.tao.presentation.controller.Dispatcher.executeUseCase(Dispatcher.java:337)
at com.jpmc.tao.presentation.controller.Dispatcher.execute(Dispatcher.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.jpmc.tao.presentation.controller.FrontController.process(FrontController.java:53)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
---- Begin backtrace for Nested Throwables
org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:543)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4043)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1746)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.jpmc.planning.hib.util.HibernateUtil.<clinit>(HibernateUtil.java:34)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.getOrgById(OrganizationNodeDAO.java:95)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.search(OrganizationNodeDAO.java:80)
at com.jpmc.tao.business.domain.DomainObjectFactory.search(DomainObjectFactory.java:554)
at com.jpmc.planning.biz.service.reference.ReferenceLookupServiceImpl.lookupOrgHierarchy(ReferenceLookupServiceImpl.java:52)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupBean.lookupOrgHierarchy(ReferenceLookupBean.java:56)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:67)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupServiceProxy.lookupOrgHierarchy(ReferenceLookupServiceProxy.java:52)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.populateCostCenters(HomePageUseCase.java:116)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.doBnFE(HomePageUseCase.java:46)
at com.jpmorgan.bnfe.web.usecase.BnFEBaseUseCase.doIt(BnFEBaseUseCase.java:60)
at com.jpmc.tao.presentation.controller.Dispatcher.executeUseCase(Dispatcher.java:337)
at com.jpmc.tao.presentation.controller.Dispatcher.execute(Dispatcher.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.jpmc.tao.presentation.controller.FrontController.process(FrontController.java:53)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
[4/25/07 13:02:41:750 EDT] 0000002e ExceptionUtil E CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "lookupOrgHierarchy" on bean "BeanId(PlanningEAR#Planning-ejb.jar#ReferenceLookup, null)". Exception data: java.lang.ExceptionInInitializerError
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.getOrgById(OrganizationNodeDAO.java:95)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.search(OrganizationNodeDAO.java:80)
at com.jpmc.tao.business.domain.DomainObjectFactory.search(DomainObjectFactory.java:554)
at com.jpmc.planning.biz.service.reference.ReferenceLookupServiceImpl.lookupOrgHierarchy(ReferenceLookupServiceImpl.java:52)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupBean.lookupOrgHierarchy(ReferenceLookupBean.java:56)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:67)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupServiceProxy.lookupOrgHierarchy(ReferenceLookupServiceProxy.java:52)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.populateCostCenters(HomePageUseCase.java:116)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.doBnFE(HomePageUseCase.java:46)
at com.jpmorgan.bnfe.web.usecase.BnFEBaseUseCase.doIt(BnFEBaseUseCase.java:60)
at com.jpmc.tao.presentation.controller.Dispatcher.executeUseCase(Dispatcher.java:337)
at com.jpmc.tao.presentation.controller.Dispatcher.execute(Dispatcher.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.jpmc.tao.presentation.controller.FrontController.process(FrontController.java:53)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
Caused by: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.jpmc.planning.hib.util.HibernateUtil.<clinit>(HibernateUtil.java:34)
... 36 more
Caused by: javax.naming.NameNotFoundException: Context: LT8FB4P71Node01Cell/nodes/LT8FB4P71Node01/servers/server1, name: bnfe: First component in name bnfe not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
at com.ibm.ws.naming.jndicos.CNContextImpl.processNotFoundException(CNContextImpl.java:4392)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1752)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
... 43 more
---- Begin backtrace for Nested Throwables
org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:543)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4043)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1746)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.jpmc.planning.hib.util.HibernateUtil.<clinit>(HibernateUtil.java:34)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.getOrgById(OrganizationNodeDAO.java:95)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.search(OrganizationNodeDAO.java:80)
at com.jpmc.tao.business.domain.DomainObjectFactory.search(DomainObjectFactory.java:554)
at com.jpmc.planning.biz.service.reference.ReferenceLookupServiceImpl.lookupOrgHierarchy(ReferenceLookupServiceImpl.java:52)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupBean.lookupOrgHierarchy(ReferenceLookupBean.java:56)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:67)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupServiceProxy.lookupOrgHierarchy(ReferenceLookupServiceProxy.java:52)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.populateCostCenters(HomePageUseCase.java:116)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.doBnFE(HomePageUseCase.java:46)
at com.jpmorgan.bnfe.web.usecase.BnFEBaseUseCase.doIt(BnFEBaseUseCase.java:60)
at com.jpmc.tao.presentation.controller.Dispatcher.executeUseCase(Dispatcher.java:337)
at com.jpmc.tao.presentation.controller.Dispatcher.execute(Dispatcher.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.jpmc.tao.presentation.controller.FrontController.process(FrontController.java:53)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
[4/25/07 13:02:41:766 EDT] 0000002e LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[4/25/07 13:02:41:781 EDT] 0000002e SystemOut O ERROR -
com.ibm.ejs.container.UnknownLocalException:
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.getOrgById(OrganizationNodeDAO.java:95)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.search(OrganizationNodeDAO.java:80)
at com.jpmc.tao.business.domain.DomainObjectFactory.search(DomainObjectFactory.java:554)
at com.jpmc.planning.biz.service.reference.ReferenceLookupServiceImpl.lookupOrgHierarchy(ReferenceLookupServiceImpl.java:52)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupBean.lookupOrgHierarchy(ReferenceLookupBean.java:56)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:67)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupServiceProxy.lookupOrgHierarchy(ReferenceLookupServiceProxy.java:52)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.populateCostCenters(HomePageUseCase.java:116)
at com.jpmorgan.bnfe.web.usecase.HomePageUseCase.doBnFE(HomePageUseCase.java:46)
at com.jpmorgan.bnfe.web.usecase.BnFEBaseUseCase.doIt(BnFEBaseUseCase.java:60)
at com.jpmc.tao.presentation.controller.Dispatcher.executeUseCase(Dispatcher.java:337)
at com.jpmc.tao.presentation.controller.Dispatcher.execute(Dispatcher.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at com.jpmc.tao.presentation.controller.FrontController.process(FrontController.java:53)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:98)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
Caused by: com.ibm.ws.exception.WsEJBException
at com.ibm.ejs.container.LocalExceptionMappingStrategy.mapException(LocalExceptionMappingStrategy.java:167)
at com.ibm.ejs.container.LocalExceptionMappingStrategy.setUncheckedException(LocalExceptionMappingStrategy.java:301)
at com.ibm.ejs.container.EJSDeployedSupport.setUncheckedLocalException(EJSDeployedSupport.java:462)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:77)
... 30 more
Caused by: java.lang.ExceptionInInitializerError
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.getOrgById(OrganizationNodeDAO.java:95)
at com.jpmc.planning.hib.dao.OrganizationNodeDAO.search(OrganizationNodeDAO.java:80)
at com.jpmc.tao.business.domain.DomainObjectFactory.search(DomainObjectFactory.java:554)
at com.jpmc.planning.biz.service.reference.ReferenceLookupServiceImpl.lookupOrgHierarchy(ReferenceLookupServiceImpl.java:52)
at com.jpmc.planning.ejb.service.reference.ReferenceLookupBean.lookupOrgHierarchy(ReferenceLookupBean.java:56)
at com.jpmc.planning.ejb.service.reference.EJSLocalStatelessReferenceLookup_35d5d97e.lookupOrgHierarchy(EJSLocalStatelessReferenceLookup_35d5d97e.java:67)
... 30 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:410)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.jpmc.planning.hib.util.HibernateUtil.<clinit>(HibernateUtil.java:34)
... 36 more
Caused by: javax.naming.NameNotFoundException: Context: LT8FB4P71Node01Cell/nodes/LT8FB4P71Node01/servers/server1, name: bnfe: First component in name bnfe not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
at com.ibm.ws.naming.jndicos.CNContextImpl.processNotFoundException(CNContextImpl.java:4392)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1752)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1707)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1412)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1290)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:145)
at javax.naming.InitialContext.lookup(InitialContext.java:361)
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
... 43 more
Name and version of the database you are using:
Oracle 10g
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?