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

Michael Vorburger.ch commented on FINERACT-730:
-----------------------------------------------

This seems to be related to https://mifosforge.jira.com/browse/MIFOSX-1738 ... 
reading on https://groups.google.com/forum/#!topic/mifosdeveloper/euG_DQ40Z00, 
there were two separate reasons why the self executable WAR was disabled to 
reduce the size:

1. bundling of (my!) https://github.com/vorburger/MariaDB4j

2. bundling of embedded Tomcat for Spring Boot

I actually totally agree with 1. - MariaDB4j is meant for development (it's 
great e.g. for making it simple and easy to run integration tests...) and it's 
debatable whether it's a great idea to bundle it in the default WAR. The 
original idea (mine) was that this would make it REALLY easy to try out Mifos 
for anyone wanting to evaluate it - how it originally was, you could literally 
just double click the mifos.war, and it would start up - including an embedded 
database and the UI! That was cool. But in hindsight, that perhaps should just 
be one of several possible packages, and not the only one; embedded MariaDB4j 
in the default was perhaps confusing, and makes less sense in today's container 
age.

I disagree, fairly strongly, with 2. The WAR model and requiring to deploy in 
an external Tomcat "J2EE Web" container is... dead. Nobody sane does this 
anymore nowadays, in a modern architecture. It's the very reason for the 
success of Spring Boot, or e.g. https://quarkus.io for that matter. I would 
therefore suggest that we re-revert that again so that the (now) Fineract 
distribution is a simple executable WAR file again (but still without 
MariaDB4j). Does anyone have any objections to this?

FINERACT-764 probably requires this as well.

> Fix failing gradle task bootRun & can't run simple Spring Boot java -jar 
> (without Tomcat)
> -----------------------------------------------------------------------------------------
>
>                 Key: FINERACT-730
>                 URL: https://issues.apache.org/jira/browse/FINERACT-730
>             Project: Apache Fineract
>          Issue Type: Bug
>          Components: Build, System
>    Affects Versions: 1.3.0
>            Reporter: Courage Angeh
>            Priority: Critical
>              Labels: build
>             Fix For: 1.3.1
>
>
> Running all gradle task: rat, build, bootRun; produces the following error
> *...*
> {{_:bootRun_}}
> {{_Error: Could not find or load main class 
> org.apache.fineract.ServerWithMariaDB4jApplication_}}
> {{_:bootRun FAILED_}}{{_FAILURE: Build failed with an exception._}}{{_* What 
> went wrong:_}}
> {{_Execution failed for task ':bootRun'._}}
> {{_> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with 
> non-zero exit value 1_}}{{_* Try:_}}
> {{_Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output._}}{{_BUILD FAILED_}}
>  
> More information can be found on the following threads:
> [https://lists.apache.org/thread.html/1f01897413545729420c66355d3211d625ebbd245a98407220783bfc@%3Cdev.fineract.apache.org%3E]
> https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to