1 Reply Latest reply on Jul 1, 2003 5:12 PM by eddie07

    lookup of entity bean fails

    eddie07

      I have a problem looking up an entity bean from a client. The client source should be ok in general because it's possible to lookup other beans.
      The following exception is thrown:
      javax.naming.CommunicationException. Root exception is java.lang.ClassNotFoundException: fiz.examples.EBUser11biHome (no security manager: RMI class loader disabled)
      This means that lookup seems to find the correct bean but is not able to use it. When I am looking into the deployed jar file (which was deployed without an error message) I can see that the class file is part of the jar file (and the directory structure within it is also ok).
      I am pretty sure that I am doing something silly wrong, but I can't find out what.

      From jboss.xml:

      <ejb-name>EBUser11bi</ejb-name>
      <jndi-name>EBUser11biBean</jndi-name>
      <local-jndi-name>EBUser11biLocal</local-jndi-name>



      From jbosscmp-jdbc.xml:

      <ejb-name>EBUser11bi</ejb-name>
      <table-name>USER11BI</table-name>

      <cmp-field>
      <field-name>user_id</field-name>
      <column-name>USER_ID</column-name>

      </cmp-field>
      <cmp-field>
      <field-name>last_name</field-name>
      <column-name>LAST_NAME</column-name>

      </cmp-field>
      <cmp-field>
      <field-name>first_name</field-name>
      <column-name>FIRST_NAME</column-name>

      </cmp-field>
      <cmp-field>
      <field-name>address_id</field-name>
      <column-name>ADDRESS_ID</column-name>

      </cmp-field>

      <!-- merge point: jbosscmp-jdbc-load-{0}.xml -->



      and from ejb-jar.xml:

      [CDATA[]]

      <ejb-name>EBUser11bi</ejb-name>

      fiz.examples.EBUser11biHome
      fiz.examples.EBUser11bi
      <local-home>fiz.examples.EBUser11biLocalHome</local-home>
      fiz.examples.EBUser11biLocal

      <ejb-class>fiz.examples.EBUser11biCMP</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>User11bi_Schema</abstract-schema-name>
      <cmp-field >
      [CDATA[Returns the user_id]]
      <field-name>user_id</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Returns the last_name]]
      <field-name>last_name</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Returns the first_name]]
      <field-name>first_name</field-name>
      </cmp-field>
      <cmp-field >
      [CDATA[Returns the address_id]]
      <field-name>address_id</field-name>
      </cmp-field>
      <primkey-field>user_id</primkey-field>


      <query-method>
      <method-name>findAll</method-name>
      <method-params>
      </method-params>
      </query-method>
      <ejb-ql>[CDATA[SELECT OBJECT(a) FROM User11bi_Schema as a]]</ejb-ql>

      <!-- Write a file named ejb-finders-EBUser11biBean.xml if you want to define extra finders. -->


      I would appreciate any help,
      Eddie