0 Replies Latest reply on Aug 26, 2005 1:25 AM by Surajit Sengupta

    Cannot Deploy Entity Beans in Jboss4.0.2

    Surajit Sengupta Newbie

      Hi All, I am trying to port an application from JRUN to JBoss application server. For the entity beans, when I'm putting the JRUN's ejb jar file, server console shows it is deployed successfully. Whenever I'm changing the ejb according to the JBoss specification, it is not getting deployed. No error message is also thrown.
      the EJB Name is is Alert. Jar name is Alert.jar.

      these two xmls are added in the jar in place of the previous xmls of JRUN.

      1. jbosscmp-jdbc.xml
      2. jboss.xml


      jbosscmp-jdbc.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jbosscmp-jdbc PUBLIC
      "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN"
      "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
      <jbosscmp-jdbc>
       <defaults>
       <datasource>java:/jdbc/escm</datasource>
       <datasource-mapping>MS SQLSERVER2000</datasource-mapping>
       <create-table>false</create-table>
       <remove-table>false</remove-table>
       <pk-constraint>true</pk-constraint>
       <preferred-relation-mapping>foreign-key</preferred-relation-mapping>
       </defaults>
       <enterprise-beans>
       <entity>
       <ejb-name>Alert</ejb-name>
       <table-name>Alert</table-name>
       <cmp-field>
       <field-name>id</field-name>
       <column-name>id</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>userId</field-name>
       <column-name>userId</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>seen</field-name>
       <column-name>seen</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>deleted</field-name>
       <column-name>deleted</column-name>
       </cmp-field>
       <cmp-field>
       <field-name>alertId</field-name>
       <column-name>alertId</column-name>
       </cmp-field>
       </entity>
       </enterprise-beans>
      </jbosscmp-jdbc>
      
      


      jboss.xml

      <jboss>
      <enterprise-beans>
       <entity>
       <ejb-name>Alert</ejb-name>
       <jndi-name>Alert</jndi-name>
       </entity>
       </enterprise-beans>
      </jboss>
      


      I'm stuck badly. Can anyone please help me out?