db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ojb-...@db.apache.org
Subject [DB OJB Wiki] Updated: YourQuestionHere
Date Sun, 16 May 2004 00:43:15 GMT
   Date: 2004-05-15T17:43:14
   Editor: 68.48.120.247 <>
   Wiki: DB OJB Wiki
   Page: YourQuestionHere
   URL: http://wiki.apache.org/db-ojb/YourQuestionHere

   Repost of Bug OJB260

Change Log:

------------------------------------------------------------------------------
@@ -1,3 +1,47 @@
+2004-05-15: All is not well in the land of Tomcat+Struts+OJB+Fedora Core release 1 (Yarrow)
+(This is a report of OJB Bug 260)
+
+Please send a useful tips to Jason A. Lunn <galactus@mac.com> in addition to leaving
answers here.
+
+Relevant System info:
+{{{
+Fedora Core release 1 (Yarrow) Linux localhost.localdomain 2.4.22-1.2188.nptl #1 Wed Apr
21 20:35:41 EDT 2004 i686 athlon i386 GNU/Linux}}}
+
+S/W environment:
+{{{
+jakarta-tomcat-4.1.30
+jakarta-struts-1.1
+j2sdk1.4.2
+apache-ant-1.6.0
+commons-collections-3.0
+commons-dbcp-1.1
+commons-dbutils-1.0
+commons-pool-1.1
+db-ojb-1.0.rc6
+}}}
+
+Problem: Every piece of sample code or home brew code that I try to use under struts that
make use of ojb generates this exception at runtime:
+{{{
+java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPool(PersistenceBrokerFactoryDefaultImpl.java:206)
at
+org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.<init>(PersistenceBrokerFactoryDefaultImpl.java:72)
at
+sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
+sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
+sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
+java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
+java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261)
at
+org.apache.ojb.broker.util.ClassHelper.newInstance(ClassHelper.java:39) at
+org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.init(PersistenceBrokerFactoryFactory.java:60)
at
+org.apache.ojb.broker.core.PersistenceBrokerFactoryFactory.<clinit>(PersistenceBrokerFactoryFactory.java:36)
at
+org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker(PersistenceBrokerFactory.java:65)

+
+....
+
+}}}
+
+I have included commons-collections.jar in both the WEB-INF/lib directory and tomcat/common/lib;
I have tried rebuilding commons-pool.jar after editing the source to reference org.apache.commons.collections.list.CursorableLinkedList
instead of the deprecated org.apache.commons.collections.CursorableLinkedList to no avail.
+
+---
+
 Hi all! [mehmet.sariyar@rizit.at @ 04.01.07:18:12:43 wrote]
 
 Although tried any modifications described in the "how-to's", I wasn't already able to build
up an

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message