Re: Postgresql Failing to Provide a Primary
Re: Postgresql Failing to Provide a Primary
- Subject: Re: Postgresql Failing to Provide a Primary
- From: Giorgio Valoti <email@hidden>
- Date: Wed, 30 Jul 2003 09:44:05 +0200
On Mercoledl, lug 30, 2003, at 03:59 Europe/Rome, Brian Allen wrote:
Should this plug-in just be drop in and it will work? Or, do I need
to call
something?
A JDBC plugin has the responsibility to customize the JDBCAdaptor for a
particular database and its JDBC driver.
However, the same plugin cannot be used within a WO app, in a pure Java
environment, and at the same time with EOModeler which still uses the
java bridge.
So you have to deal with two plugins:
- The EOModeler plugin (an .EOMBundle) has to be placed on
/Developer/EOMBundles/
- The pure Java plugin is the one to link to your project and should be
installed in the usual place: /Library/Frameworks
Other than linking it you don't have to make some explicit calls; it's
EOF that calls it when it needs
Also, I am testing on a Macintosh, but I deploying on a Linux box. I
assume
that I would just install this jar a long with the Postgresql JDBC jar
on
the Linux box. Am I correct?
Well, in this case the problem is not the plug-in per se, but the whole
deployment issues on a non-supported platform.
The shell script that launchs a WO application makes certain
assumptions regarding the installation layout on a given platform;
Of course this is valid under the assumption that you want to deploy
your app as standalone not as a servlet.
HTH
Thanks for you help,
Brian Allen
on 7/29/03 2:13 AM, Giorgio Valoti at email@hidden wrote:
You need the plugin.
You can find it here:
<http://www.hexdreams.com/>
On Martedl, lug 29, 2003, at 06:13 Europe/Rome, Brian Allen wrote:
I have a Project the was designed for OpenBase and I need it to also
work
with Postgres, but I am getting the following error upon trying to
save the
context.
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@1b5077 failed to provide new
primary
keys for entity 'Individual'
I believe that the database is setup correct, because I can work with
it via
EOModeler.
The last bit of the stack trace is the following:
File Line# Method
EODatabaseContext.java 5857 prepareForSaveWithCoordinator
EOObjectStoreCoordinator.java 405 saveChangesInEditingContext
EOEditingContext.java 3128 saveChanges
Thanks for any ideas, because I am not a Postgres user.
- Brian
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Giorgio Valoti
-------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Giorgio Valoti
-------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.