Re: Tomcat 5.5.9 Connection Pool / JNDI / DBCP

2005-04-23 Thread Lars Nielsen Lind
I still can't make it work. My /opt/jakarta-tomcat-5.5.9/logs/catalina.out display this message 2005-04-23 08:48:21 org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=DataSource,path=/,host=192.168.1.251,class=javax.sql.DataSource,name=jdbc/testdatabase

Tomcat 5.5.9 Connection Pool / JNDI / DBCP

2005-04-20 Thread Lars Nielsen Lind
Hi. I have some problems with Tomcat 5.5.9 Connection Pooling / JNDI / DBCP When running my java component (se below) I receive this NamingException: /NE: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:

Re: Tomcat 5.5.9 Connection Pool / JNDI / DBCP

2005-04-20 Thread David Smith
You should be doing this in your code: Context initContext = null; try { initContext = new InitialContext() ; } catch ( Exception e1 ) { //... do something with the trapped exception } try { DataSource ds = (DataSource)initContext.lookup(java:/comp/env/jdbc/testdatabase); } catch ( Exception