1 Reply Latest reply on Nov 26, 2007 6:13 AM by ravisoni1986

    ejb-jar.xml problem

    ravisoni1986

      I am implementing my EJB's in 1.1 spec. and for ejb-jar.xml I am using
      ejb3.0 namespace and schema. When I deployed my application on
      jboss then it was not showing any Exception but my Entity bean was
      not binding.

      ejb-jar.xml

      <?xml version='1.0' encoding='UTF-8'?>
      <ejb-jar id="ejb-jar_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
       <enterprise-beans>
       <entity>
       <ejb-name>Account</ejb-name>
       <home>test.entity.AccountHome</home>
       <remote>test.entity.AccountRemote</remote>
       <ejb-class>test.entity.Account</ejb-class>
       <persistence-type>Container</persistence-type>
       <prim-key-class>test.entity.AccountPKey</prim-key-class>
       <reentrant>false</reentrant>
       <cmp-version>1.x</cmp-version>
       <cmp-field id="CMPAttribute_1">
       <field-name>accountNumber</field-name>
       </cmp-field><cmp-field id="CMPAttribute_2">
       <field-name>ownerName</field-name>
       </cmp-field>
       <cmp-field id="CMPAttribute_3">
       <field-name>balance</field-name>
       </cmp-field>
       </entity>
       </enterprise-beans>
       <assembly-descriptor id="AssemblyDescriptor_ID">
       <container-transaction id="MethodTransaction_1">
       <method id="MethodElement_1">
       <ejb-name>Account</ejb-name>
       <method-intf>Remote</method-intf>
       <method-name>*</method-name>
       </method>
       <trans-attribute>Required</trans-attribute>
       </container-transaction>
       </assembly-descriptor>
      </ejb-jar>
      


      I tried with 1.1 namespace it was working fine.
      please help me....

      Thanks,
      Ravi