I believe you are in the wrong mailing list for this.

You have a classloader issue with your servlet container. this is nothing to
do with commons.

if you're using tomcat try the tomcat USER list however my best guess is
that you haven't put the jdbc driver jar in the 
WEB-INF/lib/ directory...

Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: 12 August 2003 01:29
> To: [EMAIL PROTECTED]
> Subject: database connectivity
> 
> 
> Hi ,
> 
> I am unable to connect the servlets to the mysql database.
> ***********************************************
>                  try
>                  {
> Class.forName("org.gjt.mm.mysql.Driver").newInstance(); 
> 
>                 }//end of try
> 
>                 catch(ClassNotFoundException E)
>                 {
> 
> throw new UnavailableException(this,"Couldn't load database driver"); 
> 
>                 }//end of catch
> 
> 
>                 catch(Exception e)
>                 {
> 
> throw new UnavailableException(this,"Couldn't load database driver"); 
> *********************************************
> 
> This is the code in my servlet.
> 
> the mod_jserv.log file also shows
> 
> ******************
> 
> [11/08/2003 15:30:19:485] (ERROR) ajp12: Servlet Error: 
> Initialization 
> error whi 
> le loading the servlet: Couldn't load database driver
> [11/08/2003 15:30:19:485] (ERROR) an error returned handling 
> request via 
> protoco 
> l "ajpv12"
> 
> 
> ******************
> 
> Seeing this error i feel the driver is not getting loaded.
> pls suggest me some way .
> 
> 
> thanks
> 
> 
> 
> ---------------------------------------------
> Geetha Thanu
> CDFD
> -----------------------------------------------------
> 
> 
> 
> 
> 
> -
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
 
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to