Hello the list,
i'm new user of OJB. I'm trying to use ODMG API and i have some problem with OQL :
This is my code
                Collection userList = null;
                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 alluserentity from " + UserEntity.class.getName());

at runtime i have an exception :
java.lang.NoClassDefFoundError: antlr/RecognitionException
        at org.apache.ojb.odmg.OJB.newOQLQuery(Unknown Source)
        at 
com.sogitec.business.entity.impl.UserFactoryOJB.findAll(UserFactoryOJB.java:327)
        at 
com.sogitec.business.entity.impl.UserFactoryOJB.main(UserFactoryOJB.java:461)

What's wrong with my environment ?

regards, jp


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

Reply via email to