Hello
I am using
Tomcat 5.5.27. I have two web applications- App1 and App2. Below are some details-
App1 Data Source JNDI name - jdbc/DW_Pool App1 web context name - tdwebapps App2 Data Source JNDI name - jdbc/SQLPool_DWApp2 web context name - tdreports
My context.xml and server.xml are given at the end of this post.
When I start Tomcat with these configurations and try to access my application, I see the following error in the log-
Aug 25, 2009 10:14:12 PM org.eclipse.birt.report.data.oda.jdbc.JndiDataSource getConnection
INFO: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
Aug 25, 2009 10:14:12 PM org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection
SEVERE: Cannot open connection.
My questions are-
1) Where am I going wrong? How to get rid of this exception?
2) I referred to the Tomcat config documentation given at-
http://tomcat.apache.org/tomcat-5.5-doc/config/index.html
However, I have not been able to understand the significance of Context.xml file exactly. If we can configure contrexts, resources etc. in server.xml file, what purpose does the Context.xml file serve?
My Context.xml file-
My server.xml file-