Re: Loading a database Plugin
Re: Loading a database Plugin
- Subject: Re: Loading a database Plugin
- From: Chuck Hill <email@hidden>
- Date: Mon, 11 Apr 2005 16:16:41 -0700
First off, it has to be in the package com.webobjects.jdbcadaptor
before it can get loaded automatically. Second, it has to have the
right name. I'm guessing that Db2PlugIn is the correct name. The
easiest thing is to just avoid the magic and add
plugin="my.package.name.DB2DatabasePlugin" to the connection
dictionary. The package name and class name has to be exact.
For still more options, see PracticalWebObjects pg 56.
Chuck
On Apr 11, 2005, at 4:05 PM, James Cicenia wrote:
Hello -
I am trying to work on a database plugin, however, it doesn't seem to
find it. I created a separate framework for the plugin. Then I
included the framework in eclipse under WOFrameworks. Is this correct?
Is it enough?
Here is the error:
Plugin is db2databaseplugin
[2005-03-29 13:10:58 CST] <main> An exception occurred while trying to
open a channel: java.lang.IllegalStateException: Unable to load
JDBCPlugIn 'db2databaseplugin' for JDBCAdaptor@144741. Check your
connection dictionary and make sure the specified JDBCPlugIn subclass
is in your classpath.
[2005-03-29 13:10:58 CST] <main> A fatal exception occurred:
_obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@3a5635: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
[2005-03-29 13:10:58 CST] <main> java.lang.IllegalStateException:
_obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@3a5635: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
Any thoughts
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development 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