On May 11, 2005, at 9:56, Tore Halset wrote:
> Error during Configuration initialization. [v.1.2-dev May 10 2005]
> Load failures. Main configuration class:
> org.objectstyle.cayenne.conf.FileConfiguration, details:
> domain.node.name=fromnode,
> domain.node.adapter=org.objectstyle.cayenne.dba.sqlserver.SQLServerAda
> pter, reason: instantiating adapter failed -
> org.objectstyle.cayenne.dba.sqlserver.SQLServerAdapter
> domain.node.name=tonode,
> domain.node.adapter=org.objectstyle.cayenne.dba.derby.DerbyAdapter,
> reason: instantiating adapter failed -
> org.objectstyle.cayenne.dba.derby.DerbyAdapter
>
This seems to be a class loader problem.
The following hack in RuntimeLoadDelegate.shouldLoadDataNode(..)
maked data-port work.
//ClassLoader cl = Configuration.getResourceLoader();
ClassLoader cl = this.getClass().getClassLoader();
Class dbAdapterClass = (cl != null) ? cl.loadClass
(adapter) : Class
.forName(adapter);
Perhaps data-port should do a Configuration.setThreadClassLoader(..)?
Regards,
- Tore.
This archive was generated by hypermail 2.0.0 : Wed May 11 2005 - 05:34:28 EDT