Re: Database problems
Dona Mommsen <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.newbies |
|---|---|
| Message-ID | <[email protected]> |
Hi,
have a look in EOModeler for Model -> Set Adapter Info…
There you have to give the connection information for the database,
like Username & Password
The rest depends on the database you are using, for example with mySQL
the URL would be like:
jdbc:mysql://127.0.0.1/name-of-the-database
I__ this is address for localhost
'Driver' points to the driver class, for example with mySQL:
com.mysql.jdbc.Driver
Naturally you need also the JDBC driver somewhere where EO Modeler can
find it, I have mine in
/Library/Java/Extensions/mysql-connector-java-3.1.6-bin.jar
Hope that helps
Dona
On Feb 16, 2005, at 1:51 PM, dbaseiii wrote:
>
>
> Hello ,
>
> I'm starting with wo and doing some of the tutorials on the
> adc , but when I get to the database examples and try to
> run them I always get the following error when it tries to
> lookup or access the datbase:
> Application: test5
> Error: java.lang.IllegalStateException
> Reason: _obtainOpenChannel --
> com.webobjects.eoaccess.EODatabaseContext
> com.webobjects.eoaccess.EODatabaseContext@1b3f829: failed to open
> database channel. Check your connection dictionary, and ensure your
> database is correctly configured.
>
> I'm not real sure where to look for this.. any help
> would be appreciated.
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/webobjects-newbies/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/