Re: loading jdbc Driver in servlet

2018-12-17 Thread Dave Cramer
On Mon, 17 Dec 2018 at 02:28, Thomas Kellerer wrote: > Rob Sargent schrieb am 14.12.2018 um 19:28: > > Using java 1.8, postgresql-42.1.4.jar, embedded tomcat 9 > > > > It appears to me that I need to make the call > > "Class.forName("org.postgresql.Driver)" when the entry is in a > > servlet.

Re: loading jdbc Driver in servlet

2018-12-16 Thread Thomas Kellerer
Rob Sargent schrieb am 14.12.2018 um 19:28: > Using java 1.8, postgresql-42.1.4.jar, embedded tomcat 9 > > It appears to me that I need to make the call > "Class.forName("org.postgresql.Driver)" when the entry is in a > servlet. Is this expected, within a servlet, or is this just /post > hoc

Re: loading jdbc Driver in servlet

2018-12-16 Thread Rob Sargent
> On Dec 16, 2018, at 5:55 PM, Martin Gainty wrote: > > 99% of the problems with 'isolated classloader' are solved using the class > e.g. > Granted. But this seems to fly in the face of both Postgres docs and modern JDKs.

Re: loading jdbc Driver in servlet

2018-12-16 Thread Rob Sargent
> On Dec 16, 2018, at 12:12 PM, Dave Cramer wrote: > > So you are starting up tomcat yourself ? Perhaps that is the difference ? > I have no idea what the tomcat wrapper does, but I'd be curious if the same > thing happens when stared normally > > Dave Cramer > Whatever the is the

Re: loading jdbc Driver in servlet

2018-12-16 Thread Dave Cramer
So you are starting up tomcat yourself ? Perhaps that is the difference ? I have no idea what the tomcat wrapper does, but I'd be curious if the same thing happens when stared normally Dave Cramer da...@postgresintl.com www.postgresintl.com On Sun, 16 Dec 2018 at 12:20, Rob Sargent wrote: >

Re: loading jdbc Driver in servlet

2018-12-16 Thread Rob Sargent
Tomcat version 9. Embedded in my main() > On Dec 16, 2018, at 9:30 AM, Dave Cramer wrote: > > My guess is it has something to do with your servlet classpath loader. Which > servlet engine are you using ? > Dave Cramer > > da...@postgresintl.com > www.postgresintl.com > > >> On Fri, 14 Dec

Re: loading jdbc Driver in servlet

2018-12-16 Thread Dave Cramer
My guess is it has something to do with your servlet classpath loader. Which servlet engine are you using ? Dave Cramer da...@postgresintl.com www.postgresintl.com On Fri, 14 Dec 2018 at 16:04, Rob Sargent wrote: > > > On Dec 14, 2018, at 2:02 PM, Rob Sargent wrote: > > > > On Dec 14, 2018,

Re: loading jdbc Driver in servlet

2018-12-14 Thread Rob Sargent
> On Dec 14, 2018, at 2:02 PM, Rob Sargent wrote: > > > >> On Dec 14, 2018, at 1:30 PM, Dave Cramer > > wrote: >> >> Strange, I wouldn't think so, but then I haven't used a raw servlet for so >> long I have no idea. >> >> >> Dave Cramer >> >>

Re: loading jdbc Driver in servlet

2018-12-14 Thread Rob Sargent
> On Dec 14, 2018, at 1:30 PM, Dave Cramer wrote: > > Strange, I wouldn't think so, but then I haven't used a raw servlet for so > long I have no idea. > > > Dave Cramer > > da...@postgresintl.com > www.postgresintl.com > > On

Re: loading jdbc Driver in servlet

2018-12-14 Thread Dave Cramer
Strange, I wouldn't think so, but then I haven't used a raw servlet for so long I have no idea. Dave Cramer da...@postgresintl.com www.postgresintl.com On Fri, 14 Dec 2018 at 13:29, Rob Sargent wrote: > Using java 1.8, postgresql-42.1.4.jar, embedded tomcat 9 > > It appears to me that I

loading jdbc Driver in servlet

2018-12-14 Thread Rob Sargent
Using java 1.8, postgresql-42.1.4.jar, embedded tomcat 9 It appears to me that I need to make the call "Class.forName("org.postgresql.Driver)" when the entry is in a servlet.  Is this expected, within a servlet, or is this just /post hoc ergo propter hoc /at it finest and I changed something