RE: Upgrade Apache Tomcat Version for Fineract

2019-05-27 Thread Angel Cajas
Hi,

I run the tomcatRunWar task and is running Ok.  Also I checked the generated 
files and the version packaged inside them it’s the right one 8.0.30 compatible 
with the current Spring version.

However when I run the build task with this command: -Penv=dev clean build dist

It seems that is packaging 8.0.3 and 7.0.55 versions of tomcat-embed libraries 
in the jar and war files as seen in this picture.

[cid:image001.png@01D514A5.E4A11920]

This only happens when the files are built with env parameter as dev. It may 
not be a big issue since apparently I’m the only one running the build task 
with this parameter. I will continue checking this issue and I’ll let you know 
if I find something else.

Thanks for your attention


From: Awasum Yannick 
Sent: lunes, 27 de mayo de 2019 14:04
To: Dev 
Subject: Re: Upgrade Apache Tomcat Version for Fineract

Hi,

Does tomcatRunWar task not work with the current code base?

If this is the case, then create an issue, send a PR and we will review 
together.

Thanks

On Mon, May 27, 2019, 16:59 Angel Cajas 
mailto:angel.ca...@bowpi.com>> wrote:
Hello devs,

I’ve been testing some features recently and tried to deploy Fineract using the 
embedded Tomcat server that it’s used while building the project with dev 
environment. However the next error was thrown when I tried to start the app 
with embedded Tomcat server:

Caused by: java.lang.IllegalStateException: Expected method not found: 
java.lang .NoSuchMethodException

It seems that Spring and Spring Boot versions were upgraded some months ago and 
that change also required the upgrade of Tomcat from version 7.0.54 to version 
8.0.30 in the project dependencies.  I changed the version and it worked for 
me, however I would like to know your opinions and if this change and if this 
has also happened to you while trying to start Fineract with the embedded 
server.

Thanks for you attention

Regards, Angel.




Re: Fineract CN Fims Web App: Angular 7 Upgrade

2019-05-27 Thread Ruphine Kengne
Hello Vishwas,

I have added some commits to this PR
 which reduces
some of the errors I faced and upgraded the ngrx to v7.
Please can you merged that to the FINCN-154 branch you created so that
anyone can clone that branch to contribute.

Thanks.

On Tue, 7 May 2019 at 19:48, Ruphine Kengne  wrote:

> Thanks Vishwas
>
> On Tue, 7 May 2019 at 17:23, Vishwas Babu 
> wrote:
>
>> Hello Ruphine,
>>
>> >>Can a new branch be created on the Apache repository for me to push the
>> changes there so as to enable other people to contribute?
>> Done,  https://github.com/apache/fineract-cn-fims-web-app/tree/FINCN-154
>>  .
>>
>> Regards,
>> Vishwas
>>
>>
>>
>> On Tue, May 7, 2019 at 6:52 AM Ruphine Kengne 
>> wrote:
>>
>>> Hello Everyone,
>>>
>>> Hope this email finds you in good health.
>>>
>>> I have started upgrading fims web-app from angular v4 to v7 to solve the
>>> errors I faced when writing unit test. Here,
>>> https://issues.apache.org/jira/browse/FINCN-102
>>>
>>> I have created a Jira ticket :
>>> https://issues.apache.org/jira/browse/FINCN-154 to keep track.
>>> Here, is the link to my github repository :
>>> https://github.com/kengneruphine/fineract-cn-fims-web-app/tree/angular-7-upgrade
>>> with the new branch I created to contain the upgrade.
>>>
>>> Can a new branch be created on the Apache repository for me to push the
>>> changes there so as to enable other people to contribute?
>>>
>>> Right now, am facing some errors with ngrx and here is the link to the
>>> paste bin containing  the errors : https://pastebin.com/uvZLCwy5.
>>>
>>> Please, Mark can you help with the errors above?
>>>
>>> Thanks
>>> Ruphine Kengne
>>>
>>>


Re: How to generate tables for Fineract CN

2019-05-27 Thread Kelvin Ikome
Take a look at this:
https://github.com/apache/fineract-cn-portfolio/blob/develop/service/src/main/java/org/apache/fineract/cn/portfolio/service/rest/InitializeRestController.java

On Mon, May 27, 2019 at 7:19 AM Kelvin Ikome  wrote:

> There should be an "/initialize" endpoint for every microservice. I think
> you can trigger the process by making an API call to this endpoint.
>
> On Mon, May 27, 2019 at 7:07 AM robertjoseph...@gmail.com <
> robertjoseph...@gmail.com> wrote:
>
>>
>>
>> On 2019/05/27 04:52:25, Kelvin Ikome  wrote:
>> > Hi Robert,
>> >
>> > Check if the portfolio service has been provisioned. If not, you would
>> need
>> > to provision it to create the database tables.
>> >
>> > Kelvin
>> >
>> > On Mon, May 27, 2019 at 4:18 AM robertjoseph...@gmail.com <
>> > robertjoseph...@gmail.com> wrote:
>> >
>> > >
>> > >
>> > > On 2019/05/23 05:13:27, robertjoseph...@gmail.com <
>> > > robertjoseph...@gmail.com> wrote:
>> > > > Hello everyone,
>> > > >
>> > > > I have managed to deploy Fineract CN on Docker. I used the scripts
>> from
>> > > here: https://github.com/openMF/fineract-cn-containers
>> > > >
>> > > > After running start-up.sh, I then run the provision.sh script using
>> > > 'bash set-up.sh provision samplethree'
>> > > >
>> > > > I am able to sucessfully log-in and access the Office, Employee, and
>> > > edit Roles and Permissions functions. However for the other functions
>> like
>> > > Member, Loan Product, Deposit Account Management I am unable to do
>> anything
>> > > with them. When I go to their respective pages, I get the error
>> message:
>> > > >
>> > > > Service not available
>> > > > We are very sorry, it seems there is a problem with our servers.
>> Please
>> > > contact your administrator if the problem occurs.
>> > > >
>> > > > Upon checking the logs, I get the following error:
>> > > java.sql.SQLSyntaxErrorException: Table 'samplethree.bastet_products'
>> > > doesn't exist
>> > > >
>> > > > https://pastebin.com/VhMp8hCT
>> > > >
>> > > > So how do I generate the various tables like bastet_products?
>> > > >
>> > > > Thank you.
>> > > >
>> > > > Regards,
>> > > >
>> > > > Robert Di
>> > > >
>> > >
>> > > Hello Fineract community,
>> > >
>> > > Just want to follow up on this.
>> > >
>> > > Thank you!
>> > >
>> > > Robert Di
>> > >
>> > Hi Kelvin,
>>
>> Thank you for replying! Yes I have provisioned the portfolio service for
>> my tenant. However the tables are not generated. I have tried already
>> generating many tenants using the set-up.sh and provision.sh scripts, (e.g.
>> bash set-up.sh provision tenantone)
>>
>> Sometimes all tables for all services are created successfully, sometimes
>> only a few tables are generated, sometimes not even one table is created. I
>> also sometimes get Access Denied errors like this one below:
>>
>> {
>>   "timestamp": 1558936951136,
>>   "status": 403,
>>   "error": "Forbidden",
>>   "message": "Access Denied",
>>   "path": "/identity/v1/users/operator/password"
>> }
>>
>> Can this be the cause for the tables sometimes not being generated? Do
>> you have any idea how Flyway for each service is being triggered by the
>> provisioner?
>>
>> Thank you.
>>
>> Robert Di
>>
>


Re: How to generate tables for Fineract CN

2019-05-27 Thread robertjoseph . di



On 2019/05/27 04:52:25, Kelvin Ikome  wrote: 
> Hi Robert,
> 
> Check if the portfolio service has been provisioned. If not, you would need
> to provision it to create the database tables.
> 
> Kelvin
> 
> On Mon, May 27, 2019 at 4:18 AM robertjoseph...@gmail.com <
> robertjoseph...@gmail.com> wrote:
> 
> >
> >
> > On 2019/05/23 05:13:27, robertjoseph...@gmail.com <
> > robertjoseph...@gmail.com> wrote:
> > > Hello everyone,
> > >
> > > I have managed to deploy Fineract CN on Docker. I used the scripts from
> > here: https://github.com/openMF/fineract-cn-containers
> > >
> > > After running start-up.sh, I then run the provision.sh script using
> > 'bash set-up.sh provision samplethree'
> > >
> > > I am able to sucessfully log-in and access the Office, Employee, and
> > edit Roles and Permissions functions. However for the other functions like
> > Member, Loan Product, Deposit Account Management I am unable to do anything
> > with them. When I go to their respective pages, I get the error message:
> > >
> > > Service not available
> > > We are very sorry, it seems there is a problem with our servers. Please
> > contact your administrator if the problem occurs.
> > >
> > > Upon checking the logs, I get the following error:
> > java.sql.SQLSyntaxErrorException: Table 'samplethree.bastet_products'
> > doesn't exist
> > >
> > > https://pastebin.com/VhMp8hCT
> > >
> > > So how do I generate the various tables like bastet_products?
> > >
> > > Thank you.
> > >
> > > Regards,
> > >
> > > Robert Di
> > >
> >
> > Hello Fineract community,
> >
> > Just want to follow up on this.
> >
> > Thank you!
> >
> > Robert Di
> >
> Hi Kelvin,

Thank you for replying! Yes I have provisioned the portfolio service for my 
tenant. However the tables are not generated. I have tried already generating 
many tenants using the set-up.sh and provision.sh scripts, (e.g. bash set-up.sh 
provision tenantone)

Sometimes all tables for all services are created successfully, sometimes only 
a few tables are generated, sometimes not even one table is created. I also 
sometimes get Access Denied errors like this one below:

{
  "timestamp": 1558936951136,
  "status": 403,
  "error": "Forbidden",
  "message": "Access Denied",
  "path": "/identity/v1/users/operator/password"
}

Can this be the cause for the tables sometimes not being generated? Do you have 
any idea how Flyway for each service is being triggered by the provisioner?

Thank you.

Robert Di