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 | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Offline DB Migration does not work without default server

    Google Groups | 9 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