werid problem, please help, thanks very much!!!

raybristol <[email protected]> Tue, 2 Oct 2007 09:07:15 -0700 (PDT)
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
I am getting a error when I try to get a connection, the werid thing is I can
called the getConnection method with no problem from some project but got
below erros in other projects: 

java.lang.NoSuchMethodError:
org.apache.derby.jdbc.InternalDriver.embeddedDriverAcceptsURL(Ljava/lang/String;)Z
	at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)
	at java.sql.DriverManager.getConnection(Unknown Source)

my code is:
private static final String driver = "com.mysql.jdbc.Driver";
private static final String dbName="Umbrella";
private static final String connectionURL = "jdbc:mysql://localhost:3306/" +
dbName;
	    
Connection conn = null;

conn = DriverManager.getConnection(connectionURL, "root", "password");	

I don't know why there is anything to do with derby! i am using mysql(I was
using derby before but I changed it) and from the connection string there is
no way the code is calling derby and the code in fact was fine with some
project (I am using eclipse)
-- 
View this message in context: http://www.nabble.com/werid-problem%2C-please-help%2C-thanks-very-much%21%21%21-tf4555694.html#a13001638
Sent from the MySQL - Java mailing list archive at Nabble.com.


-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]