2 Replies Latest reply on Sep 14, 2002 1:35 AM by Viyagula Jeffery

    DeploymentException: CMP field not found

    Ashish Adhiya Newbie

      Hi All,

      I am getting following error 'DeploymentException: CMP field not found' when I deploy jar file. The jbosscmp-jdbc.xml and ejb-jar.xml is also given below for your reference.
      Pls help me for solving this problem.

      Thanks in advance



      20:05:47,376 INFO [EjbModule] Creating
      20:05:47,476 INFO [EjbModule] Deploying IdeaEJB
      20:05:47,786 INFO [EjbModule] Created
      20:05:47,786 INFO [EjbModule] Starting
      20:05:48,117 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB,jndiName=IdeaHomeRemote
      org.jboss.deployment.DeploymentException: CMP field not found : fieldName=ideaid
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JDBCEntityMetaData.java:495)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:282)
      at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:67)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:677)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:389)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
      at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
      at org.jboss.ejb.Container.invoke(Container.java:764)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:967)
      at $Proxy5.start(Unknown Source)



      -----------------------------------------------------------------------------------

      <!-- jbosscmp-jdbc.xml-->


      <jbosscmp-jdbc>

      java:/OracleDS
      <datasource-mapping>Oracle8</datasource-mapping>
      <create-table>true</create-table>
      <remove-table>false</remove-table>


      <enterprise-beans>

      <ejb-name>IdeaEJB</ejb-name>
      <table-name>IMP_IDEA</table-name>
      <cmp-field>
      <field-name>ideaId</field-name>
      <column-name>IDEA_ID</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>ideaTitle</field-name>
      <column-name>IDEA_TITLE</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>ideaDescription</field-name>
      <column-name>IDEA_DESCRIPTION</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>ideaDate</field-name>
      <column-name>IDEA_DATE</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>userId</field-name>
      <column-name>USER_ID</column-name>
      </cmp-field>

      </enterprise-beans>
      </jbosscmp-jdbc>

      ----------------------------------------------------------
      <!-- ejb-jar.xml-->

      <?xml version="1.0"?>



      <ejb-jar>
      <enterprise-beans>

      <ejb-name>IdeaEJB</ejb-name>
      com.pilot.impidea.IdeaHomeRemote
      com.pilot.impidea.IdeaRemote
      <ejb-class>com.pilot.impidea.IdeaBean</ejb-class>
      <persistence-type>Container</persistence-type>
      <prim-key-class>java.lang.Integer</prim-key-class>
      False
      <cmp-version>2.x</cmp-version>
      <abstract-schema-name>impidea</abstract-schema-name>
      <cmp-field><field-name>ideaId</field-name></cmp-field>
      <cmp-field><field-name>ideaTitle</field-name></cmp-field>
      <cmp-field><field-name>ideaDescription</field-name></cmp-field>
      <cmp-field><field-name>ideaDate</field-name></cmp-field>
      <cmp-field><field-name>userId</field-name></cmp-field>
      <primkey-field>ideaId</primkey-field>

      </enterprise-beans>

      <assembly-descriptor>

      <ejb-name>IdeaEJB</ejb-name>
      <method-name>*</method-name>


      <container-transaction>

      <ejb-name>IdeaEJB</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>