|
Hello to everybody. I am using a try-catch pair.
I have something like this.
try
{
Class.forName("org.gjt.mm.mysql.Driver");
Connection
dbcon=DriverManager.getConnection("jdbc:mysql://isle:3306/footballtest",
"<username>", "<password>");
}
catch (ClassNotFoundException
cnfe)
{
cnfe.printStackTrace();
}
catch (SQLExepction sqle)
{
sqle.printStackTrace();
}
but Tomcat just crashes when the: Connection
dbcon=DriverManager.getConnection("jdbc:mysql://isle:3306/footballtest",
"<username>", "<password>"); line is
encountered. I have to say here that the above code works fine if I use simple
class to obtain connection with the database. Any more
suggestions.
Thank you.
Panos
|
Title: More Tomcat problems.
- More Tomcat problems. Panagiotis Konstantinidis
- Re: More Tomcat problems. Dave Smith
- Re: More Tomcat problems. Endre St�lsvik
- Re: More Tomcat problems. Dave Smith
- request dispatch woes Alan Wright
- Re: request dispatch woes Craig R. McClanahan
- RE: More Tomcat problems. Panagiotis Konstantinidis
- RE: More Tomcat problems. Panagiotis Konstantinidis
