Re: connection dictionary error
Re: connection dictionary error
- Subject: Re: connection dictionary error
- From: Tarun Reddy <email@hidden>
- Date: Wed, 2 Aug 2006 10:38:59 -0600
Thanks John! Worked perfectly.
And now rereading the PDF, it says to do exactly that. RTFM...
Tarun
On Aug 2, 2006, at 9:37 AM, John Larson wrote:
Tarun,
I deploy to Tomcat, and in my web.xml file I have to comment out
the following block:
<!--
<resource-ref>
<description>The data source to be used by EOF. If there are
multiple data sources,
then the definition below must be used to
configure which JDBC URL (Model) should
use which data source. If EOF should use a JDBC
driver directly, this section must be commented out</description>
<res-ref-name>jdbc/DefaultDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
-->
There's probably a better way to do it, but this is how I handle
it. Otherwise tomcat tries to use its db connector instead of the
JDBC driver directly.
John
On Aug 2, 2006, at 9:54 AM, Tarun Reddy wrote:
So I'm trying to get back into WebObjects after dabbling last year
a bit. Last night I attempted to deploy a simple application that
does some CRUD type operations into a Tomcat instance (thank you
Andrew, http://homepage.mac.com/andrewlindesay/le/articles/wo-
tomcat.pdf).
The application deploys correctly and the login page comes up, but
I get the following errors when attempting to access the database
(Oracle XE in this case).
- An exception occurred while trying to open a channel:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot create
JDBC driver of class '' for connect URL 'null'
- <com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@cffc79: failed to open
database channel. Check your connection dictionary, and ensure
your database is correctly configured.
I assume (but you know the saying about that word) that I'm
basically not getting the correct JDBC URL plugged in for my
deployment, even though it may be set up correctly in the EOModel
file. Andrews documentation refers to setConnectionDictionary
call... and I assume that I may need that, but feel a bit lost.
FWIW, the app behaves correctly when run out of Xcode.
Thanks in advance,
Tarun
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
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