Just an addition to Randy's mail:

Obviously the following line assigns a null value 
to driverClassName:
String driverClassName = 
  config.getInitParameter("driverClassName");

So in first place your servlet doesn't fail because 
it can't find the driver. It fails because the 
driverClassName is null.

That's the reason for Randy's remarks.

> -----Urspr�ngliche Nachricht-----
> Von: Ajay Ejantkar [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 17. Mai 2001 17:23
> An: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Betreff: NullPointerException error
<snip/>
> Root cause: 
> java.lang.NullPointerException
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:120)
>       at Query.init(Query.java:26)
<snip/>

Reply via email to