Hi Isomorphic,
I was trying to create a jdni Data Source, the purpose is to move all the db connection settings outside the application and configure it on tomcat.
DS was not able to connect.
Error: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
##############
Tomcat - server.xml
##############
###################
server.properties
###################
regards,
/john
I was trying to create a jdni Data Source, the purpose is to move all the db connection settings outside the application and configure it on tomcat.
DS was not able to connect.
Error: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
##############
Tomcat - server.xml
##############
Code:
<Resource name="jdbc/jndiTest"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@xxx.xxx.xxx.xxx:1521:mySid"
username="oracuser"
password="oracuser"
initialSize="5"
maxActive="50" />
server.properties
###################
Code:
sql.OraDB.driver.name: java:/comp/env/jdbc/jndiTest sql.OraDB.database.type: oracle sql.OraDB.interface.type: jndi
regards,
/john
Comment