fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zayyyad A. Said" <zay...@intrasofttechnologies.com>
Subject RE: couldnt connect to server
Date Thu, 29 Jun 2017 12:54:13 GMT
George,

Follow the link I gave you earlier, and restart your server.

Then advise if you are able to log in or not.

As a techie, you might need to have a Skype account and/or team viewer on your machine. 

Otherwise would be difficult to assist you remotely.

Regards;


*******
Zayyad A. Said | Chairman & C.E.O
 
Cell No.: +254 716 615274 | Skype: zsaid2011
Email: zayyad@intrasofttechnologies.com 
 


-----Original Message-----
From: Kimani ng'ang'a [mailto:gkn618@gmail.com] 
Sent: 29 June 2017 12:11 PM
To: dev@fineract.apache.org
Subject: couldnt connect to server

below is catalina log.

kindly help

George

Jun 29, 2017 7:42:22 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-443"]
Jun 29, 2017 7:42:26 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 18096 ms
Jun 29, 2017 7:42:29 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jun 29, 2017 7:42:29 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.78
Jun 29, 2017 7:42:30 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
C:\tomcat\webapps\fineract-provider.war
Jun 29, 2017 7:43:53 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:49 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.context.ApplicationContextException: Unable
to start embedded container; nested exception is
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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:142)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:89)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:51)
    at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    ... 10 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:153)
    at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
    ... 20 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 43 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'basicAuthenticationProcessingFilter' defined in
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 45 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 58 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 67 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'customAuthenticationProvider' defined in URL
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 83 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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 93 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': Cannot create inner bean '(inner
bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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)
    ... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'appUserRepository': Cannot create inner bean
'(inner bean)#1979e39' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#1979e39': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)
    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.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)
    ... 103 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#1979e39': Cannot resolve reference to
bean 'entityManagerFactory' while setting constructor argument; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    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.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:632)
    at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:442)
    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.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
    ... 116 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
bad SQL grammar [select  t.id, ts.id as connectionId ,  t.timezone_id as
timezoneId , t.name,t.identifier, ts.schema_name as schemaName,
ts.schema_server as schemaServer, ts.schema_server_port as
schemaServerPort, ts.auto_update as autoUpdate, ts.schema_username as
schemaUsername, ts.schema_password as schemaPassword , ts.pool_initial_size
as initialSize, ts.pool_validation_interval as validationInterval,
ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
    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.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 124 more
Caused by: org.springframework.jdbc.BadSqlGrammarException:
PreparedStatementCallback; bad SQL grammar [select  t.id, ts.id as
connectionId ,  t.timezone_id as timezoneId , t.name,t.identifier,
ts.schema_name as schemaName, ts.schema_server as schemaServer,
ts.schema_server_port as schemaServerPort, ts.auto_update as autoUpdate,
ts.schema_username as schemaUsername, ts.schema_password as schemaPassword
, ts.pool_initial_size as initialSize, ts.pool_validation_interval as
validationInterval, ts.pool_remove_abandoned as removeAbandoned,
ts.pool_remove_abandoned_timeout as removeAbandonedTimeout,
ts.pool_log_abandoned as logAbandoned, ts.pool_abandon_when_percentage_full
as abandonedWhenPercentageFull, ts.pool_test_on_borrow as testOnBorrow,
ts.pool_max_active as poolMaxActive, ts.pool_min_idle as poolMinIdle,
ts.pool_max_idle as poolMaxIdle, ts.pool_suspect_timeout as
poolSuspectTimeout, ts.pool_time_between_eviction_runs_millis as
poolTimeBetweenEvictionRunsMillis, ts.pool_min_evictable_idle_time_millis
as poolMinEvictableIdleTimeMillis, ts.deadlock_max_retries as
maxRetriesOnDeadlock, ts.deadlock_max_retry_interval as
maxIntervalBetweenRetries  from tenants t left join
tenant_server_connections ts on t.oltp_Id=ts.id ]; nested exception is
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    at
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231)
    at
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
    at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:660)
    at
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:695)
    at
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:727)
    at
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:737)
    at
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:792)
    at
org.apache.fineract.infrastructure.security.service.JdbcTenantDetailsService.findAllTenants(JdbcTenantDetailsService.java:145)
    at
org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeAllTenants(TenantDatabaseUpgradeService.java:63)
    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.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
    ... 135 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
'mifosplatform-tenants.tenant_server_connections' doesn't exist
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1054)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2617)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2778)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2825)
    at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2156)
    at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2323)
    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.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
    at com.sun.proxy.$Proxy67.executeQuery(Unknown Source)
    at
org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:703)
    at
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:644)
    ... 148 more

Jun 29, 2017 7:44:49 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
C:\tomcat\webapps\fineract-provider.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

Jun 29, 2017 7:44:49 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\tomcat\webapps\fineract-provider.war has finished in 138,866 ms
Jun 29, 2017 7:44:49 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\docs
Jun 29, 2017 7:44:49 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:49 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\docs has
finished in 700 ms
Jun 29, 2017 7:44:49 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\examples
Jun 29, 2017 7:44:51 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:51 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\examples
has finished in 1,820 ms
Jun 29, 2017 7:44:51 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\host-manager
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
C:\tomcat\webapps\host-manager has finished in 369 ms
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\manager
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\manager has
finished in 383 ms
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\OLDROOT
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\OLDROOT has
finished in 287 ms
Jun 29, 2017 7:44:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\ROOT
Jun 29, 2017 7:44:53 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 7:44:53 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\ROOT has
finished in 212 ms
Jun 29, 2017 7:44:53 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-443"]
Jun 29, 2017 7:44:53 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 147092 ms
Jun 29, 2017 11:24:39 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-443"]
Jun 29, 2017 11:24:41 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6794 ms
Jun 29, 2017 11:24:42 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jun 29, 2017 11:24:42 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.78
Jun 29, 2017 11:24:42 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
C:\tomcat\webapps\fineract-provider.war
Jun 29, 2017 11:25:14 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:16 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.context.ApplicationContextException: Unable
to start embedded container; nested exception is
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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:142)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:89)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:51)
    at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    ... 10 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:153)
    at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
    ... 20 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 43 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'basicAuthenticationProcessingFilter' defined in
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 45 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 58 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 67 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'customAuthenticationProvider' defined in URL
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 83 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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 93 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': Cannot create inner bean '(inner
bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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)
    ... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'appUserRepository': Cannot create inner bean
'(inner bean)#6453d6' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#6453d6': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Unable to obtain Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)
    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.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)
    ... 103 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#6453d6': Cannot resolve reference to
bean 'entityManagerFactory' while setting constructor argument; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
com.googlecode.flyway.core.api.FlywayException: Unable to obtain Jdbc
connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    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.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:632)
    at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:442)
    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.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
    ... 116 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
com.googlecode.flyway.core.api.FlywayException: Unable to obtain Jdbc
connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
    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.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 124 more
Caused by: com.googlecode.flyway.core.api.FlywayException: Unable to obtain
Jdbc connection from DataSource; for Tenant DB URL:
jdbc:mysql://localhost:3306/mifostenant-default, username: root
    at
org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeAllTenants(TenantDatabaseUpgradeService.java:78)
    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.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
    ... 135 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The
driver has not received any packets from the server.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at
com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1121)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:358)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2489)
    at
com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2526)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
    at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347)
    at
com.googlecode.flyway.core.util.jdbc.DriverDataSource.getConnectionFromDriver(DriverDataSource.java:193)
    at
com.googlecode.flyway.core.util.jdbc.DriverDataSource.getConnection(DriverDataSource.java:161)
    at
com.googlecode.flyway.core.util.jdbc.JdbcUtils.openConnection(JdbcUtils.java:50)
    at com.googlecode.flyway.core.Flyway.execute(Flyway.java:1156)
    at com.googlecode.flyway.core.Flyway.migrate(Flyway.java:815)
    at
org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeAllTenants(TenantDatabaseUpgradeService.java:74)
    ... 142 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at
java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at java.net.Socket.<init>(Socket.java:434)
    at java.net.Socket.<init>(Socket.java:244)
    at
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:259)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:308)
    ... 160 more

Jun 29, 2017 11:26:16 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
C:\tomcat\webapps\fineract-provider.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

Jun 29, 2017 11:26:16 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\tomcat\webapps\fineract-provider.war has finished in 94,287 ms
Jun 29, 2017 11:26:16 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\docs
Jun 29, 2017 11:26:17 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:17 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\docs has
finished in 345 ms
Jun 29, 2017 11:26:17 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\examples
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\examples
has finished in 1,097 ms
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\host-manager
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
C:\tomcat\webapps\host-manager has finished in 290 ms
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\manager
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\manager has
finished in 309 ms
Jun 29, 2017 11:26:18 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\OLDROOT
Jun 29, 2017 11:26:19 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:19 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\OLDROOT has
finished in 259 ms
Jun 29, 2017 11:26:19 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\ROOT
Jun 29, 2017 11:26:19 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:26:19 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\ROOT has
finished in 235 ms
Jun 29, 2017 11:26:19 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-443"]
Jun 29, 2017 11:26:19 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 98271 ms
Jun 29, 2017 11:34:32 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-443"]
Jun 29, 2017 11:34:33 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1926 ms
Jun 29, 2017 11:34:34 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jun 29, 2017 11:34:34 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.78
Jun 29, 2017 11:34:34 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
C:\tomcat\webapps\fineract-provider.war
Jun 29, 2017 11:34:49 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:50 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.context.ApplicationContextException: Unable
to start embedded container; nested exception is
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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:142)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:89)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:51)
    at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    ... 10 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:153)
    at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
    ... 20 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 43 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'basicAuthenticationProcessingFilter' defined in
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 45 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 58 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 67 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'customAuthenticationProvider' defined in URL
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 83 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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 93 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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'appUserRepository': Cannot create inner bean
'(inner bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)
    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.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)
    ... 103 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#f694ef': Cannot resolve reference to
bean 'entityManagerFactory' while setting constructor argument; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
com.googlecode.flyway.core.api.FlywayException: Migration of schema
`mifostenant-default` to version 3 failed! Please restore backups and roll
back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:632)
    at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:442)
    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.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
    ... 116 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
com.googlecode.flyway.core.api.FlywayException: Migration of schema
`mifostenant-default` to version 3 failed! Please restore backups and roll
back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
    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.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 124 more
Caused by: com.googlecode.flyway.core.api.FlywayException: Migration of
schema `mifostenant-default` to version 3 failed! Please restore backups
and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    at
org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeAllTenants(TenantDatabaseUpgradeService.java:78)
    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.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
    ... 135 more

Jun 29, 2017 11:35:51 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
C:\tomcat\webapps\fineract-provider.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

Jun 29, 2017 11:35:51 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\tomcat\webapps\fineract-provider.war has finished in 76,736 ms
Jun 29, 2017 11:35:51 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\docs
Jun 29, 2017 11:35:51 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:51 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\docs has
finished in 270 ms
Jun 29, 2017 11:35:51 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\examples
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\examples
has finished in 805 ms
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\host-manager
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
C:\tomcat\webapps\host-manager has finished in 271 ms
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\manager
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\manager has
finished in 240 ms
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\OLDROOT
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\OLDROOT has
finished in 218 ms
Jun 29, 2017 11:35:52 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\ROOT
Jun 29, 2017 11:35:53 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:35:53 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\ROOT has
finished in 217 ms
Jun 29, 2017 11:35:53 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-443"]
Jun 29, 2017 11:35:53 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 79439 ms
Jun 29, 2017 11:41:40 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-443"]
Jun 29, 2017 11:41:41 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1743 ms
Jun 29, 2017 11:41:41 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jun 29, 2017 11:41:41 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.78
Jun 29, 2017 11:41:41 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
C:\tomcat\webapps\fineract-provider.war
Jun 29, 2017 11:41:58 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:01 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.context.ApplicationContextException: Unable
to start embedded container; nested exception is
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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:142)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:89)
    at
org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:51)
    at
org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5623)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    ... 10 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:153)
    at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:121)
    ... 20 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
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 43 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'basicAuthenticationProcessingFilter' defined in
file
[C:\tomcat\webapps\fineract-provider\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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root; 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 45 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 58 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
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 67 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'customAuthenticationProvider' defined in URL
[file:/C:/tomcat/webapps/fineract-provider/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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 83 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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 93 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': Cannot create inner bean '(inner
bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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)
    ... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'appUserRepository': Cannot create inner bean
'(inner bean)#f694ef' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean
property 'entityManager'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)#f694ef': Cannot resolve reference to bean
'entityManagerFactory' while setting constructor argument; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'tenantDatabaseUpgradeService': Invocation of init method
failed; nested exception is com.googlecode.flyway.core.api.FlywayException:
Migration of schema `mifostenant-default` to version 3 failed! Please
restore backups and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129)
    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.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)
    ... 103 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)#f694ef': Cannot resolve reference to
bean 'entityManagerFactory' while setting constructor argument; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
com.googlecode.flyway.core.api.FlywayException: Migration of schema
`mifostenant-default` to version 3 failed! Please restore backups and roll
back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    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.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:632)
    at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:442)
    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.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:276)
    ... 116 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tenantDatabaseUpgradeService': Invocation of init
method failed; nested exception is
com.googlecode.flyway.core.api.FlywayException: Migration of schema
`mifostenant-default` to version 3 failed! Please restore backups and roll
back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
    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.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    ... 124 more
Caused by: com.googlecode.flyway.core.api.FlywayException: Migration of
schema `mifostenant-default` to version 3 failed! Please restore backups
and roll back database and code!; for Tenant DB URL:
jdbc:mysql://localhost:3307/mifostenant-default, username: root
    at
org.apache.fineract.infrastructure.core.service.TenantDatabaseUpgradeService.upgradeAllTenants(TenantDatabaseUpgradeService.java:78)
    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.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
    at
org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
    ... 135 more

Jun 29, 2017 11:43:01 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
C:\tomcat\webapps\fineract-provider.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/fineract-provider]]
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1092)
    at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1984)
    at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

Jun 29, 2017 11:43:01 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive
C:\tomcat\webapps\fineract-provider.war has finished in 79,706 ms
Jun 29, 2017 11:43:01 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\docs
Jun 29, 2017 11:43:01 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:01 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\docs has
finished in 310 ms
Jun 29, 2017 11:43:01 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\examples
Jun 29, 2017 11:43:02 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:02 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\examples
has finished in 954 ms
Jun 29, 2017 11:43:02 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\host-manager
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory
C:\tomcat\webapps\host-manager has finished in 315 ms
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\manager
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\manager has
finished in 343 ms
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\OLDROOT
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\OLDROOT has
finished in 295 ms
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory C:\tomcat\webapps\ROOT
Jun 29, 2017 11:43:03 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.
Jun 29, 2017 11:43:04 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory C:\tomcat\webapps\ROOT has
finished in 310 ms
Jun 29, 2017 11:43:04 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-443"]
Jun 29, 2017 11:43:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 82921 ms


-- 
Kimani Nganga
www.kibiri.com


Mime
View raw message