1 Reply Latest reply on Dec 31, 2003 4:53 AM by Adrian Brock

    CMP Entity Bean Table not being Deleted

    John Rasmussen Newbie

      I've create CMP Bean with

      ...<remove-table>true</remove-table>

      I've removed all deployment jars, etc., in an attempt to remove table, but I get

      [EjbModule] Deploying FundMixerEJB
      [FundMixerEJB] Table 'FUNDMIXEREJB' already exists

      At startup....

      Now I add a new field, and I get

      10:07:32,514 INFO [STDOUT] create RemoteException; EJBException:; nested exception is:
      javax.ejb.EJBException: Load failed; CausedByException is:
      Column not found: FUNDS in statement [SELECT funds FROM FUNDMIXEREJB WHERE (name='myPortfolio')]
      10:07:32,524 INFO [STDOUT] fundList size = 1

      <enterprise-beans>

      <ejb-name>FundMixerEJB</ejb-name>
      <table-name>Portfolio</table-name>
      <cmp-field>
      <field-name>name</field-name>
      <column-name>name</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>funds</field-name>
      <column-name>funds</column-name>
      </cmp-field>

      </enterprise-beans>

      all Get / Set methods are ok.

      Any Idea what I'm doing wrong.

      Thanks!