Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1562

EclipseLink No [ManagedType] was found for the key class [] in the Metamodel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.7.0
    • None
    • None

    Description

      While running the jar file build on latest develop branch. Throws this error:

      2022-04-01 01:25:53.447  WARN 13244 — [           main] a.f.i.c.s.m.TenantDatabaseUpgradeService : Tenant upgrades have finished
      2022-04-01 01:25:53.665  WARN 13244 — [           main] o.s.o.j.p.DefaultPersistenceUnitManager  : Found explicit default persistence unit with name 'jpa-pu' in persistence.xml - overriding local default persistence unit settings ('packagesToScan'/'mappingResources')
      [EL Info]: 2022-04-01 01:25:56.943-ServerSession(681145438)-EclipseLink, version: Eclipse Persistence Services - 2.7.10.v20211216-fe64cd39c3
      [EL Warning]: metamodel: 2022-04-01 01:25:56.994--The collection of metamodel types is empty. Model classes may not have been found during entity search for Java SE and some Java EE container managed persistence units.  Please verify that your entity classes are referenced in persistence.xml using either <class> elements or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element
      [EL Warning]: metamodel: 2022-04-01 01:25:57.228--The collection of metamodel [ManagedType] types is empty. Model classes may not have been found during entity search for Java SE and some Java EE container managed persistence units.  Please verify that your entity classes are referenced in persistence.xml using either <class> elements or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element.  The lookup on [class org.apache.fineract.useradministration.domain.AppUser] will return null.
      [EL Warning]: metamodel: 2022-04-01 01:25:57.31--The collection of metamodel [ManagedType] types is empty. Model classes may not have been found during entity search for Java SE and some Java EE container managed persistence units.  Please verify that your entity classes are referenced in persistence.xml using either <class> elements or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element.  The lookup on [class org.apache.fineract.useradministration.domain.AppUser] will return null.
      2022-04-01 01:25:57.312 ERROR 13244 — [           main] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 'userDetailsService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDetailsService': Unsatisfied dependency expressed through field 'platformUserRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appUserRepository' defined in org.apache.fineract.useradministration.domain.AppUserRepository defined in @EnableJpaRepositories declared on JPAConfig: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: No [ManagedType] was found for the key class [org.apache.fineract.useradministration.domain.AppUser] in the Metamodel - please verify that the [Managed] class was referenced in persistence.xml using a specific <class>org.apache.fineract.useradministration.domain.AppUser</class> property or a global <exclude-unlisted-classes>false</exclude-unlisted-classes> element

      Attachments

        1. build_script.txt
          32 kB
          Rahul Pawar

        Issue Links

          Activity

            People

              arnold Arnold Galovics
              rrpawar Rahul Pawar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: