1 Reply Latest reply on Aug 19, 2013 10:16 PM by Chris Bitmead

    JDBCOracleCreateCommand: Failed to load entity command class

    Chris Bitmead Newbie

      JBAS018620: Failed to load entity command class: org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand

       

      I'm porting a legacy app with CMP to JBoss 7 and getting the error below. In my jbosscmp-jdbc.xml I am using JDBCOracleCreateCommand, but for some reason it can't be found. I'm using the standalone-full.xml to enable CMP, but I haven't modified it. Not sure if I'm supposed to.

       

       

       

              <entity>

                  <ejb-name>Agreement</ejb-name>

                  <table-name>AGREEMENT</table-name>

                  <cmp-field>

                      <field-name>agreementId</field-name>

                      <column-name>AGREEMENT_ID</column-name>

                  </cmp-field>

                  <cmp-field>

                      <field-name>agreementPeriodFrom</field-name>

                      <column-name>AGREEMENT_PERIOD_FROM</column-name>

                  </cmp-field>

                  <cmp-field>

                      <field-name>agreementPeriodTo</field-name>

                      <column-name>AGREEMENT_PERIOD_TO</column-name>

                  </cmp-field>

                  <cmp-field>

                      <field-name>programManagerId</field-name>

                      <column-name>PROGRAM_MANAGER_ID</column-name>

                  </cmp-field>

       

                  <entity-command name="oracle-sequence" class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand">

                                              <attribute name="sequence">agreement_seq</attribute>

                                    </entity-command>

              </entity>

       

       

       

       

       

       

       

       

      08:37:28,078 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.subunit."npc.ear"."npc-server.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."npc.ear"."npc-server.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "npc-server.jar" of deployment "npc.ear"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS010713: Failed to parse 'jbosscmp-jdbc.xml'

                at org.jboss.as.cmp.processors.CmpParsingProcessor.deploy(CmpParsingProcessor.java:91)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

                ... 5 more

      Caused by: java.lang.RuntimeException: JBAS018620: Failed to load entity command class: org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand

                at org.jboss.as.cmp.jdbc.metadata.parser.JDBCMetaDataParser.parseEntityCommand(JDBCMetaDataParser.java:475)

                at org.jboss.as.cmp.jdbc.metadata.parser.JDBCMetaDataParser.parseEntity(JDBCMetaDataParser.java:852)

                at org.jboss.as.cmp.jdbc.metadata.parser.JDBCMetaDataParser.parseEnterpriseBeans(JDBCMetaDataParser.java:742)

                at org.jboss.as.cmp.jdbc.metadata.parser.JDBCMetaDataParser.parse(JDBCMetaDataParser.java:75)

                at org.jboss.as.cmp.processors.CmpParsingProcessor.deploy(CmpParsingProcessor.java:89)

                ... 6 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand from [Module "deployment.npc.ear.npc-server.jar:main" from Service Module Loader]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1]

                at org.jboss.as.cmp.jdbc.metadata.parser.JDBCMetaDataParser.parseEntityCommand(JDBCMetaDataParser.java:473)

                ... 10 more