Hi Miguel,

On Jun 22, 2006, at 7:28 AM, Miguel Arroz wrote:

I created a framework that contains a model file. I built and installed it, and now I'm creating an app that should use it.

The model file has de adaptar stuff well defined, because I can generate SQL and run it to create the tables.

Not related to your problem, but it is a best practice to set the connection dictionary in code when having models in reusable frameworks. Here is one way to do this (straight from Google): http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem? itemId=216 It is also in Practical WebObjects and on the web in several variations. That way you can reuse it with multiple databases. This also avoids some EOF bugs, for example http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Common_Pitfalls_and_Troubleshooting

The problem is that, when I try to use it in my app, I get this error:

9561 [Thread-1] WARN NSLog - An exception occurred while trying to open a channel: java.lang.IllegalStateException: Unable to load JDBCPlugIn 'PostgresqlPlugin' for [EMAIL PROTECTED] Check your connection dictionary and make sure the specified JDBCPlugIn subclass is in your classpath.

Obviously, I have included the PostgresqlPlugin framework, both in the framework and in the app.

What's happening? Is there any trick about frameworks and models inside it (it's my first framework...).

No, there is no trick. It should just work. Do you have this in your connection dictionary?

driver = "org.postgresql.Driver";

That may be the missing piece. That or the PostgresqlPlugin framework is damaged.

Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

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/products/practical_webobjects




_______________________________________________
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]

Reply via email to