[ 
https://issues.apache.org/jira/browse/FINERACT-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnold Galovics resolved FINERACT-1562.
---------------------------------------
    Resolution: Fixed

> EclipseLink No [ManagedType] was found for the key class [] in the Metamodel
> ----------------------------------------------------------------------------
>
>                 Key: FINERACT-1562
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1562
>             Project: Apache Fineract
>          Issue Type: Improvement
>    Affects Versions: 1.6.1
>            Reporter: Rahul Pawar
>            Assignee: Arnold Galovics
>            Priority: Major
>         Attachments: build_script.txt
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to