All Looking at the log file shared by Tube, turns out that he has stumbled on quite an interesting problem:
It seems that you can’t run Fineract on a machine that is not connected to the internet. I think the duplicate index error was relating to a corrupt MySQL instance. After that’s fixed, the following error remains: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [securityContext.xml] Offending resource: URL [file:/usr/local/Cellar/tomcat/9.0.38/libexec/webapps/fineract-provider/WEB-INF/classes/META-INF/spring/appContext.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 223 in XML document from URL [file:/usr/local/Cellar/tomcat/9.0.38/libexec/webapps/fineract-provider/WEB-INF/classes/META-INF/spring/securityContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 223; columnNumber: 63; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oauth:authorization-server’. I can reproduce this by simply unplugging the network cable from my own machine. It seems that our JAR/WAR does not include some xsds needed to validate the XML config files. If the machine used is connected to the internet, these are downloaded automatically - but if not, Fineract does not start. Given these are related to Spring Security, I wonder if this will be fixed by upgrading the Spring Security JARs? Anyway - I’ll log a JIRA for this, but thought I’d share it for your information/entertainment... Regards Petri > On 6 Oct 2020, at 7:24 PM, Petri Tuomola <pe...@tuomola.org> wrote: > > Hi Tube - that all looks OK. > > Doing ./gradlew just means running the gradlew in the current directory on > UNIX-like OS, as typically you would not have current directory in your PATH. > > Can you send me (petri.tuom...@gmail.com <mailto:petri.tuom...@gmail.com>) > your full Tomcat log file please. Maybe I can see what’s going wrong > somewhere earlier. Not just the section with the error, but the entire file > please. > > Regards > Petri > >> On 6 Oct 2020, at 7:15 PM, ጓይላና Tube <eminemme...@gmail.com >> <mailto:eminemme...@gmail.com>> wrote: >> >> hi. >> Petri Tuomola thank you for your response. here are the list of commands i >> have followed to build fineract. >> 1.install mysql version 5.7 and Tomcat version 9 2. >> 2. i have created tenants database using gradlew createDB >> -PdbName=fineract_tenants command >> 3. i have created Created default tenant database using gradlew createDB >> -PdbName=fineract_default command >> 4. i have created fineract War using gradlew clean bootwar command >> 5. deploy created war file inside Tomcat/Webapps. >> >> But, is there any difference between gradlew clean bootwar and ./gradlew >> clean bootwar? because when i run ./gralew clean bootwar command am getting >> an error message '.' is not recognized as an internal or external command >> >> Regards >> >> >