i use JNDI name for getting Datasource using
java:comp/jdbc/env/(jndiname)
however i connat get connectin object error is no connection
i use below coding in
tomcat /conf/server.xml
<Context path="/JEE" docBase="JEE"
debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/LyricNote" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="postgres" password="" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://localhost/struts"/>
</Context>
</Host>
i trying to get datasource my program
DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/LyricNote);
Connection con = ds.getConnection();
please help me!!