Cayenne JONAS and EJBs

From: Steve Rumbles (Steve.Rumble..wlh.nhs.uk)
Date: Fri Aug 13 2004 - 04:15:03 EDT

  • Next message: Tore Halset: "Re: Cayenne JONAS and EJBs"

    Sorry for the repeat but I posted this to the wrong mailing list yesterday!!

     

    I am trying to use a session bean with Cayenne (yipee no more Entity Beans)
    on JONAS 4.1.2. I have the cayenne.jar in JONAS_ROOT/lib/ext and the
    cayenne.xml in JONAS_ROOT. Currently Cayenne is using
    DriverDataSourceFactory not JNDI. The session bean can create an instance of
    a DataObject (not from the database) with "new org.resrec.card.Usermgt()" so
    the session bean has no problem finding the class within the ejb.jar.
    However as soon as the Session bean tries to get an instance from the
    database I get the following error thrown from the session bean

     

    org.objectstyle.cayenne.CayenneRuntimeException: [v.1.1B2 July 25 2004]
    Cannot find class org.resrec.card.Usermgt

     

    I am assuming that the cayenne.jar cannot find my classes. I did have this
    working a few weeks ago (without any problems whatsoever) when I was just
    messing around!! I would be grateful if anyone could give me some useful
    pointers as too what I've done wrong as I've been sitting here for two days
    going round in circles.

     

    Thanks

     

     

    Steve Rumbles

     

     

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    This e-mail is confidential and privileged.

    If you are not the intended recipient please accept our apologies;
    Please do not disclose, copy or distribute information in this e-mail
    or take any action in reliance on its contents:
    to do so is strictly prohibited and may be unlawful.

    Please inform us that this message has gone astray before deleting it.

    Thank you for your co-operation.

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



    This archive was generated by hypermail 2.0.0 : Fri Aug 13 2004 - 04:17:57 EDT