DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31304

NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList

           Summary: NoClassDefFoundError:
                    org/apache/commons/collections/CursorableLinkedList
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

I am receiving the above error when I try to execute a JSP page which attempts
to access a MySQL database via a DataSource. The configuration is following the
JNDI reference in the documentation. I have experienced this with both 5.0.25
and 5.0.28.

Context initContext = new InitialContext();
Context envContext  = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/test");
  Statement stmt = null;
  ResultSet rs = null;
  Connection conn = null;
  try {
    conn = ds.getConnection();  <-- error occurs here

ApplicationDispatcher[/sportsweb] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/commons/collections/CursorableLinkedList
        at org.apache.commons.pool.impl.GenericObjectPool.<init>(Unknown Source)
        at org.apache.commons.pool.impl.GenericObjectPool.<init>(Unknown Source)
        at
org.apache.commons.dbcp.AbandonedObjectPool.<init>(AbandonedObjectPool.java:97)
        at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:545)
        at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
        at org.apache.jsp.dbtest_jsp._jspService(dbtest_jsp.java:58)
        
# java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)

Tomcat 5 was installed by extracting the tar.gz version and modifying the conf
files appropriately.

I have searched through the mailing list archive but can't find anything
regarding this. 

My common/lib directory containg commons-collections-3.1.jar as distributed with
Tomcat 5.0.28 (20 Sep 04)

Any help will be appreciated.

Thanks,
Peter Johnson

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to