Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2004, 09:52 AM
Authorized User
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ankit,
See Class Path Configuration Below

Please see below
CATALINA_HOME is:C:\Program Files\Apache Software Foundation\Tomcat 5.0
CLASSPATH is: %CATALINA_HOME%\common\lib\servlet-api.jar;C:\j2sdk1.4.1_01\jre\lib\ext\mysql-connector-java-3.0.10-stable-bin.jar;

JAVA_HOME is: C:\j2sdk1.4.1_01
Path is :%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\S ystem32\Wbem;C:\j2sdk1.4.1_01\bin;%JAVA_HOME%\bin; %CATALINA_HOME%\bin


PW
 
Old April 6th, 2004, 12:13 PM
Registered User
 
Join Date: Feb 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Patrick,
i set the classpath,path,java_home,Catalina_home as u told and i also copied the mysql-connector-java-3.0.11-stable-bin.jar to :\j2sdk1.4.1_07\jre\lib\ext\ but i am still getting the same error message.If u can then plz help me out of this problem.
thx.....bye,
Ankit

 
Old December 15th, 2004, 01:41 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi y´all!

I have the same problem, but I would like to connect on a server which is somewhere else, with my local machine. It means, I´m running my program on my local machine, but I´m using a database on a completely different place. What I´m getting all the time is this exception:
------------------------------------------------------
JdbcOdbcDriver class loaded
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.od bc.JdbcOdbcDriver@480457]
DriverManager.getConnection("jdbc:mysql://195.37.176.148:3306/Ortswexel")
    trying driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.od bc.JdbcOdbcDriver@480457]
*Driver.connect (jdbc:mysql://195.37.176.148:3306/Ortswexel)
getConnection: no suitable driver
java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at database.DBConnection.connectDB(DBConnection.java: 72)
    at database.DBConnection.getInstance(DBConnection.jav a:48)
    at database.FigurVerwaltung.getAlleFiguren(FigurVerwa ltung.java:74)
    at database.Start.main(Start.java:33)
SQLException: SQLState(08001)
java.sql.SQLException: No suitable driver
------------------------------------------------------

It would be great if somebody could help me. I guess the driver is correct, but the adress could be wrong, I´m not really sure!

Thanks,
Dariusz






Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to connect sultan SQL Server 2005 1 June 6th, 2008 03:38 PM
Unable to render the descriptor tag steelrose XSLT 2 June 5th, 2008 04:27 PM
unable to connect PHP with Mysql bhavna MySQL 1 June 5th, 2007 07:52 PM
Unable to load tag handler class nithya123 BOOK: Professional Jakarta Struts 0 September 1st, 2005 10:02 AM
Can't connect to MySQL using JSTL tag maester18 JSP Basics 3 January 31st, 2004 05:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.