Re: NoSuchMethodException com.mysql.jdbc.Driver.<init>
Re: NoSuchMethodException com.mysql.jdbc.Driver.<init>
- Subject: Re: NoSuchMethodException com.mysql.jdbc.Driver.<init>
- From: email@hidden
- Date: Tue, 9 Feb 2010 14:40:07 +0100 (CET)
For the sake of completeness, here is my EOModel (new) config:
Name: Default
Prototype: EOJDBCMysqlPrototypes
Adaptor: JDBC
url: jdbc:mysql://localhost/test?capitalizeTypesnames=true&zeroDateTimeBehaviour=convertToNull
username: xxxx
password: yyyyy
driver: com.mysql.jdbc.Driver
plugin: <empty>
That seems rather logical and corresponds to David's tutorial.
My mistake was to follow strictly the video and fill out EOModel's fields in the same order without checking the field names. But my EOModel version has this data presented in a slightly different order than in the video, so the informations (url, driver, plugin) were misplaced!
So, that was a rather instructive mistake.
And now, let's move on to the next step and keep learning WO.
Mark, by the way: how did you identify the error? via the log?
Cheers,
Andreas
----- Original Message -----
From: "Cheong Hee (Gmail)" <email@hidden>
To: email@hidden, "Mark Ritchie" <email@hidden>
Cc: "webobjects-dev" <email@hidden>
Sent: Tuesday, 9 February, 2010 05:47:30 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re: NoSuchMethodException com.mysql.jdbc.Driver.<init>
I supposed that you may only need this in url for your eomodel config:
url:
jdbc:mysql://ip-address/dbName?capitalizeTypenames=true&useUnicode=true&characterEncoding=UTF-8
username: xxxxx
password: xxxxx
I am using the Driver setting, and not sure its implications. I thought
this field could just left it empty.
Cheers
Cheong Hee
----- Original Message -----
From: <email@hidden>
To: "Mark Ritchie" <email@hidden>
Cc: "webobjects-dev" <email@hidden>
Sent: Tuesday, February 09, 2010 5:18 AM
Subject: Re: NoSuchMethodException com.mysql.jdbc.Driver.<init>
That was it! Fantastic!
My EOModel configuration wasn't properly filled out. My fault: I didn't look
correctly at the tutorial...
Thanks a lot guys.
----- Original Mail -----
from: "Mark Ritchie" <email@hidden>
to: "Andreas Thiken" <email@hidden>
Cc: "webobjects-dev" <email@hidden>
sent: Lundi 8 FĂ©vrier 2010 20h32:03 GMT +01:00 Amsterdam / Berlin / Berne /
Rome / Stockholm / Vienne
Object: Re: NoSuchMethodException com.mysql.jdbc.Driver.<init>
On 8/Feb/2010, at 1:26 AM, Andreas Thiken wrote:
> Does anyone have a suggestion?
Hey Andreas!
I could recreate the exception which you got by using an EOModel with
Driver:
Plugin: com.mysql.jdbc.Driver
These settings work for me:
Driver: com.mysql.jdbc.Driver
Plugin:
Give that a try! ;-)
M.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden