• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems creating a framework with model inside
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems creating a framework with model inside


  • Subject: Re: Problems creating a framework with model inside
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 22 Jun 2006 09:35:55 -0700

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 JDBCAdaptor@7751736. 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Problems creating a framework with model inside
      • From: Miguel Arroz <email@hidden>
References: 
 >Problems creating a framework with model inside (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Problems creating a framework with model inside
  • Next by Date: Re: Problems creating a framework with model inside
  • Previous by thread: Problems creating a framework with model inside
  • Next by thread: Re: Problems creating a framework with model inside
  • Index(es):
    • Date
    • Thread