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:

  `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.

Missing CMP entry in Persistence File
  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:` `ejbc couldn't invoke compiler`

  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 occurred while loading persistence resource TopLink_CMP_Descriptor.xml. Make sure that the persistence type is in your classpath.`

  `ERROR:` `ejbc couldn't invoke compiler`

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

Wrong WebLogic Version
  Cause: You are trying to compile your EJB JAR file using BEA WebLogic Server 7.0. The following exception message is returned:

  `ERROR: ejbc found errors while processing the descriptor for std_cmp20-singlebean.jar:``ERROR: ejbc found errors` `while processing 'META-INF/weblogic-ejb-jar.xml': The public id, "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN", specified in the XML document is invalid. Use one of the following valid public ids:``"-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"``"-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"``"-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN"``ERROR` `ejbc found errors`

  Action: Compile using BEA WebLogic Server 8.1.