Skip Headers

# Deployment Exceptions

Previous

Next

Missing Persistence Type
  Cause: There is no entry in the `persistence.install` file for TopLink CMP. This may occur if the TopLink installation was interrupted or a BEA WebLogic Server Service Pack was applied. The following exception message is returned:

  E`rror Deployer BEA-149201 Failed to complete the deployment task with ID 0 for the application _appsdir_cmp20-singlebean_ear. weblogic.management.ApplicationException: Exception:weblogic.management.ApplicationException: prepare failed for cmp20-singlebean.jar` `Module: cmp20-singlebean.jar Error: Exception preparing module: EJBModule(cmp20-singlebean.jar,status=NEW)``Persistence type 'TopLink_CMP_2_0' with version 'X.0 which is referenced in bean 'Account' is not installed. The installed persistence types are: (WebLogic_CMP_RDBMS, 7.0), (WebLogic_CMP_RDBMS, 6.0), (WebLogic_CMP_RDBMS, 5.1.0)`

  Action: In the `<WebLogic InstallDir>``/``weblogic81/lib/persistence` directory, edit the `persistence.install` file to add a new line: `TopLink_CMP_Descriptor.xml`. You can also replace your existing `persistence.install` file with the version of the file in the `<ORACLE_HOME>``/toplink/config` directory.

Error Loading Persistence Resource
  Cause: The `toplink.jar` file is not properly set in your classpath. The following exception message is returned:

  `Error Deployer BEA-149201 Failed to complete the deployment task with ID 2 for the application _appsdir_cmp20-relationships_ear.``weblogic.management.ApplicationException: Exception:weblogic.management.ApplicationException: prepare failed for cmp20-relationships.jar` `Module: cmp20-relationships.jar Error: Exception preparing module: EJBModule(cmp20-relationships.jar,status=NEW)` `Unable to deploy EJB:.\TopLink_Demos\stage\_appsdir_cmp20-relationships_ear\cmp20-relationships.jar from cmp20-relationships.jar:` `[EJB:011004]Error occurred while loading persistence resource TopLink_CMP_Descriptor.xml. Make sure that the persistence type is in your classpath.``at weblogic.ejb20.persistence.InstalledPersistence.initialize(InstalledPersistence.java:212)``at weblogic.ejb20.persistence.InstalledPersistence.getInstalledType(InstalledPersistence.java:114)`

  Action: Ensure that the classpath includes the `<ORACLE_HOME>``/toplink/jlib/toplink.jar` file.