1 Reply Latest reply on Apr 29, 2004 10:02 AM by Darran Lofthouse

    CMP enterprise deployment -when change from defaultDS to Ora

    Nischal Sharma Newbie

      Hi
      friends

      i got one cmp bean sample code from oreilly workbook using defaultDS as datasource and i changded it to OracleDS and place Oracle-ds.xml (having my database configuration setting ).

      but when i depoy jar file on jboss-3.2.3 ,it show error message given below:

      "Verification of Enterprise Beans
      above for error messages.
      "
      CONSOLE MESSAGE IN JBOSS-3.2.3(GIVEN BELOW)
      --------------

      10:35:32,187 ERROR [URLDeploymentScanner] MBeanException: Exception
      ration 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@7eb4a8d4 { url=file:/C:/jboss-3
      default/deploy/titan.jar }
      deployer: org.jboss.ejb.EJBDeployer@13e0aba
      status: Deployment FAILED reason: Verification of Enterprise Beans
      above for error messages.
      state: FAILED
      watch: file:/C:/jboss-3.2.3/server/default/deploy/titan.jar
      lastDeployed: 1083206121062
      lastModified: 1083206121062
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:


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

      ejb-jar.xml is->

      -------------------
      ejb-jar>
      <enterprise-beans>

      <ejb-name>CustomerEJB</ejb-name>
      com.titan.customer.CustomerHomeRemote
      com.titan.customer.CustomerRemote
      <ejb-class>com.titan.customer.CustomerBean</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>Customer</abstract-schema-name>
      <cmp-field><field-name>id</field-name></cmp-field>
      <cmp-field><field-name>lastName</field-name></cmp-field>
      <cmp-field><field-name>firstName</field-name></cmp-field>
      <cmp-field><field-name>hasGoodCredit</field-name></cmp-field>
      <primkey-field>id</primkey-field>
      <security-identity><use-caller-identity/></security-identity>

      </enterprise-beans>

      <assembly-descriptor>
      <security-role>
      <role-name>Employees</role-name>
      </security-role>
      <method-permission>
      <role-name>Employees</role-name>

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

      </method-permission>
      <container-transaction>

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

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

      </ejb-jar>


      and
      jboss.xml file is:


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


      <enterprise-beans>

      <ejb-name>CustomerEJB</ejb-name>
      <jndi-name>CustomerHomeRemote</jndi-name>

      </enterprise-beans>


      ............


      DUE TO VARIFICATION FAIL THE CMP DEPLOYMENT FAIL
      PLEASE TELL WHERE I AM WRONG