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

Regression: EJBCA DB CLI broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: EJBCA 6.9.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      $ java -jar dist/ejbca-db-cli/ejbca-db-cli.jar 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:177)
      	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.core.ejb.ca.keys.validation.PublicKeyBlacklistData
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Class.java:270)
      	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:
              Unassigned Unassigned
              Reporter:
              mikek Mike Agrenius Kushner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: