4 Replies Latest reply on Sep 3, 2013 9:39 AM by Wolf-Dieter Fink

    jboss 7.2 and ejb2+xdoclet

    qtm Newbie

      Hi,

      I've got a legacy app that uses ejb2 and xdoclet

      The entities have the Xdoclet comment

      /*

      * @jboss.entity-command

      *   name = "sybase-fetch-key"

      *   class = "org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSybaseCreateCommand"

      */

      public class CustomEntity.

       

      At deployment I get :

      Caused by: java.lang.RuntimeException: JBAS010732: Couldn't create entity command

          at org.jboss.as.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:132)

          at org.jboss.as.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:216)

          at org.jboss.as.cmp.jdbc.JdbcStoreManagerStartService.start(JdbcStoreManagerStartService.java:44)

          ... 5 more

      Caused by: java.lang.ClassCastException: org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSybaseCreateCommand cannot be cast to org.jboss.as.cmp.jdbc.JDBCCreateCommand

          at org.jboss.as.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:129)

          ... 7 more

       

      The jar for JDBCSybaseCreateCommand is added in the classpath, but it seems the JdbcStoreManagerStartService can't work with it. It requires an implementation of JDBCCreateCommand interface.

       

      I am doing something wrong or the only option is to upgrade the old code?

       

       

      Thanks