Skip Headers

# Development 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:

  `ERROR: Error from ejbc: Persistence type 'TopLink_CMP_2_0' with version 'X.X which is referenced in bean 'Account' is not installed. The installed persistence types are: (WebLogic_CMP_RDBMS, 6.0), (WebLogic_CMP_RDBMS, 5.1.0)`.`ERROR: ejbc found errors`

  Action: In the `<WebLogic InstallDir>``/wlserver6.1/lib/persistence` directory, edit the `persistence.install` file to add a new line `TopLink_CMP_Descriptor.xml`, or 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 while loading persistence resource TopLink_CMP_Descriptor.xml Make sure that the persistence type is in your classpath.`

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

Wrong BEA WebLogic Version
  Cause: You are trying to compile your code using BEA WebLogic Server 6.0. The following exception message is returned:

  `C:\``<ORACLE_HOME>``\toplink``\examples\weblogic\wls61\ examples\ejb\cmp20\singlebean\Account.java:10: cannot resolve symbol` `symbol : class EJBLocalObject` `location: interface examples.ejb.cmp20.singlebean.Account` `public interface Account extends EJBLocalObject {`

  Action: Compile using BEA WebLogic Server 6.1.