5 Replies Latest reply on Sep 10, 2001 11:30 PM by hamish carpenter

    Persistent arrays of entity beans in an entity bean

    Lukasz Kowalczyk Newbie

      I would like to have one entity bean reference a few other entity beans. I implemented this as a public field being an array of entity bean remote interfaces and made this field a cmp-field in ejb-jar.xml file. Unfortunately, JBoss throws exceptions at me:

      [Tel] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
      No class found for oid.; nested exception is:
      java.rmi.ServerException: Load failed; nested exception is:
      No class found for oid.
      [Tel] java.rmi.ServerException: Load failed; nested exception is:
      [Tel] No class found for oid.
      [Tel] No class found for oid.
      [Tel] at org.postgresql.Connection.getObject(Connection.java:770)
      [Tel] at org.postgresql.jdbc2.Connection.getObject(Connection.java:525)
      [...]

      Is there any other way to implement one-to-many relation with CMP entity beans?