Believe it or not, I didn't try 70: DataSource ds = (DataSource) initCtx.lookup("java:/myoracle");
But I did in fact try 70: DataSource ds = (DataSource) initCtx.lookup("java:jdbc/myoracle"); to no avail. Let me test the first DataSource attempt and see. -----Original Message----- From: Bob Hall [mailto:rfha...@yahoo.com] Sent: Thursday, March 18, 2010 4:27 PM To: Tomcat Users List Subject: RE: DB connection error -Tomcat 6 config --- On Thu, 3/18/10 at 1:56 PM, Caldarale, Charles R <chuck.caldar...@unisys.com> wrote: > If you can, move up to 6.0.26 so we can all be looking at the same > release. >From one of the OP's earlier messages: > An error occurred at line: 68 in the jsp file: > /chngctrl/chgctrl_details.jsp Type mismatch: cannot convert from > Object to Context > 65: > 66: Connection connection = null; > 67: Context initCtx = new InitialContext(); > 68: Context envCtx = initCtx.lookup("java:comp/env"); > 69: // Look up our data source > 70: DataSource ds = initCtx.lookup("jdbc/myoracle"); > 71: > > > SEVERE: Servlet.service() for servlet jsp threw exception javax.naming.NameNotFoundException: Name jdbc is not bound in this Context > at org.apache.naming.NamingContext.lookup(NamingContext.java:770) Have you tried: 66: Connection connection = null; 67: Context initCtx = new InitialContext(); 68: Context envCtx = (Context) initCtx.lookup("java:comp/env"); 69: // Look up our data source 70: DataSource ds = (DataSource) initCtx.lookup("java:/myoracle"); OR 70: DataSource ds = (DataSource) initCtx.lookup("java:jdbc/myoracle"); - Bob --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org