2 Replies Latest reply on Jan 8, 2004 6:53 AM by hlehtimaki

    Could not load class: org.jboss.ejb.plugins.cmp.jdbc.JDBCPkS

    hlehtimaki

      Hi,

      I'm trying to configure MySQL datasource on our recently installed jboss-3.2.3 server. As jboss-3.2.1_tomcat-4.1.24 was previously running fine, I thought I just copy the old standardjbosscmp-jdbc.xml to server/default/conf.

      Maybe that was not a good idea, or maybe im missing something, but now i get "Could not load class: org.jboss.ejb.plugins.cmp.jdbc.JDBCPkSqlCreateCommand" when I try to deploy my ejb ear.

      Any idea what I might be doing wrong?

      harri

        • 1. Re: Could not load class: org.jboss.ejb.plugins.cmp.jdbc.JDB

          Browsing 3.2.4 RC1 codebase I find that class in a different package:

          package org.jboss.ejb.plugins.cmp.jdbc.keygen;
          
          import ...
          
          /**
           * Create command that uses an SQL statement to generate the primary key.
           * Typically used with databases that support sequences.
           *
           * @author <a href="mailto:loubyansky@hotmail.com">Alex Loubyansky</a>
           *
           * @version $Revision: 1.1.2.2 $
           */
          public class JDBCPkSqlCreateCommand extends JDBCInsertPKCreateCommand
          {
          


          Same thing in the 3.2.3 standardjbosscmp-jdbc.xml:

          <entity-command name="mysql-get-generated-keys" class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand"/>

          3.2.1 had this:

          <entity-command name="mysql-get-generated-keys" class="org.jboss.ejb.plugins.cmp.jdbc.mysql.JDBCMySQLCreateCommand"/>

          So copy over won't work, or you will have to modify the package name at least.



          • 2. Re: Could not load class: org.jboss.ejb.plugins.cmp.jdbc.JDB
            hlehtimaki

            Thanks, Juha. I just figured that out myself too.