Hi folks, 

I encountered some errors when I tried to deploy the Fineract application to Tomcat server. 

At first, I generate the war file of Fineract using the command `./gradlew -Penv=dev clean dist`. 
Then I run the `run fineract.sh` to deploy my war file to Tomcat server. 
During this process, I encountered the error of “Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat”. 

I have searched on Google and StackOverflow, most of the answers are about changing port number. However, this solution does not work for me. I would like to ask for you guys’ help, do you have any idea about the errors? 

P.S. The full log of my deployment process is attached.

log4j:WARN No appenders could be found for logger 
(org.springframework.boot.logging.ClasspathLoggingApplicationListener).
log4j:WARN Please initialize the log4j system properly.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.1.6.RELEASE)

Jul 09, 2018 12:52:56 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Jul 09, 2018 12:52:56 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.55
Jul 09, 2018 12:52:59 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring embedded WebApplicationContext
00:52:59.676 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - 
Installing a new embedded database to: build/db/bin
00:52:59.693 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Starting Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql_install_db,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 --no-defaults, --force, --skip-name-resolve] (in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:52:59.798 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Installing MariaDB/MySQL system tables in 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data' 
...
00:52:59.799 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Thread is now going to wait for this process to terminate itself: Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql_install_db,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 --no-defaults, --force, --skip-name-resolve] (in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:00.028 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: OK
00:53:00.029 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Filling help tables...
00:53:00.196 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: OK
00:53:00.197 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.197 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: To start mysqld at boot time you have to copy
00:53:00.197 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: support-files/mysql.server to the right place for your system
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: To do so, start the server, then issue the following commands:
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqladmin'
 -u root password 'new-password'
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqladmin'
 -u root -h  password 'new-password'
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Alternatively you can run:
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql_secure_installation'
00:53:00.198 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: which will also give you the option of removing the test
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: databases and anonymous user created by default.  This is
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: strongly recommended for production servers.
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: See the MariaDB Knowledgebase at http://kb.askmonty.org or the
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: MySQL manual for more instructions.
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: You can start the MariaDB daemon with:
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: cd 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin' ; 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld_safe
 
--datadir='/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data'
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: You can test the MariaDB daemon with mysql-test-run.pl
00:53:00.199 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: cd 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/mysql-test'
 ; perl mysql-test-run.pl
00:53:00.200 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.202 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Please report any problems with the 
'/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/scripts/mysqlbug'
 script!
00:53:00.202 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.202 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: The latest information about MariaDB is available at 
http://mariadb.org/.
00:53:00.202 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: You can find additional information about the MySQL part at:
00:53:00.202 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: http://dev.mysql.com
00:53:00.203 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Support MariaDB development by buying support/new features 
from
00:53:00.203 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Monty Program Ab. You can contact us about this at 
[email protected].
00:53:00.203 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: Alternatively consider joining our community based 
development effort:
00:53:00.203 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: http://kb.askmonty.org/en/contributing-to-the-mariadb-project/
00:53:00.203 [Exec Stream Pumper] INFO  ch.vorburger.exec.ManagedProcess - 
mysql_install_db: 
00:53:00.204 [Exec Default Executor] INFO  ch.vorburger.exec.ManagedProcess - 
Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql_install_db,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 --no-defaults, --force, --skip-name-resolve] (in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin) 
just exited, with value 0
00:53:00.224 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - 
Installation complete.
00:53:00.225 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - Starting 
up the database...
00:53:00.225 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - mysqld 
executable: 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld
00:53:00.225 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Starting Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld,
 --no-defaults, --console, --skip-grant-tables, --max_allowed_packet=64M, 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 --port=65323, 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:00.226 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Thread will wait for "mysqld: ready for connections." to appear in Console 
output of process Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld,
 --no-defaults, --console, --skip-grant-tables, --max_allowed_packet=64M, 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 --port=65323, 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin) for 
max. 30000ms
00:53:00.247 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 [Warning] Setting lower_case_table_names=2 because file 
system for 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data/ is 
case insensitive
00:53:00.277 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 InnoDB: The InnoDB memory heap is disabled
00:53:00.277 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 InnoDB: Mutexes and rw_locks use GCC atomic builtins
00:53:00.277 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 InnoDB: Compressed tables use zlib 1.2.5
00:53:00.289 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 InnoDB: Initializing buffer pool, size = 128.0M
00:53:00.298 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 InnoDB: Completed initialization of buffer pool
00:53:00.307 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 InnoDB: highest supported file format is Barracuda.
00:53:00.369 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 Percona XtraDB (http://www.percona.com) 
5.5.34-MariaDB-31.1 started; log sequence number 11581856
00:53:00.376 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 [Note] Server socket created on IP: '::'.
00:53:00.384 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:00 [Note] 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld:
 ready for connections.
00:53:00.384 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: Version: '5.5.34-MariaDB'  socket: 
'/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock'  port: 
65323  Homebrew
00:53:00.434 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - Database 
startup complete.
00:53:00.448 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - Running 
a command: create database if not exists `mifosplatform-tenants`;
00:53:00.449 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Starting Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql,
 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:00.467 [Exec Default Executor] INFO  ch.vorburger.exec.ManagedProcess - 
Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql,
 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin) 
just exited, with value 0
00:53:00.554 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Thread is now going to wait for this process to terminate itself: Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql,
 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:00.554 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - 
Successfully ran the command: create database if not exists 
`mifosplatform-tenants`;
00:53:00.554 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - Running 
a command: create database if not exists `mifostenant-default`;
00:53:00.554 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Starting Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql,
 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:00.571 [Exec Default Executor] INFO  ch.vorburger.exec.ManagedProcess - 
Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql,
 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin) 
just exited, with value 0
00:53:00.658 [localhost-startStop-1] INFO  ch.vorburger.exec.ManagedProcess - 
Thread is now going to wait for this process to terminate itself: Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysql,
 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:00.658 [localhost-startStop-1] INFO  ch.vorburger.mariadb4j.DB - 
Successfully ran the command: create database if not exists 
`mifostenant-default`;
00:53:00.663 [localhost-startStop-1] INFO  
o.a.f.i.c.b.d.DataSourceConfiguration - Created new DataSource; 
url=jdbc:mysql:thin://localhost:65323/mifosplatform-tenants
00:53:01.018 [localhost-startStop-1] INFO  
o.a.f.i.c.b.d.TenantDataSourcePortFixService - Upated 1 rows in the 
tenant_server_connections table of the mifosplatform-tenants schema to the real 
current host: localhost, port: 65323
4213  jpa-pu  INFO   [localhost-startStop-1] openjpa.Enhance - You have enabled 
runtime enhancement, but have not specified the set of persistent classes.  
OpenJPA must look for metadata for every loaded class, which might increase 
class load times significantly.
29  jpa-pu  WARN   [localhost-startStop-1] openjpa.Runtime - An error occurred 
while registering a ClassTransformer with PersistenceUnitInfo: name 'jpa-pu', 
root URL 
[file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war].
 The error has been consumed. To see it, set your openjpa.Runtime log level to 
TRACE. Load-time class transformation will not be available.
55  jpa-pu  INFO   [localhost-startStop-1] openjpa.Runtime - OpenJPA 
dynamically loaded a validation provider.
228  jpa-pu  INFO   [localhost-startStop-1] openjpa.jdbc.JDBC - Using 
dictionary class 
"org.apache.fineract.infrastructure.core.domain.MySQLDictionaryCustom".
4058  jpa-pu  INFO   [localhost-startStop-1] openjpa.Runtime - Starting OpenJPA 
2.4.1
4153  jpa-pu  INFO   [localhost-startStop-1] openjpa.jdbc.JDBC - Connected to 
MySQL version 0.0 using JDBC driver Drizzle-JDBC version 0.1. 
00:53:15.605 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 180709  0:53:15 [Note] 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld:
 Normal shutdown
00:53:15.607 [Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - 
mysqld: 
00:53:16.063 [Exec Default Executor] INFO  ch.vorburger.exec.ManagedProcess - 
Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld,
 --no-defaults, --console, --skip-grant-tables, --max_allowed_packet=64M, 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 --port=65323, 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin) 
just exited, with value 0
00:53:16.071 [main] INFO  ch.vorburger.exec.ManagedProcess - Successfully 
destroyed Program 
[/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin/bin/mysqld,
 --no-defaults, --console, --skip-grant-tables, --max_allowed_packet=64M, 
--basedir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin,
 
--datadir=/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/data,
 --port=65323, 
--socket=/var/folders/mc/1rwlxpvd73sfcgqcwzmhnnn40000gn/T/MariaDB4j.65323.sock] 
(in working directory 
/Users/dingfan/fineract/build/distributions/fineract-provider/build/db/bin)
00:53:16.071 [main] INFO  ch.vorburger.mariadb4j.DB - Database stopped.
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.context.ApplicationContextException: Unable to 
start embedded container; nested exception is 
org.springframework.boot.context.embedded.EmbeddedServletContainerException: 
Unable to start embedded Tomcat
        at 
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:124)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:476)
        at 
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:109)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
        at 
org.apache.fineract.ServerWithMariaDB4jApplication.main(ServerWithMariaDB4jApplication.java:56)
        ... 6 more
Caused by: 
org.springframework.boot.context.embedded.EmbeddedServletContainerException: 
Unable to start embedded Tomcat
        at 
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:100)
        at 
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:74)
        at 
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:295)
        at 
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:147)
        at 
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:148)
        at 
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
        ... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 
'org.apache.fineract.infrastructure.core.boot.WebXmlConfiguration': Injection 
of autowired dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: private 
org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
 
org.apache.fineract.infrastructure.core.boot.WebXmlConfiguration.basicAuthenticationProcessingFilter;
 nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'basicAuthenticationProcessingFilter' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.class]:
 Unsatisfied dependency expressed through constructor argument with index 0 of 
type [org.springframework.security.authentication.AuthenticationManager]: : 
Error creating bean with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:301)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1186)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1095)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:990)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
        at 
org.springframework.boot.context.embedded.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:176)
        at 
org.springframework.boot.context.embedded.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:80)
        at 
org.springframework.boot.context.embedded.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:68)
        at 
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getServletContextInitializerBeans(EmbeddedWebApplicationContext.java:216)
        at 
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:202)
        at 
org.springframework.boot.context.embedded.tomcat.ServletContextInitializerLifecycleListener.lifecycleEvent(ServletContextInitializerLifecycleListener.java:64)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        ... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not 
autowire field: private 
org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
 
org.apache.fineract.infrastructure.core.boot.WebXmlConfiguration.basicAuthenticationProcessingFilter;
 nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'basicAuthenticationProcessingFilter' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.class]:
 Unsatisfied dependency expressed through constructor argument with index 0 of 
type [org.springframework.security.authentication.AuthenticationManager]: : 
Error creating bean with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:522)
        at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
        ... 32 more
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'basicAuthenticationProcessingFilter' defined in 
URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/org/apache/fineract/infrastructure/security/filter/TenantAwareBasicAuthenticationFilter.class]:
 Unsatisfied dependency expressed through constructor argument with index 0 of 
type [org.springframework.security.authentication.AuthenticationManager]: : 
Error creating bean with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:747)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:494)
        ... 34 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 
'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0':
 FactoryBean threw exception on object creation; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'org.springframework.security.authenticationManager': Cannot resolve 
reference to bean 'customAuthenticationProvider' while setting constructor 
argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
        at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1514)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:811)
        at 
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:739)
        ... 47 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'org.springframework.security.authenticationManager': 
Cannot resolve reference to bean 'customAuthenticationProvider' while setting 
constructor argument with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:359)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157)
        at 
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:632)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1115)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.security.config.authentication.AuthenticationManagerFactoryBean.getObject(AuthenticationManagerFactoryBean.java:28)
        at 
org.springframework.security.config.authentication.AuthenticationManagerFactoryBean.getObject(AuthenticationManagerFactoryBean.java:20)
        at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
        ... 56 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'customAuthenticationProvider' defined in URL 
[jar:file:/Users/dingfan/fineract/build/distributions/fineract-provider/fineract-provider.war!/WEB-INF/classes!/META-INF/spring/securityContext.xml]:
 Cannot resolve reference to bean 'userDetailsService' while setting bean 
property 'userDetailsService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'userDetailsService': Injection of autowired dependencies failed; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Could not autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:336)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1457)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1198)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        ... 72 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'userDetailsService': Injection of autowired 
dependencies failed; nested exception is 
org.springframework.beans.factory.BeanCreationException: Could not autowire 
field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:301)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1186)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        ... 82 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not 
autowire field: private 
org.apache.fineract.infrastructure.security.domain.PlatformUserRepository 
org.apache.fineract.infrastructure.security.service.TenantAwareJpaPlatformUserDetailsService.platformUserRepository;
 nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'appUserRepository': Invocation of init method 
failed; nested exception is java.lang.IllegalArgumentException: localized 
message key: type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:522)
        at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:298)
        ... 90 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'appUserRepository': Invocation of init method failed; 
nested exception is java.lang.IllegalArgumentException: localized message key: 
type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1021)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:964)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:862)
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:494)
        ... 92 more
Caused by: java.lang.IllegalArgumentException: localized message key: 
type-not-managed; substitutions: [class 
org.apache.fineract.useradministration.domain.AppUser]
        at 
org.apache.openjpa.persistence.meta.MetamodelImpl.managedType(MetamodelImpl.java:192)
        at 
org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation.<init>(JpaMetamodelEntityInformation.java:68)
        at 
org.springframework.data.jpa.repository.support.JpaPersistableEntityInformation.<init>(JpaPersistableEntityInformation.java:39)
        at 
org.springframework.data.jpa.repository.support.JpaEntityInformationSupport.getMetadata(JpaEntityInformationSupport.java:63)
        at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityInformation(JpaRepositoryFactory.java:149)
        at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:88)
        at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:68)
        at 
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:158)
        at 
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:224)
        at 
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:210)
        at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:92)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
        ... 102 more

Regards,
Dingfan

Reply via email to