• 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: connection dictionary error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connection dictionary error


  • Subject: Re: connection dictionary error
  • From: John Larson <email@hidden>
  • Date: Wed, 2 Aug 2006 10:37:53 -0500

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
  • Follow-Ups:
    • Re: connection dictionary error
      • From: Tarun Reddy <email@hidden>
References: 
 >connection dictionary error (From: Tarun Reddy <email@hidden>)

  • Prev by Date: connection dictionary error
  • Next by Date: Re: Event update ; notice
  • Previous by thread: connection dictionary error
  • Next by thread: Re: connection dictionary error
  • Index(es):
    • Date
    • Thread