Re: JNDI look up with tomcat 8.5.6

2016-11-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ajay, On 11/3/16 12:41 AM, Ajay Bilotia wrote: > *Below code is for JNDI look up which is working fine in tomcat 7 > and 8 .* > > InitialContext initContext = new InitialContext(); DataSource ds = > (DataSource)initContext.lookup(initContext.getNa

JNDI look up with tomcat 8.5.6

2016-11-02 Thread Ajay Bilotia
Hi, *Below code is for JNDI look up which is working fine in tomcat 7 and 8 .* InitialContext initContext = new InitialContext(); DataSource ds = (DataSource)initContext.lookup(initContext.getNameParser( "" ).parse( "java:/comp/env/jdbc/BFDS" )); Connection conn = ds.getConnection(); *Same code

Re: JNDI look up with tomcat 8.5.6

2016-11-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ajay, On 11/2/16 1:29 AM, Ajay Bilotia wrote: > We are upgrading the tomcat from apache-tomcat-7.0.59 to > apache-tomcat-8.5.6. We are setting the custom class loader as we > required for our application and JNDI look up is not working with > tomca

JNDI look up with tomcat 8.5.6

2016-11-01 Thread Ajay Bilotia
Hi, We are upgrading the tomcat from apache-tomcat-7.0.59 to apache-tomcat-8.5.6. We are setting the custom class loader as we required for our application and JNDI look up is not working with tomcat 8 earlier it was working fine with tomcat 7. Pleas help regarding that. -- Thanks and Regards Aja