Hi Mike, I've checked on my program (not that I didn't believe you ;-), and yes: no need to set the Driver. As Cheong Hee said that'll simplify the config and limit the errors.
Thanks again to all of you. That was instructive. Andreas ----- Original Message ----- From: "Mike Schrag" <[email protected]> To: "Cheong Hee (Gmail)" <[email protected]> Cc: [email protected], "Mark Ritchie" <[email protected]>, "webobjects-dev" <[email protected]> Sent: Wednesday, 10 February, 2010 05:27:02 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: Re: NoSuchMethodException com.mysql.jdbc.Driver.<init> A proper plugin should not require you to set either plugin or driver ... The plugin can be guessed from the subprotocol of your connection url and the plugin can return the default driver name. I believe this behaves properly in all the common plugins at this point. ms On Feb 9, 2010, at 11:13 PM, Cheong Hee (Gmail) wrote: > Hi Andreas & Mark > > My typo error in previous email. I should say that I have neither set the > Driver nor Plugin field, other than url. I don't know if this is significant > to define, but it should work even without, AFAIK. It is also applicable to > FrontBase, too. > I am just curious why it is working. May be you could also confirm this. > > Cheers > > Cheong Hee > > ----- Original Message ----- From: <[email protected]> > To: "Cheong Hee (Gmail)" <[email protected]>; "Mark Ritchie" > <[email protected]> > Cc: "webobjects-dev" <[email protected]> > Sent: Tuesday, February 09, 2010 9:40 PM > Subject: Re: NoSuchMethodException com.mysql.jdbc.Driver.<init> > > > 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 protected]> > To: [email protected], "Mark Ritchie" <[email protected]> > Cc: "webobjects-dev" <[email protected]> > 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 protected]> > To: "Mark Ritchie" <[email protected]> > Cc: "webobjects-dev" <[email protected]> > 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 protected]> > to: "Andreas Thiken" <[email protected]> > Cc: "webobjects-dev" <[email protected]> > 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 protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com > > This email sent to [email protected] > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
