Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7150

[Regression] ejbca-db-cli crashes with ClassNotFoundException: AcmeNonceData

    Details

    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Sprint 16

      Description

      Cannot use ejbca-db-cli anymore.

      > ./run.sh verify AuditRecordData
      Could not run execute method for class null
      javax.persistence.PersistenceException: [PersistenceUnit: ejbca-read] class or package not found
      	at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1400)
      	at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1183)
      	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1047)
      	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:290)
      	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:372)
      	at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:55)
      	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
      	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
      	at org.ejbca.database.DatabaseCliCommand.getEntityManager(DatabaseCliCommand.java:181)
      	at org.ejbca.database.DatabaseValidationCommand.validateTables(DatabaseValidationCommand.java:60)
      	at org.ejbca.database.DatabaseValidationCommand.execute(DatabaseValidationCommand.java:56)
      	at org.ejbca.database.CliCommandHelper.executeCommand(CliCommandHelper.java:144)
      	at org.ejbca.database.CliCommandHelper.searchAndRun(CliCommandHelper.java:64)
      	at org.ejbca.database.DatabaseCli.main(DatabaseCli.java:22)
      Caused by: java.lang.ClassNotFoundException: org.ejbca.acme.AcmeNonceData
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:348)
      	at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:170)
      	at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1317)
      	at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1389)
      	... 13 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                realiserad Bastian Fredriksson
                Reporter:
                realiserad Bastian Fredriksson
                Verified by:
                Henrik Sunmark
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Time Spent - 1 hour, 10 minutes Remaining Estimate - 50 minutes
                  50m
                  Logged:
                  Time Spent - 1 hour, 10 minutes Remaining Estimate - 50 minutes
                  1h 10m