[
https://issues.apache.org/jira/browse/FINERACT-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16863526#comment-16863526
]
Michael Vorburger.ch commented on FINERACT-730:
-----------------------------------------------
Much worse than just {{./gradlew bootRun}} causing the error shown above for
developers, it's actually totally broken for end-users in production as well!
If one downloads
https://www.apache.org/dyn/closer.cgi?path=/fineract/1.3.0/apache-fineract-1.3.0-binary.tar.gz
and wants to just start it, without Tomcat, which is the whole idea of Spring
Boot based applications, it fails similarly:
{noformat}
$ java -jar
'/home/vorburger/Downloads/apache-fineract-1.3.0-binary/fineract-provider.war'
java.lang.ClassNotFoundException:
org.apache.fineract.ServerWithMariaDB4jApplication
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at
org.springframework.boot.loader.LaunchedURLClassLoader.doLoadClass(LaunchedURLClassLoader.java:168)
at
org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:134)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:46)
at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}
> Fix failing gradle task: build, rat and bootRun
> -----------------------------------------------
>
> Key: FINERACT-730
> URL: https://issues.apache.org/jira/browse/FINERACT-730
> Project: Apache Fineract
> Issue Type: Bug
> Components: Build, System
> Reporter: Courage Angeh
> Priority: Critical
> Labels: build
>
> 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)