Hi,

I'm trying to get OJB running in a servlet application against an oracle DB. I followed all the steps provided by the documentation.

But when I run the application I always get the error messages:

org.apache.ojb.odmg.collections.DListImpl not found in OJB Repository

The test code to start a retrieval query is:

try {

                // 1. open a transaction
                Transaction tx = odmg.newTransaction();
                tx.begin();

                // 2. get an OQLQuery object from the ODMG facade
                OQLQuery query = odmg.newOQLQuery();

// 3. set the OQL select statement
query.create(
"select allMerkmalDefs from " + MerkmalDef.class.getName());


                // 4. perform the query and store the result
                // in a persistent Collection
                DList allMerkmalDefs = (DList) query.execute();
                tx.commit();

                // 5. now iterate over the result to print each product
                java.util.Iterator iter = allMerkmalDefs.iterator();
                while (iter.hasNext()) {
                    System.out.println(iter.next());
                }
            } catch (Throwable t) {
                log.error(t.getMessage());
            }

My first thought was that the message indicates missing internal tables for OJB (OJB repository?). But after running the torquee skript as explained in http://db.apache.org/ojb/platforms.html nothing changed.

Any hints would be very helpful.

Thanks in advance
Franz


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



Reply via email to