0 Replies Latest reply on Aug 25, 2003 6:19 AM by wello007

    Jboss 3.2.1 deploy error

    wello007

      Hello
      When i try to deploy a CMP bean i get this error:

      14:07:03,410 WARN [verifier] EJB spec violation:
      Bean : Parent
      Section: 22.2
      Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the <ejb-class> element.
      Info : Class not found: test.domain.ejb.ParentCMP


      I take a look to my ejb-jar.xml file and there is no problem whith the fully qualified name:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      <ejb-jar >

      <![CDATA[No Description.]]>
      <display-name>Generated by XDoclet</display-name>

      <enterprise-beans>

      <!-- Session Beans -->
      <!--
      To add session beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called session-beans.xml that contains
      the markup for those beans.
      -->

      <!-- Entity Beans -->

      <![CDATA[]]>
      <ejb-name>Parent</ejb-name>
      test.domain.ejb.ParentHome
      test.domain.ejb.Parent
      <local-home>test.domain.ejb.ParentLocalHome</local-home>
      test.domain.ejb.ParentLocal
      <ejb-class>test.domain.ejb.ParentCMP</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.String</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>parent</abstract-schema-name>
      <cmp-field >
      <![CDATA[Returns the id]]>
      <field-name>id</field-name>
      </cmp-field>
      <cmp-field >
      <![CDATA[Returns the nom]]>
      <field-name>nom</field-name>
      </cmp-field>
      <cmp-field >
      <![CDATA[Returns the prenom]]>
      <field-name>prenom</field-name>
      </cmp-field>
      <primkey-field>id</primkey-field>

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

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


      <!--
      To add entity beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called entity-beans.xml that contains
      the markup for those beans.
      -->

      <!-- Message Driven Beans -->
      <!--
      To add message driven beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called message-driven-beans.xml that contains
      the <message-driven></message-driven> markup for those beans.
      -->

      </enterprise-beans>

      <!-- Relationships -->

      <!-- Assembly Descriptor -->
      <assembly-descriptor >
      <!--
      To add additional assembly descriptor info here, add a file to your
      XDoclet merge directory called assembly-descriptor.xml that contains
      the <assembly-descriptor></assembly-descriptor> markup.
      -->

      <!-- finder permissions -->

      <!-- transactions -->

      <!-- finder transactions -->
      </assembly-descriptor>

      </ejb-jar>