Airsay-  is this resolved?

did a ticket get created for WAR file env  and provide documentation?

Did you get things working?

James


On Mon, Mar 14, 2022 at 12:37 PM Aleksandar Vidakovic <
[email protected]> wrote:

> ... from the top of my head I remember that you could add a script
> "setenv.sh" (see tomcat documentation to verify) to add additional
> environment variables... what I would do in your place if you need to stick
> with the the WAR/Tomcat approach: create that "setenv.sh" file and put it
> in the proper place (I think it was Tomcat's bin folder) and just add all
> those environment variables you see in the docker-compose.yml file in the
> section "environment" (and adapt values if necessary). The variable
> definitions in setenv.sh would looks something like this:
>
> export VAR_NAME="some value"
>
> ... in words: you need to add the "export" keyword, no colons, put values
> in between double-quotes.
>
> "setenv.sh" should be automatically loaded before your tomcat instance is
> started and makes those env vars available to Fineract (WAR).
>
> Feel free to create a Jira ticket if you want these instructions included
> in the next release (I think we don't have it in this detail) and/or if we
> should add such a "setenv.sh" in our release for everyone's convenience
> (those of the community who use WAR deployments). You can assign me the
> ticket...
>
> Please let me know if that works...
>
> Cheers
>
> On Mon, Mar 14, 2022 at 4:33 PM AirsayLongCon <[email protected]>
> wrote:
>
>> Hello Aleks,
>> Thank you for the response. So I'm conversant with running Fineract using
>> the WAR running on Tomcat with MySQL and the community app as the Frontend.
>> I was unable to generate the WAR file (or I now believe I was may have been
>> looking at the wrong build folder for it) which was why I tried running the
>> jar file for a quick experience with v1.6 to see what changes exist. What
>> would be the best step-by-step means of testing fineract running the jar? I
>> have an Ubuntu Linux box running JDK 17.0.2 and MariaDB 10.6. While Docker
>> may be an easy solution for a testing for a lot of folks, I'm not
>> conversant with Docker with more of my virtualization experience coming
>> from Proxmox.
>>
>> TIA
>>
>> Regards
>>
>>
>> On Mon, 14 Mar 2022, 10:13 am Aleksandar Vidakovic, <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> ... I am not sure if we have a recommendation for running Fineract (and
>>> I know there are a lot of people using the WAR deployments), but among the
>>> choices you have (Docker, single JAR, WAR) Docker should be the easiest.
>>> Just go with the Docker Compose file in the root folder... saves you all
>>> the hassle of setting up environment variables and a separate database.
>>>
>>> Concerning the community app: we recently put it in a separate Docker
>>> compose file (docker-compose-community-app.yml)... just start with
>>> "docker-compose -f docker-compose-community-app.yml up".
>>>
>>> Note: I see that you are running all this on the develop branch...
>>> please keep in mind that things are in flux in that branch... and most
>>> importantly (if you used Fineract before): we have new database migration
>>> mechanics in place and replaced Flyway with Liquibase (if you start
>>> from scratch it doesn't matter).
>>>
>>> Hope this helps.
>>>
>>> Cheers,
>>>
>>> Aleks
>>>
>>> On Mon, Mar 14, 2022 at 9:42 AM AirsayLongCon <[email protected]>
>>> wrote:
>>>
>>>> Thank you for your response Nasser. So part of the instruction for
>>>> running the jar says:
>>>>
>>>> The tenants database connection details are configured via environment
>>>> variables (as with Docker container), e.g. like this:
>>>>
>>>> export FINERACT_HIKARI_PASSWORD=verysecret
>>>> ...
>>>> java -jar fineract-provider.jar
>>>>
>>>> But there's no clear instructions for setting the environment variables
>>>> or where to even set them. Also when running the jar where does one deploy
>>>> the Mifos community-app Frontend?
>>>>
>>>> TIA
>>>>
>>>> Regards
>>>>
>>>> On Mon, 14 Mar 2022, 9:21 am Nasser Kaze, <[email protected]> wrote:
>>>>
>>>>> Hi AirsayLongCon,
>>>>>
>>>>> The error suggests a problem with connection to your database.
>>>>> Fineract by default tries to connect to the database with the credentials:
>>>>> user: “root” password: “mysql”.
>>>>>
>>>>> Unless you’ve changed this setting in the project configuration, you
>>>>> want to make sure your database root user has thesame password.
>>>>>
>>>>> Regards
>>>>> Nasser
>>>>>
>>>>>
>>>>> AirsayLongCon <[email protected]> schrieb am Mo. 14. März 2022
>>>>> um 07:56:
>>>>>
>>>>>> Hello everyone,
>>>>>> I am having some issues attempting to run the jar. When I run the
>>>>>> following
>>>>>>
>>>>>> ```java -Dloader.path=. -jar
>>>>>> fineract-provider/build/libs/fineract-provider.jar```
>>>>>>
>>>>>> I get the following error in the attached file.
>>>>>>
>>>>>> How can I fix this?
>>>>>>
>>>>>> Regards
>>>>>> Airsay
>>>>>>
>>>>> --
Sent from Gmail Mobile

Reply via email to