Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6245

ClassNotFoundException if CMP2 entity-command is used

    XMLWordPrintable

Details

    Description

      If a EJB2 - CMP2 EntityBean uses an entity-command 'mysql-get-generated-keys' to generate the primary key, the server deploy with an error message:
      Caused by: java.lang.RuntimeException: JBAS018572: Could not load driver class: com.mysql.jdbc.PreparedStatement

      This may happen for different entity-commands if other databases are used!

      If the datasource module is added to the org/jboss/as/cmp modules dependencies, the startup shows:

      MSC000001: Failed to start service ... : JBAS010785: Failed start store manager
      Caused by: java.lang.RuntimeException: JBAS010732: Couldn't create entity command
      Caused by: java.lang.RuntimeException: JBAS018574: Could not load org.jboss.resource.adapter.jdbc.StatementAccess

      Attachments

        Activity

          People

            rhn-support-wfink Wolf Fink
            rhn-support-wfink Wolf Fink
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: