Re: Postgresql Connection (again) - failure to create primary keys
Re: Postgresql Connection (again) - failure to create primary keys
- Subject: Re: Postgresql Connection (again) - failure to create primary keys
- From: LD <email@hidden>
- Date: Wed, 4 May 2005 16:26:30 +1000
Hi there,
revisiting an age old problem...
java.lang.IllegalStateException: Adaptor
com.webobjects.jdbcadaptor.JDBCAdaptor@20cbef failed to provide new
primary keys for entity 'SomeEntity'.
On 15/11/2004, at 2:10 PM, Hunter Hillegas wrote:
From Hexdreams or WONDER:
PostgresqlPlugIn.framework -> /Library/Frameworks
PostgresqlPlugIn.EOMplugin -> /Developer/EOMBundles
From jdbc.postgresql.org:
http://jdbc.postgresql.org/download/*.jdbc3.jar ->
/Library/Java/Extensions
Make sure that postmaster is started with the -i option (pre 8.0).
In EOModeler:
URL: jdbc:postgresql:<database name>
driver: org.postgresql.Driver
plugin: PostgresqlPlugIn
username and password that correspond to your install.
Yes, you need the JDBC driver. I use the JDBC3 version posted above.
Also, make sure to include PostgresqlPlugIn.framework in your project.
I've been working with OpenBase whilst developing my app - and its been
ages since I've set up WebObjects with Postgres. In any event I've done
the above (using the hexdreams downloads) and have just created a very
simple test model (1 table: Person with a sequence primary key) and I
can't add new records.
I've included the PostgresqlPlugIn.framework in the project and my
adaptor info is as above.
EOModeler talks with the DB no problems - but it's when running the app
that I run into problems. Any help appreciated...
WO5.2.3/Mac OS X 10.3.8
Xcode 1.5
Postgresql 8 (from entropy.ch)
with regards,
--
LD
_______________________________________________
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