Hi all,
I am trying to configure data source for
tomcat application .while starting tomcat i am getting severe error as :
SEVERE: Null component Catalina:type=DataSource,path=/myApp,host=localhost,clas
s=javax.sql.DataSource,name="jdbc/myApp
in application i am calling it like :
DataSource ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/myApp");
and when i run application following error occurs :
Name
java: is not bound in this Context
In server.xml and web.xml i have done all the necessary changes .
Anyone any help please ?