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 | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Offline DB Migration does not work without default server

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