Re: Guidance on how to create a framework for the application models
Re: Guidance on how to create a framework for the application models
- Subject: Re: Guidance on how to create a framework for the application models
- From: Chuck Hill <email@hidden>
- Date: Thu, 16 Aug 2012 10:31:56 -0700
On 2012-08-14, at 4:49 PM, Sr. Ângelo Andrade Cirino wrote:
> Hi,
>
> I have two applications, the backend as a D2W and the fronted as a small WO application with a simple DisplayGroup, that use the same models. Trying to simplify maintenance and to have the models in just one place, I created a framework to hold the models, but when I tried it with the DisplayGroup application I got the following error:
>
> IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@42bb0406: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured.
> at com.webobjects.eoaccess.EODatabaseContext._obtainOpenChannel(EODatabaseContext.java:1967)
That could come from a number of things:
- missing EOF plugin for database
- missing JDBC driver for database
- wrong database URL in model or in connection properties
- wrong user name in model or in connection properties
- wrong password in model or in connection properties
> And a similar error when changing the model in EOModeler and trying to generate the SQL. The framework is supposed to only have the models and its connection dictionary is correctly written, since I just copied the eomodeld files from a working application.
>
> Any suggestion?
Has anything else changed? Are you setting the connection dictionary just in the EOModel or using the Wonder properties as well?
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/gvc/practical_webobjects
_______________________________________________
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