Re: connecting jsp with mysql

2011-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anup, On 2/21/2011 10:20 AM, Anup Niroula wrote: > Hi, > out.println ("Cannot connect to database server message "+e.getMessage()); > "This gives following error msg: > "Cannot connect to database server com.mysql.jdbc.Driver." How about e.printStack

Re: connecting jsp with mysql

2011-02-21 Thread Anup Niroula
Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > >

RE: connecting jsp with mysql

2011-02-21 Thread Martin Gainty
facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 21 Feb 2011 07:55:05 -0600 > Subject: connecting jsp with mysql > From: anup.niro...@gmail.com > To: users@tomcat.apache.org > > Hi, > >

RE: connecting jsp with mysql

2011-02-21 Thread Caldarale, Charles R
> From: Anup Niroula [mailto:anup.niro...@gmail.com] > Subject: connecting jsp with mysql > I downloaded jdbc driver "mysql-connector-java-5.1.15-bin.jar" > and placed it in two locations: >- CATALINE_HOME\lib >- C:\Program Files\Apache Software Foundation

Re: connecting jsp with mysql

2011-02-21 Thread Mikolaj Rydzewski
On Mon, 21 Feb 2011 07:55:05 -0600, Anup Niroula wrote: catch (Exception e) { out.println ("Cannot connect to database server"); } I guess the answer is hidden within 'e'. Anyway, you should rather use JNDI http://tomcat.apache.org/tomcat-7.0

connecting jsp with mysql

2011-02-21 Thread Anup Niroula
Hi, I am having difficulty in connecting jsp and mysql using Tomcat 7.0 . I downloaded jdbc driver "mysql-connector-java-5.1.15-bin.jar" and placed it in two locations: - CATALINE_HOME\lib - C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\lsc\WEB-INF\lib I tried to connec