[ 
https://issues.apache.org/jira/browse/FINERACT-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17211923#comment-17211923
 ] 

Francis Guchie edited comment on FINERACT-1115 at 10/11/20, 1:44 PM:
---------------------------------------------------------------------

I think i had 2 options

Option1 editing file src\main\resources\META-INF\spring\hikariDataSource.xml    
before building the war (since i use tomcat)

or 

Option2 editing 
tomcat\webapps\fineract-provider\WEB-INF\classes\META-INF\spring\hikariDataSource.xml
  but this can only be done using the default passwords - you launch tomcat 
once all is ok stop tomcat and edit the file 
 so i edited the server.xml too with the new root password

      <property name=_"driverClassName"_ value=_"${fineract_tenants_driver}"_ />

        <property name=_"jdbcUrl"_ value=_"${fineract_tenants_url}"_ />

        <property name=_"username"_ value=_"*put the user name*"_ />

        <property name=_"password"_ value=_"*put the password*"_ />

also set the user name and password in mysql 

Started tomcat and all worked like a charm 

 
[~ptuomola]  please close this issue all is ok now


was (Author: francisguchie):
I think i had 2 options

Option1 editing file src\main\resources\META-INF\spring\hikariDataSource.xml    
before building the war (since i use tomcat)

or 

Option2 editing 
tomcat\webapps\fineract-provider\WEB-INF\classes\META-INF\spring\hikariDataSource.xml
  but this can only be done using the default passwords - you launch tomcat 
once all is ok stop tomcat and edit the file 
so i edited the server.xml too with the new root password



      <property name=_"driverClassName"_ value=_"${fineract_tenants_driver}"_ />

        <property name=_"jdbcUrl"_ value=_"${fineract_tenants_url}"_ />

        <property name=_"username"_ value=_"*put the user name*"_ />

        <property name=_"password"_ value=_"*put the password*"_ />

also set the user name and password in mysql 

Started tomcat and all worked like a charm 

 

> Not possible to start tomcat if root password is not "mysql"
> ------------------------------------------------------------
>
>                 Key: FINERACT-1115
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1115
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.4.0
>            Reporter: Francis Guchie
>            Assignee: Francis Guchie
>            Priority: Critical
>              Labels: beginner
>
> After a successfull installation following steps here 
> [https://mifosforge.jira.com/wiki/spaces/docs/pages/74711072/Mifos+X+Installation+on+Linux+-+Ubuntu+Server]
>  , it was possible to change the suggested root password for MySQL. 
> But for the latest build, if you change the root password from "mysql" to 
> something else, when you start tomcat, you will get errors. This looks like 
> the root password (the suggested one) is hard coded in some files of the 
> fineract



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to