0 Replies Latest reply on Sep 4, 2012 10:18 AM by Jagan reddy

    Entity Bean Deployment in jboss-5.1

    Jagan reddy Newbie

      Hi,

       

      I am trying to deploy an Entity Bean in jboss-5.1 but getting error like Failed to parse '<entity>', below are my ejb-jar.xml and jboss.xml code:

      ejb-jar.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <ejb-jar 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" version="3.0">

        <display-name>Emagia Enterprise</display-name>

        <enterprise-beans>    

           <entity id="Entity_16">

                <description>Strategy Identifiers Entity Bean ( BMP )</description>

                <display-name>StrategyIdentifers</display-name>

                <ejb-name>StrategyIdentifers_EB</ejb-name>

                <home>emagia.ejb.StrategyIdentifersHome</home>

                <remote>emagia.ejb.StrategyIdentifersRemote</remote>

                <ejb-class>emagia.ejb.StrategyIdentifers_EB</ejb-class>

                <persistence-type>Bean</persistence-type>

                <prim-key-class>java.lang.String</prim-key-class>

                <reentrant>False</reentrant>

                <primkey-field>id</primkey-field>

                </entity>

        </enterprise-beans>

      </ejb-jar>

       

      jboss.xml :

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss>

        <enterprise-beans>

      <entity>

            <ejb-name>StrategyIdentifers_EB</ejb-name>

            <jndi-name>emagia/ejb/StrategyIdentifersHome</jndi-name>

      </entity>

        </enterprise-beans>

      </jboss>

       

      Please help me to resolve this.

       

      Regards

      Jagan

      Thank You.