Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-17 Thread Rainer Frey
On Monday 16 November 2009 14:24:37 Rainer Frey wrote: > Hi, > > I found a problem when using DriverManager.getConnection() with a build > from current 6.0 SVN [...] As requested, added a bugzilla entry: https://issues.apache.org/bugzilla/show_bug.cgi?id=48214 Rainer --

Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-17 Thread Rainer Frey
On Monday 16 November 2009 14:24:37 Rainer Frey wrote: > Hi, > The error originally occured in a much more complicated application with a > home-grown DB connection pool, but the servlet I mentioned above exhibits > this behavior. For anyone willing to test: here is a .war file with this > servle

Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-16 Thread Rainer Frey (Inxmail GmbH)
On Monday 16 November 2009 15:00:32 Pid wrote: > On 16/11/2009 13:54, Rainer Frey wrote: > > I forgot a very important information: the JDBC driver is in tomcat/lib > > because our server usually runs several instances of the same webapp, and > > the customers have to add the JDBC driver themselves

Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-16 Thread Pid
On 16/11/2009 13:54, Rainer Frey wrote: On Monday 16 November 2009 14:24:37 Rainer Frey wrote: Hi, I found a problem when using DriverManager.getConnection() with a build from current 6.0 SVN (this morning). [...] Everything works fine with Tomcat 6.0.20. I forgot a very important informati

Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-16 Thread Rainer Frey
On Monday 16 November 2009 14:24:37 Rainer Frey wrote: > Hi, > > I found a problem when using DriverManager.getConnection() with a build > from current 6.0 SVN (this morning). [...] > Everything works fine with Tomcat 6.0.20. I forgot a very important information: the JDBC driver is in tomcat/lib

Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-16 Thread Rainer Frey
On Monday 16 November 2009 14:32:41 Mikolaj Rydzewski wrote: > Rainer Frey wrote: > > I found a problem when using DriverManager.getConnection() with a build > > from current 6.0 SVN (this morning). Basically I have a Servlet that's > > loaded on startup and does following in its init() method: > >

Re: Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-16 Thread Mikolaj Rydzewski
Rainer Frey wrote: I found a problem when using DriverManager.getConnection() with a build from current 6.0 SVN (this morning). Basically I have a Servlet that's loaded on startup and does following in its init() method: You should really use JNDI to obtain DataSource. -- Mikolaj Rydzewski

Webapp reload and DriverManager in Tomcat 6.0 trunk

2009-11-16 Thread Rainer Frey
Hi, I found a problem when using DriverManager.getConnection() with a build from current 6.0 SVN (this morning). Basically I have a Servlet that's loaded on startup and does following in its init() method: try { Class.forName( driver ); } catch( ClassNotFoundException x ) { log