javax.persistence.PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programmatically via registerServer()

Google Groups | Gustavo Bilert | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Offline DB Migration does not work without default server

    Google Groups | 11 months ago | Gustavo Bilert
    javax.persistence.PersistenceException: The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programmatically via registerServer()

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      The default EbeanServer has not been defined? This is normally set via the ebean.datasource.default property. Otherwise it should be registered programmatically via registerServer()

      at com.avaje.ebean.Ebean$ServerManager.getDefaultServer()
    2. avaje-ebeanorm
      Ebean.getDefaultServer
      1. com.avaje.ebean.Ebean$ServerManager.getDefaultServer(Ebean.java:179)
      2. com.avaje.ebean.Ebean$ServerManager.access$300(Ebean.java:130)
      3. com.avaje.ebean.Ebean.getDefaultServer(Ebean.java:267)
      3 frames
    3. com.avaje.ebean
      DbMigration.generateMigration
      1. com.avaje.ebean.dbmigration.DbMigration.setDefaults(DbMigration.java:462)
      2. com.avaje.ebean.dbmigration.DbMigration.generateMigration(DbMigration.java:209)
      2 frames