1 2 Previous Next 15 Replies Latest reply on May 20, 2003 12:52 AM by vashistvishal

    Deployment Error : EJB Spec violation

      Hi all,

      I am having this deployment error when deploying a CMP bean.

      Error :
      -------
      23:01:57,269 INFO [MainDeployer] Undeployed file:/opt/jboss/jboss-3.2.1/server/all/deploy/MyBank.jar
      23:02:02,290 INFO [MainDeployer] Starting deployment of package: file:/opt/jboss/jboss-3.2.1/server/all/deploy/MyBank.jar
      23:02:03,707 WARN [verifier] EJB spec violation:
      Bean : Account
      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: cmp.AccountCMP

      23:02:03,709 ERROR [MainDeployer] could not create deployment: file:/opt/jboss/jboss-3.2.1/server/all/deploy/MyBank.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.


      Now I have looked into my ejb-jar file but cannot understand whats wrong in that.

      my bean is in pacakge cmp called Account.

      Snippet from ejb-jar file.
      ----------------------------

      <![CDATA[]]>

      <ejb-name>Account</ejb-name>

      cmp.AccountHome
      cmp.Account
      <local-home>cmp.AccountLocalHome</local-home>
      cmp.AccountLocal

      <ejb-class>cmp.AccountCMP</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>account</abstract-schema-name>
      ---------------------

      Now it is complaning about fully qualified name, there is no other directory now.
      I am using eclipse for this and this cmp package is under BankApp project.

      Cany anyone help me with this.

      Cheers....
      Thanks in advance

        • 1. Re: Deployment Error : EJB Spec violation

          Post the output of bank.jar

          Does your source look something like this

          package cmp;
          ...
          public class Account
          ...

          Regards,
          Adrian

          • 2. Re: Deployment Error : EJB Spec violation

            That should be the output of
            jar -tf bank.jar

            Regards,
            Adrian

            • 3. Re: Deployment Error : EJB Spec violation


              Hi Adrian,

              The o/p of MyBank.jar is
              -----------------------------
              jar -tf MyBank.jar
              META-INF/
              META-INF/MANIFEST.MF
              META-INF/targets.xml
              META-INF/ejb-jar.xml
              META-INF/mapping.xml
              META-INF/weblogic-ejb-jar.xml
              META-INF/weblogic-cmp-rdbms-jar.xml
              META-INF/jboss.xml
              META-INF/jbosscmp-jdbc.xml
              META-INF/jrun-ejb-jar.xml
              META-INF/ibm-ejb-jar-bnd.xmi
              META-INF/ibm-ejb-jar-ext.xmi
              META-INF/Schema.dbxmi
              META-INF/jonas-ejb-jar.xml
              META-INF/orion-ejb-jar.xml


              Also as u mentioned, my Account .java
              is in package cmp.
              so iam importing taht package in Account.



              Contents of jboss.xml
              -------------------------

              <unauthenticated-principal>nobody</unauthenticated-principal>
              <enterprise-beans>

              <ejb-name>Account</ejb-name>
              <jndi-name>AccountBean</jndi-name>
              <local-jndi-name>AccountLocal</local-jndi-name>

              </enterprise-beans>
              <resource-managers>
              </resource-managers>



              Contents of ejb-jar.xml
              ---------------------------
              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>Account</ejb-name>

              cmp.AccountHome
              cmp.Account
              <local-home>cmp.AccountLocalHome</local-home>
              cmp.AccountLocal

              <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
              <cmp-field >
              <![CDATA[Returns the acctnumber]]>
              <field-name>acctnumber</field-name>
              </cmp-field>
              <cmp-field >
              <![CDATA[Returns the customerID]]>
              <field-name>customerID</field-name>
              </cmp-field>
              <cmp-field >
              <![CDATA[Returns the description]]>
              <field-name>description</field-name>
              </cmp-field>
              <cmp-field >
              <![CDATA[Returns the balance]]>
              <field-name>balance</field-name>
              </cmp-field>
              <primkey-field>acctnumber</primkey-field>

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


              <query-method>
              <method-name>findByCustomerID</method-name>
              <method-params>
              <method-param>String</method-param>
              </method-params>
              </query-method>
              <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



              I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


              I hope this info will help to solve this problem I facing, with no clues to me.

              Cheers....
              Vishal

              • 4. Re: Deployment Error : EJB Spec violation


                Hi Adrian,

                The o/p of MyBank.jar is
                -----------------------------
                jar -tf MyBank.jar
                META-INF/
                META-INF/MANIFEST.MF
                META-INF/targets.xml
                META-INF/ejb-jar.xml
                META-INF/mapping.xml
                META-INF/weblogic-ejb-jar.xml
                META-INF/weblogic-cmp-rdbms-jar.xml
                META-INF/jboss.xml
                META-INF/jbosscmp-jdbc.xml
                META-INF/jrun-ejb-jar.xml
                META-INF/ibm-ejb-jar-bnd.xmi
                META-INF/ibm-ejb-jar-ext.xmi
                META-INF/Schema.dbxmi
                META-INF/jonas-ejb-jar.xml
                META-INF/orion-ejb-jar.xml


                Also as u mentioned, my Account .java
                is in package cmp.
                so iam importing taht package in Account.



                Contents of jboss.xml
                -------------------------

                <unauthenticated-principal>nobody</unauthenticated-principal>
                <enterprise-beans>

                <ejb-name>Account</ejb-name>
                <jndi-name>AccountBean</jndi-name>
                <local-jndi-name>AccountLocal</local-jndi-name>

                </enterprise-beans>
                <resource-managers>
                </resource-managers>



                Contents of ejb-jar.xml
                ---------------------------
                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>Account</ejb-name>

                cmp.AccountHome
                cmp.Account
                <local-home>cmp.AccountLocalHome</local-home>
                cmp.AccountLocal

                <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                <cmp-field >
                <![CDATA[Returns the acctnumber]]>
                <field-name>acctnumber</field-name>
                </cmp-field>
                <cmp-field >
                <![CDATA[Returns the customerID]]>
                <field-name>customerID</field-name>
                </cmp-field>
                <cmp-field >
                <![CDATA[Returns the description]]>
                <field-name>description</field-name>
                </cmp-field>
                <cmp-field >
                <![CDATA[Returns the balance]]>
                <field-name>balance</field-name>
                </cmp-field>
                <primkey-field>acctnumber</primkey-field>

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


                <query-method>
                <method-name>findByCustomerID</method-name>
                <method-params>
                <method-param>String</method-param>
                </method-params>
                </query-method>
                <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                I hope this info will help to solve this problem I facing, with no clues to me.

                Cheers....
                Vishal

                • 5. Re: Deployment Error : EJB Spec violation


                  Hi Adrian,

                  The o/p of MyBank.jar is
                  -----------------------------
                  jar -tf MyBank.jar
                  META-INF/
                  META-INF/MANIFEST.MF
                  META-INF/targets.xml
                  META-INF/ejb-jar.xml
                  META-INF/mapping.xml
                  META-INF/weblogic-ejb-jar.xml
                  META-INF/weblogic-cmp-rdbms-jar.xml
                  META-INF/jboss.xml
                  META-INF/jbosscmp-jdbc.xml
                  META-INF/jrun-ejb-jar.xml
                  META-INF/ibm-ejb-jar-bnd.xmi
                  META-INF/ibm-ejb-jar-ext.xmi
                  META-INF/Schema.dbxmi
                  META-INF/jonas-ejb-jar.xml
                  META-INF/orion-ejb-jar.xml


                  Also as u mentioned, my Account .java
                  is in package cmp.
                  so iam importing taht package in Account.



                  Contents of jboss.xml
                  -------------------------

                  <unauthenticated-principal>nobody</unauthenticated-principal>
                  <enterprise-beans>

                  <ejb-name>Account</ejb-name>
                  <jndi-name>AccountBean</jndi-name>
                  <local-jndi-name>AccountLocal</local-jndi-name>

                  </enterprise-beans>
                  <resource-managers>
                  </resource-managers>



                  Contents of ejb-jar.xml
                  ---------------------------
                  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>Account</ejb-name>

                  cmp.AccountHome
                  cmp.Account
                  <local-home>cmp.AccountLocalHome</local-home>
                  cmp.AccountLocal

                  <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                  <cmp-field >
                  <![CDATA[Returns the acctnumber]]>
                  <field-name>acctnumber</field-name>
                  </cmp-field>
                  <cmp-field >
                  <![CDATA[Returns the customerID]]>
                  <field-name>customerID</field-name>
                  </cmp-field>
                  <cmp-field >
                  <![CDATA[Returns the description]]>
                  <field-name>description</field-name>
                  </cmp-field>
                  <cmp-field >
                  <![CDATA[Returns the balance]]>
                  <field-name>balance</field-name>
                  </cmp-field>
                  <primkey-field>acctnumber</primkey-field>

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


                  <query-method>
                  <method-name>findByCustomerID</method-name>
                  <method-params>
                  <method-param>String</method-param>
                  </method-params>
                  </query-method>
                  <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                  I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                  I hope this info will help to solve this problem I facing, with no clues to me.

                  Cheers....
                  Vishal

                  • 6. Re: Deployment Error : EJB Spec violation


                    Hi Adrian,

                    The o/p of MyBank.jar is
                    -----------------------------
                    jar -tf MyBank.jar
                    META-INF/
                    META-INF/MANIFEST.MF
                    META-INF/targets.xml
                    META-INF/ejb-jar.xml
                    META-INF/mapping.xml
                    META-INF/weblogic-ejb-jar.xml
                    META-INF/weblogic-cmp-rdbms-jar.xml
                    META-INF/jboss.xml
                    META-INF/jbosscmp-jdbc.xml
                    META-INF/jrun-ejb-jar.xml
                    META-INF/ibm-ejb-jar-bnd.xmi
                    META-INF/ibm-ejb-jar-ext.xmi
                    META-INF/Schema.dbxmi
                    META-INF/jonas-ejb-jar.xml
                    META-INF/orion-ejb-jar.xml


                    Also as u mentioned, my Account .java
                    is in package cmp.
                    so iam importing taht package in Account.



                    Contents of jboss.xml
                    -------------------------

                    <unauthenticated-principal>nobody</unauthenticated-principal>
                    <enterprise-beans>

                    <ejb-name>Account</ejb-name>
                    <jndi-name>AccountBean</jndi-name>
                    <local-jndi-name>AccountLocal</local-jndi-name>

                    </enterprise-beans>
                    <resource-managers>
                    </resource-managers>



                    Contents of ejb-jar.xml
                    ---------------------------
                    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>Account</ejb-name>

                    cmp.AccountHome
                    cmp.Account
                    <local-home>cmp.AccountLocalHome</local-home>
                    cmp.AccountLocal

                    <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                    <cmp-field >
                    <![CDATA[Returns the acctnumber]]>
                    <field-name>acctnumber</field-name>
                    </cmp-field>
                    <cmp-field >
                    <![CDATA[Returns the customerID]]>
                    <field-name>customerID</field-name>
                    </cmp-field>
                    <cmp-field >
                    <![CDATA[Returns the description]]>
                    <field-name>description</field-name>
                    </cmp-field>
                    <cmp-field >
                    <![CDATA[Returns the balance]]>
                    <field-name>balance</field-name>
                    </cmp-field>
                    <primkey-field>acctnumber</primkey-field>

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


                    <query-method>
                    <method-name>findByCustomerID</method-name>
                    <method-params>
                    <method-param>String</method-param>
                    </method-params>
                    </query-method>
                    <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                    I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                    I hope this info will help to solve this problem I facing, with no clues to me.

                    Cheers....
                    Vishal

                    • 7. Re: Deployment Error : EJB Spec violation


                      Hi Adrian,

                      The o/p of MyBank.jar is
                      -----------------------------
                      jar -tf MyBank.jar
                      META-INF/
                      META-INF/MANIFEST.MF
                      META-INF/targets.xml
                      META-INF/ejb-jar.xml
                      META-INF/mapping.xml
                      META-INF/weblogic-ejb-jar.xml
                      META-INF/weblogic-cmp-rdbms-jar.xml
                      META-INF/jboss.xml
                      META-INF/jbosscmp-jdbc.xml
                      META-INF/jrun-ejb-jar.xml
                      META-INF/ibm-ejb-jar-bnd.xmi
                      META-INF/ibm-ejb-jar-ext.xmi
                      META-INF/Schema.dbxmi
                      META-INF/jonas-ejb-jar.xml
                      META-INF/orion-ejb-jar.xml


                      Also as u mentioned, my Account .java
                      is in package cmp.
                      so iam importing taht package in Account.



                      Contents of jboss.xml
                      -------------------------

                      <unauthenticated-principal>nobody</unauthenticated-principal>
                      <enterprise-beans>

                      <ejb-name>Account</ejb-name>
                      <jndi-name>AccountBean</jndi-name>
                      <local-jndi-name>AccountLocal</local-jndi-name>

                      </enterprise-beans>
                      <resource-managers>
                      </resource-managers>



                      Contents of ejb-jar.xml
                      ---------------------------
                      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>Account</ejb-name>

                      cmp.AccountHome
                      cmp.Account
                      <local-home>cmp.AccountLocalHome</local-home>
                      cmp.AccountLocal

                      <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                      <cmp-field >
                      <![CDATA[Returns the acctnumber]]>
                      <field-name>acctnumber</field-name>
                      </cmp-field>
                      <cmp-field >
                      <![CDATA[Returns the customerID]]>
                      <field-name>customerID</field-name>
                      </cmp-field>
                      <cmp-field >
                      <![CDATA[Returns the description]]>
                      <field-name>description</field-name>
                      </cmp-field>
                      <cmp-field >
                      <![CDATA[Returns the balance]]>
                      <field-name>balance</field-name>
                      </cmp-field>
                      <primkey-field>acctnumber</primkey-field>

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


                      <query-method>
                      <method-name>findByCustomerID</method-name>
                      <method-params>
                      <method-param>String</method-param>
                      </method-params>
                      </query-method>
                      <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                      I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                      I hope this info will help to solve this problem I facing, with no clues to me.

                      Cheers....
                      Vishal

                      • 8. Re: Deployment Error : EJB Spec violation


                        Hi Adrian,

                        The o/p of MyBank.jar is
                        -----------------------------
                        jar -tf MyBank.jar
                        META-INF/
                        META-INF/MANIFEST.MF
                        META-INF/targets.xml
                        META-INF/ejb-jar.xml
                        META-INF/mapping.xml
                        META-INF/weblogic-ejb-jar.xml
                        META-INF/weblogic-cmp-rdbms-jar.xml
                        META-INF/jboss.xml
                        META-INF/jbosscmp-jdbc.xml
                        META-INF/jrun-ejb-jar.xml
                        META-INF/ibm-ejb-jar-bnd.xmi
                        META-INF/ibm-ejb-jar-ext.xmi
                        META-INF/Schema.dbxmi
                        META-INF/jonas-ejb-jar.xml
                        META-INF/orion-ejb-jar.xml


                        Also as u mentioned, my Account .java
                        is in package cmp.
                        so iam importing taht package in Account.



                        Contents of jboss.xml
                        -------------------------

                        <unauthenticated-principal>nobody</unauthenticated-principal>
                        <enterprise-beans>

                        <ejb-name>Account</ejb-name>
                        <jndi-name>AccountBean</jndi-name>
                        <local-jndi-name>AccountLocal</local-jndi-name>

                        </enterprise-beans>
                        <resource-managers>
                        </resource-managers>



                        Contents of ejb-jar.xml
                        ---------------------------
                        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>Account</ejb-name>

                        cmp.AccountHome
                        cmp.Account
                        <local-home>cmp.AccountLocalHome</local-home>
                        cmp.AccountLocal

                        <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                        <cmp-field >
                        <![CDATA[Returns the acctnumber]]>
                        <field-name>acctnumber</field-name>
                        </cmp-field>
                        <cmp-field >
                        <![CDATA[Returns the customerID]]>
                        <field-name>customerID</field-name>
                        </cmp-field>
                        <cmp-field >
                        <![CDATA[Returns the description]]>
                        <field-name>description</field-name>
                        </cmp-field>
                        <cmp-field >
                        <![CDATA[Returns the balance]]>
                        <field-name>balance</field-name>
                        </cmp-field>
                        <primkey-field>acctnumber</primkey-field>

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


                        <query-method>
                        <method-name>findByCustomerID</method-name>
                        <method-params>
                        <method-param>String</method-param>
                        </method-params>
                        </query-method>
                        <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                        I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                        I hope this info will help to solve this problem I facing, with no clues to me.

                        Cheers....
                        Vishal

                        • 9. Re: Deployment Error : EJB Spec violation


                          Hi Adrian,

                          The o/p of MyBank.jar is
                          -----------------------------
                          jar -tf MyBank.jar
                          META-INF/
                          META-INF/MANIFEST.MF
                          META-INF/targets.xml
                          META-INF/ejb-jar.xml
                          META-INF/mapping.xml
                          META-INF/weblogic-ejb-jar.xml
                          META-INF/weblogic-cmp-rdbms-jar.xml
                          META-INF/jboss.xml
                          META-INF/jbosscmp-jdbc.xml
                          META-INF/jrun-ejb-jar.xml
                          META-INF/ibm-ejb-jar-bnd.xmi
                          META-INF/ibm-ejb-jar-ext.xmi
                          META-INF/Schema.dbxmi
                          META-INF/jonas-ejb-jar.xml
                          META-INF/orion-ejb-jar.xml


                          Also as u mentioned, my Account .java
                          is in package cmp.
                          so iam importing taht package in Account.



                          Contents of jboss.xml
                          -------------------------

                          <unauthenticated-principal>nobody</unauthenticated-principal>
                          <enterprise-beans>

                          <ejb-name>Account</ejb-name>
                          <jndi-name>AccountBean</jndi-name>
                          <local-jndi-name>AccountLocal</local-jndi-name>

                          </enterprise-beans>
                          <resource-managers>
                          </resource-managers>



                          Contents of ejb-jar.xml
                          ---------------------------
                          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>Account</ejb-name>

                          cmp.AccountHome
                          cmp.Account
                          <local-home>cmp.AccountLocalHome</local-home>
                          cmp.AccountLocal

                          <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>



                          I haven't included the assembly descriptorand other in this snippet as it is complaining about <ejb-class> tag.


                          I hope this info will help to solve this problem I facing, with no clues to me.

                          Cheers....
                          Vishal

                          • 10. Re: Deployment Error : EJB Spec violation


                            Hi Adrian,

                            The o/p of MyBank.jar is
                            -----------------------------
                            jar -tf MyBank.jar
                            META-INF/
                            META-INF/MANIFEST.MF
                            META-INF/targets.xml
                            META-INF/ejb-jar.xml
                            META-INF/mapping.xml
                            META-INF/weblogic-ejb-jar.xml
                            META-INF/weblogic-cmp-rdbms-jar.xml
                            META-INF/jboss.xml
                            META-INF/jbosscmp-jdbc.xml
                            META-INF/jrun-ejb-jar.xml
                            META-INF/ibm-ejb-jar-bnd.xmi
                            META-INF/ibm-ejb-jar-ext.xmi
                            META-INF/Schema.dbxmi
                            META-INF/jonas-ejb-jar.xml
                            META-INF/orion-ejb-jar.xml


                            Also as u mentioned, my Account .java
                            is in package cmp.
                            so iam importing taht package in Account.



                            Contents of jboss.xml
                            -------------------------

                            <unauthenticated-principal>nobody</unauthenticated-principal>
                            <enterprise-beans>

                            <ejb-name>Account</ejb-name>
                            <jndi-name>AccountBean</jndi-name>
                            <local-jndi-name>AccountLocal</local-jndi-name>

                            </enterprise-beans>
                            <resource-managers>
                            </resource-managers>



                            Contents of ejb-jar.xml
                            ---------------------------
                            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>Account</ejb-name>

                            cmp.AccountHome
                            cmp.Account
                            <local-home>cmp.AccountLocalHome</local-home>
                            cmp.AccountLocal

                            <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                            <cmp-field >
                            <![CDATA[Returns the acctnumber]]>
                            <field-name>acctnumber</field-name>
                            </cmp-field>
                            <cmp-field >
                            <![CDATA[Returns the customerID]]>
                            <field-name>customerID</field-name>
                            </cmp-field>
                            <cmp-field >
                            <![CDATA[Returns the description]]>
                            <field-name>description</field-name>
                            </cmp-field>
                            <cmp-field >
                            <![CDATA[Returns the balance]]>
                            <field-name>balance</field-name>
                            </cmp-field>
                            <primkey-field>acctnumber</primkey-field>

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


                            <query-method>
                            <method-name>findByCustomerID</method-name>
                            <method-params>
                            <method-param>String</method-param>
                            </method-params>
                            </query-method>
                            <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                            I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                            I hope this info will help to solve this problem I facing, with no clues to me.

                            Cheers....
                            Vishal

                            • 11. Re: Deployment Error : EJB Spec violation


                              Hi Adrian,

                              The o/p of MyBank.jar is
                              -----------------------------
                              jar -tf MyBank.jar
                              META-INF/
                              META-INF/MANIFEST.MF
                              META-INF/targets.xml
                              META-INF/ejb-jar.xml
                              META-INF/mapping.xml
                              META-INF/weblogic-ejb-jar.xml
                              META-INF/weblogic-cmp-rdbms-jar.xml
                              META-INF/jboss.xml
                              META-INF/jbosscmp-jdbc.xml
                              META-INF/jrun-ejb-jar.xml
                              META-INF/ibm-ejb-jar-bnd.xmi
                              META-INF/ibm-ejb-jar-ext.xmi
                              META-INF/Schema.dbxmi
                              META-INF/jonas-ejb-jar.xml
                              META-INF/orion-ejb-jar.xml


                              Also as u mentioned, my Account .java
                              is in package cmp.
                              so iam importing taht package in Account.



                              Contents of jboss.xml
                              -------------------------

                              <unauthenticated-principal>nobody</unauthenticated-principal>
                              <enterprise-beans>

                              <ejb-name>Account</ejb-name>
                              <jndi-name>AccountBean</jndi-name>
                              <local-jndi-name>AccountLocal</local-jndi-name>

                              </enterprise-beans>
                              <resource-managers>
                              </resource-managers>



                              Contents of ejb-jar.xml
                              ---------------------------
                              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>Account</ejb-name>

                              cmp.AccountHome
                              cmp.Account
                              <local-home>cmp.AccountLocalHome</local-home>
                              cmp.AccountLocal

                              <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                              <cmp-field >
                              <![CDATA[Returns the acctnumber]]>
                              <field-name>acctnumber</field-name>
                              </cmp-field>
                              <cmp-field >
                              <![CDATA[Returns the customerID]]>
                              <field-name>customerID</field-name>
                              </cmp-field>
                              <cmp-field >
                              <![CDATA[Returns the description]]>
                              <field-name>description</field-name>
                              </cmp-field>
                              <cmp-field >
                              <![CDATA[Returns the balance]]>
                              <field-name>balance</field-name>
                              </cmp-field>
                              <primkey-field>acctnumber</primkey-field>

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


                              <query-method>
                              <method-name>findByCustomerID</method-name>
                              <method-params>
                              <method-param>String</method-param>
                              </method-params>
                              </query-method>
                              <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                              I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                              I hope this info will help to solve this problem I facing, with no clues to me.

                              Cheers....
                              Vishal

                              • 12. Re: Deployment Error : EJB Spec violation


                                Hi Adrian,

                                The o/p of MyBank.jar is
                                -----------------------------
                                jar -tf MyBank.jar
                                META-INF/
                                META-INF/MANIFEST.MF
                                META-INF/targets.xml
                                META-INF/ejb-jar.xml
                                META-INF/mapping.xml
                                META-INF/weblogic-ejb-jar.xml
                                META-INF/weblogic-cmp-rdbms-jar.xml
                                META-INF/jboss.xml
                                META-INF/jbosscmp-jdbc.xml
                                META-INF/jrun-ejb-jar.xml
                                META-INF/ibm-ejb-jar-bnd.xmi
                                META-INF/ibm-ejb-jar-ext.xmi
                                META-INF/Schema.dbxmi
                                META-INF/jonas-ejb-jar.xml
                                META-INF/orion-ejb-jar.xml


                                Also as u mentioned, my Account .java
                                is in package cmp.
                                so iam importing taht package in Account.



                                Contents of jboss.xml
                                -------------------------

                                <unauthenticated-principal>nobody</unauthenticated-principal>
                                <enterprise-beans>

                                <ejb-name>Account</ejb-name>
                                <jndi-name>AccountBean</jndi-name>
                                <local-jndi-name>AccountLocal</local-jndi-name>

                                </enterprise-beans>
                                <resource-managers>
                                </resource-managers>



                                Contents of ejb-jar.xml
                                ---------------------------
                                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>Account</ejb-name>

                                cmp.AccountHome
                                cmp.Account
                                <local-home>cmp.AccountLocalHome</local-home>
                                cmp.AccountLocal

                                <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                                <cmp-field >
                                <![CDATA[Returns the acctnumber]]>
                                <field-name>acctnumber</field-name>
                                </cmp-field>
                                <cmp-field >
                                <![CDATA[Returns the customerID]]>
                                <field-name>customerID</field-name>
                                </cmp-field>
                                <cmp-field >
                                <![CDATA[Returns the description]]>
                                <field-name>description</field-name>
                                </cmp-field>
                                <cmp-field >
                                <![CDATA[Returns the balance]]>
                                <field-name>balance</field-name>
                                </cmp-field>
                                <primkey-field>acctnumber</primkey-field>

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


                                <query-method>
                                <method-name>findByCustomerID</method-name>
                                <method-params>
                                <method-param>String</method-param>
                                </method-params>
                                </query-method>
                                <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                                I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                                I hope this info will help to solve this problem I facing, with no clues to me.

                                Cheers....
                                Vishal

                                • 13. Re: Deployment Error : EJB Spec violation


                                  Hi Adrian,

                                  The o/p of MyBank.jar is
                                  -----------------------------
                                  jar -tf MyBank.jar
                                  META-INF/
                                  META-INF/MANIFEST.MF
                                  META-INF/targets.xml
                                  META-INF/ejb-jar.xml
                                  META-INF/mapping.xml
                                  META-INF/weblogic-ejb-jar.xml
                                  META-INF/weblogic-cmp-rdbms-jar.xml
                                  META-INF/jboss.xml
                                  META-INF/jbosscmp-jdbc.xml
                                  META-INF/jrun-ejb-jar.xml
                                  META-INF/ibm-ejb-jar-bnd.xmi
                                  META-INF/ibm-ejb-jar-ext.xmi
                                  META-INF/Schema.dbxmi
                                  META-INF/jonas-ejb-jar.xml
                                  META-INF/orion-ejb-jar.xml


                                  Also as u mentioned, my Account .java
                                  is in package cmp.
                                  so iam importing taht package in Account.



                                  Contents of jboss.xml
                                  -------------------------

                                  <unauthenticated-principal>nobody</unauthenticated-principal>
                                  <enterprise-beans>

                                  <ejb-name>Account</ejb-name>
                                  <jndi-name>AccountBean</jndi-name>
                                  <local-jndi-name>AccountLocal</local-jndi-name>

                                  </enterprise-beans>
                                  <resource-managers>
                                  </resource-managers>



                                  Contents of ejb-jar.xml
                                  ---------------------------
                                  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>Account</ejb-name>

                                  cmp.AccountHome
                                  cmp.Account
                                  <local-home>cmp.AccountLocalHome</local-home>
                                  cmp.AccountLocal

                                  <ejb-class>BankApp.ejbsrc.cmp.AccountCMP</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>account</abstract-schema-name>
                                  <cmp-field >
                                  <![CDATA[Returns the acctnumber]]>
                                  <field-name>acctnumber</field-name>
                                  </cmp-field>
                                  <cmp-field >
                                  <![CDATA[Returns the customerID]]>
                                  <field-name>customerID</field-name>
                                  </cmp-field>
                                  <cmp-field >
                                  <![CDATA[Returns the description]]>
                                  <field-name>description</field-name>
                                  </cmp-field>
                                  <cmp-field >
                                  <![CDATA[Returns the balance]]>
                                  <field-name>balance</field-name>
                                  </cmp-field>
                                  <primkey-field>acctnumber</primkey-field>

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


                                  <query-method>
                                  <method-name>findByCustomerID</method-name>
                                  <method-params>
                                  <method-param>String</method-param>
                                  </method-params>
                                  </query-method>
                                  <ejb-ql><![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]></ejb-ql>



                                  I haven't included the assembly decriptor in this snippet as it is complaining about <ejb-class> tag.


                                  I hope this info will help to solve this problem I facing, with no clues to me.

                                  Cheers....
                                  Vishal

                                  • 14. Re: Deployment Error : EJB Spec violation


                                    Hi Adrian,

                                    The o/p of MyBank.jar is
                                    -----------------------------
                                    jar -tf MyBank.jar
                                    META-INF/
                                    META-INF/MANIFEST.MF
                                    META-INF/targets.xml
                                    META-INF/ejb-jar.xml
                                    META-INF/mapping.xml
                                    META-INF/weblogic-ejb-jar.xml
                                    META-INF/weblogic-cmp-rdbms-jar.xml
                                    META-INF/jboss.xml
                                    META-INF/jbosscmp-jdbc.xml
                                    META-INF/jrun-ejb-jar.xml
                                    META-INF/ibm-ejb-jar-bnd.xmi
                                    META-INF/ibm-ejb-jar-ext.xmi
                                    META-INF/Schema.dbxmi
                                    META-INF/jonas-ejb-jar.xml
                                    META-INF/orion-ejb-jar.xml


                                    Also as u mentioned, my Account .java
                                    is in package cmp.
                                    so iam importing taht package in Account.



                                    Contents of jboss.xml
                                    -------------------------
                                    &lt;jboss&gt;
                                    &lt;unauthenticated-principal&gt;nobody&lt;/unauthenticated-principal&gt;
                                    &lt;enterprise-beans&gt;
                                    &lt;entity&gt;
                                    &lt;ejb-name&gt;Account&lt;/ejb-name&gt;
                                    &lt;jndi-name&gt;AccountBean&lt;/jndi-name&gt;
                                    &lt;local-jndi-name&gt;AccountLocal&lt;/local-jndi-name&gt;
                                    &lt;/entity&gt;
                                    &lt;/enterprise-beans&gt;
                                    &lt;resource-managers&gt;
                                    &lt;/resource-managers&gt;
                                    &lt;/jboss&gt;


                                    Contents of ejb-jar.xml
                                    ---------------------------
                                    ejb-jar &gt;

                                    &lt;description&gt;&lt;![CDATA[No Description.]]&gt;&lt;/description&gt;
                                    &lt;display-name&gt;Generated by XDoclet&lt;/display-name&gt;

                                    &lt;enterprise-beans&gt;

                                    &lt;!-- Session Beans --&gt;
                                    &lt;!--
                                    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 &lt;session&gt;&lt;/session&gt; markup for those beans.
                                    --&gt;

                                    &lt;!-- Entity Beans --&gt;
                                    &lt;entity &gt;
                                    &lt;description&gt;&lt;![CDATA[]]&gt;&lt;/description&gt;

                                    &lt;ejb-name&gt;Account&lt;/ejb-name&gt;

                                    &lt;home&gt;cmp.AccountHome&lt;/home&gt;
                                    &lt;remote&gt;cmp.Account&lt;/remote&gt;
                                    &lt;local-home&gt;cmp.AccountLocalHome&lt;/local-home&gt;
                                    &lt;local&gt;cmp.AccountLocal&lt;/local&gt;

                                    &lt;ejb-class&gt;BankApp.ejbsrc.cmp.AccountCMP&lt;/ejb-class&gt;
                                    &lt;persistence-type&gt;Container&lt;/persistence-type&gt;
                                    &lt;prim-key-class&gt;java.lang.String&lt;/prim-key-class&gt;
                                    &lt;reentrant&gt;False&lt;/reentrant&gt;
                                    &lt;cmp-version&gt;2.x&lt;/cmp-version&gt;
                                    &lt;abstract-schema-name&gt;account&lt;/abstract-schema-name&gt;
                                    &lt;cmp-field &gt;
                                    &lt;description&gt;&lt;![CDATA[Returns the acctnumber]]&gt;&lt;/description&gt;
                                    &lt;field-name&gt;acctnumber&lt;/field-name&gt;
                                    &lt;/cmp-field&gt;
                                    &lt;cmp-field &gt;
                                    &lt;description&gt;&lt;![CDATA[Returns the customerID]]&gt;&lt;/description&gt;
                                    &lt;field-name&gt;customerID&lt;/field-name&gt;
                                    &lt;/cmp-field&gt;
                                    &lt;cmp-field &gt;
                                    &lt;description&gt;&lt;![CDATA[Returns the description]]&gt;&lt;/description&gt;
                                    &lt;field-name&gt;description&lt;/field-name&gt;
                                    &lt;/cmp-field&gt;
                                    &lt;cmp-field &gt;
                                    &lt;description&gt;&lt;![CDATA[Returns the balance]]&gt;&lt;/description&gt;
                                    &lt;field-name&gt;balance&lt;/field-name&gt;
                                    &lt;/cmp-field&gt;
                                    &lt;primkey-field&gt;acctnumber&lt;/primkey-field&gt;
                                    &lt;query&gt;
                                    &lt;query-method&gt;
                                    &lt;method-name&gt;findAll&lt;/method-name&gt;
                                    &lt;method-params&gt;
                                    &lt;/method-params&gt;
                                    &lt;/query-method&gt;
                                    &lt;ejb-ql&gt;&lt;![CDATA[SELECT OBJECT(a) FROM account as a]]&gt;&lt;/ejb-ql&gt;
                                    &lt;/query&gt;
                                    &lt;query&gt;
                                    &lt;query-method&gt;
                                    &lt;method-name&gt;findByCustomerID&lt;/method-name&gt;
                                    &lt;method-params&gt;
                                    &lt;method-param&gt;String&lt;/method-param&gt;
                                    &lt;/method-params&gt;
                                    &lt;/query-method&gt;
                                    &lt;ejb-ql&gt;&lt;![CDATA[SELECT OBJECT(a) FROM account as a where a.customerid = ?1]]&gt;&lt;/ejb-ql&gt;
                                    &lt;/query&gt;
                                    &lt;/entity&gt;

                                    I haven't included the assembly decriptor in this snippet as it is complaining about &lt;ejb-class&gt; tag.


                                    I hope this info will help to solve this problem I facing, with no clues to me.

                                    Cheers....
                                    Vishal

                                    1 2 Previous Next