The different implementations (PB, ODMG) all inherit from AbstractOjbImpl that in turn uses a datasource class. This datasource class is based on static methods. So if you have configured two implementations (PB and ODMG), the static methods of the datasource are called twice and this results in an error!
So there must be something wrong with this I guess ;)
Carsten
[EMAIL PROTECTED] wrote:
Author: cziegeler Date: Sat Feb 5 09:12:19 2005 New Revision: 151511
URL: http://svn.apache.org/viewcvs?view=rev&rev=151511 Log: Fix problems with ojb block: as the avalon data source uses static methods, we can only use one ojb implementation at a time.
Modified: cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf cocoon/trunk/src/blocks/ojb/java/org/apache/cocoon/ojb/components/AbstractOjbImpl.java
Modified: cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf?view=diff&r1=151510&r2=151511
==============================================================================
--- cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf (original)
+++ cocoon/trunk/src/blocks/ojb/WEB-INF/xconf/cocoon-ojb.xconf Sat Feb 5 09:12:19 2005
@@ -28,8 +28,8 @@
<!-- Include roles -->
<include src="resource://org/apache/cocoon/ojb/ojb.roles"/>
- <!-- ODMG Implementation Interface -->
- <ojb-odmg logger="core.ojb-odmg"/>
+ <!-- ODMG Implementation Interface + <ojb-odmg logger="core.ojb-odmg"/ -->
<!-- PersistenceBroker Interface -->
<ojb-pb logger="core.ojb-pb"/>