Tuesday, April 30, 2002 01:13 PM
I have a class to get JDBC connection using JNDI supported in Tomcat 4. The following code works when executing in Tomcat 4:
InitialContext ic = new InitialContext();
Context envCtx = (Context) ic.lookup("java:comp/env/");
javax.sql.DataSource ds = (javax.sql.DataSource)envCtx.lookup("jdbc/mydb");
However, when I ran this code in Forte 4.0-EA using the default installed J2EE server (i.e. Tomcat 4), I received this exception:
Has anyone seen this problem? Any suggestion to resolve this is appreciated.