tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsolanki99 <vsola...@nsf.org>
Subject javax.naming.NameNotFoundException: Name [jdbc/nsfOnlineDS] is not bound in this Context. Unable to find [jdbc].
Date Wed, 19 Apr 2017 10:07:05 GMT
Hi ,
We are using hibernate in our application .  We are not using ejb .
Everything is going well but we got below exception:

*SEVERE: Exception starting filter hibernateSession
java.lang.ExceptionInInitializerError
	at org.nsf.util.HibernateUtil.<clinit>(HibernateUtil.java:481)
	at
org.nsf.nsfonline.util.HibernateSessionRequestFilter.init(HibernateSessionRequestFilter.java:102)
	at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4572)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5215)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
	at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)
	at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
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:397)
	at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
	at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2006)
	at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1289)
	at org.nsf.util.HibernateUtil.rebuildSessionFactory(HibernateUtil.java:602)
	at org.nsf.util.HibernateUtil.<clinit>(HibernateUtil.java:473)
	... 17 more
Caused by: javax.naming.NameNotFoundException: Name [jdbc/nsfOnlineDS] is
not bound in this Context. Unable to find [jdbc].
	at org.apache.naming.NamingContext.lookup(NamingContext.java:816)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:173)
	at org.apache.naming.SelectorContext.lookup(SelectorContext.java:163)
	at javax.naming.InitialContext.lookup(Unknown Source)
	at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
	... 25 more*


Though we have same datasource in our hibernate config file. Plz provide any
suggestions





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/javax-naming-NameNotFoundException-Name-jdbc-nsfOnlineDS-is-not-bound-in-this-Context-Unable-to-find-tp4681563.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message