Re: problem after adding ERAttachment
Re: problem after adding ERAttachment
- Subject: Re: problem after adding ERAttachment
- From: Theodore Petrosky <email@hidden>
- Date: Wed, 15 Sep 2010 22:58:23 -0700 (PDT)
so the solution was to add:
dbConnectPluginGLOBAL=PostgresqlPlugIn
dbConnectDriverGLOBAL=org.postgresql.Driver
to my connection dictionary in the properties file.
Thanks,
Ted
--- On Thu, 9/16/10, Mike Schrag <email@hidden> wrote:
> From: Mike Schrag <email@hidden>
> Subject: Re: problem after adding ERAttachment
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Thursday, September 16, 2010, 1:21 AM
> one declares plugin =
> "PostgresqlPlugIn" and one doesn't
>
> On Sep 16, 2010, at 1:19 AM, Theodore Petrosky wrote:
>
> > after adding ERAttachment Framework, then adding the
> Relationship and adding a migration using the Practical
> Wonder example, I get the following error about the
> connection Dictionaries.
> > This is my connection dictionary from my properties
> file:
> >
> > # Migrations
> > er.migration.migrateAtStartup=true
> > er.migration.createTablesIfNecessary=true
> > er.migration.modelNames=TheWorkTrackerModel
> >
> TheWorkTrackerModel.MigrationClassPrefix=com.eltek.migrations.TWTMigration
> >
> > # Connection Dictionary
> >
> dbConnectURLGLOBAL=jdbc:postgresql://localhost/theworktracker?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull
> > dbConnectUserGLOBAL=asacksadmin
> > dbConnectPasswordGLOBAL=4004
> >
> > Why do I now get this error? There was no mention in
> the podcast of doing anything with the dictionary.
> >
> > Ted
> >
> > INFO er.extensions.eof.ERXModelGroup - The
> connection dictionaries for TheWorkTrackerModel and
> erprototypes have the same URL and username, but at least
> one of them is a prototype model, so it shouldn't be a
> problem.
> > Sep 16 01:05:18 TheWorkTracker[63050]
> > INFO er.extensions.eof.ERXModelGroup - The
> connection dictionaries for TheWorkTrackerModel and
> erprototypes have the same URL and username, but at least
> one of them is a prototype model, so it shouldn't be a
> problem.
> > Sep 16 01:05:18 TheWorkTracker[63050] ERROR
> er.extensions.appserver.ERXApplication -
> TheWorkTracker failed to start.
> > IllegalArgumentException: The connection dictionaries
> for ERAttachment and TheWorkTrackerModel have the same URL
> and username, but the connection dictionaries are not equal.
> Check your connection dictionaries carefully! This problem
> is often caused by jdbc2Info not matching between the
> two. One fix for this is to set
> ERAttachment.removeJdbc2Info=true and
> TheWorkTrackerModel.removeJdbc2Info=true in your Properties
> file. (ERAttachment={password = "4004"; username =
> "asacksadmin"; URL =
> "jdbc:postgresql://localhost/theworktracker?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull";
> }; and TheWorkTrackerModel={plugin = "PostgresqlPlugIn";
> username = "asacksadmin"; driver = "org.postgresql.Driver";
> password = "4004"; URL =
> "jdbc:postgresql://localhost/theworktracker?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull";
> }).
> >
> >
> >
> >
> > _______________________________________________
> > 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