fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mifos Community Support <community.supp...@confluxtechnologies.com>
Subject Re: Facing problems getting started with the project on eclipse
Date Tue, 27 Dec 2016 06:18:18 GMT
You need to run this as gradle project. I still see entities are not
enhanced. Can you try alternate approach running the following command on
fineract-provider directory.

gradlew clean tomcatrunwar

On Tue, Dec 27, 2016 at 10:44 AM, Saurabh Chakrabarti <
saurabhchakrabarti@gmail.com> wrote:

> Hi,
>
> Thanks for your reply.
>
> I have followed the instructions here -
> https://mifosforge.jira.com/wiki/display/MDZ/Eclipse+Setup (used STS
> instead of eclipse)
>
> Post this, I have also imported it as a gradle project.
>
> I still get the same error message
>
> 10:24:04.755 [main] ERROR o.s.boot.SpringApplication - Application startup
> failed
> org.springframework.context.ApplicationContextException: Unable to start
> embedded container; nested exception is
> org.springframework.boot.context.embedded.EmbeddedServletContainerExcept
> ion:
> Unable to start embedded Tomcat
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> onRefresh(EmbeddedWebApplicationContext.java:124)
> ~[spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:476)
> ~[spring-context-4.0.8.RELEASE.jar:4.0.8.RELEASE]
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> refresh(EmbeddedWebApplicationContext.java:109)
> ~[spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at
> org.springframework.boot.SpringApplication.refresh(
> SpringApplication.java:691)
> [spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
> [spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:952)
> [spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:941)
> [spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at org.apache.fineract.ServerApplication.main(ServerApplication.java:52)
> [bin/:na]
> Caused by:
> org.springframework.boot.context.embedded.EmbeddedServletContainerExcept
> ion:
> Unable to start embedded Tomcat
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer
> .java:100)
> ~[spring-boot-1.1.6.RELEASE.jar:1.1.6.RELEASE]
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.<init>
>
> full dump here - http://pastebin.com/79GtVEQb
>
>
> I also tried debug build using ServerWithMariaDB4jApplication class to no
> avail. (see error trace here - http://pastebin.com/Add4tnDA)
>
> I'm able to run the project normally, but facing problems using
> eclipse/STS(which I want to use for development).
>
> Not sure what I'm missing over here.
>
> Regards,
> Saurabh
>
> On 26 December 2016 at 12:58, Mifos Community Support <
> community.support@confluxtechnologies.com> wrote:
>
> > Hi Saurabh,
> >
> >  Also one more thing, you need to configure this project as Gradle
> project.
> > Once you configure this, you will get the options to run this project as
> > Gradle project. Another way is you run the project in command prompt
> > "gradlew clean tomcatRunWar".
> >
> > FYI: We have configured build time enhancement to all JPA entities with
> > OpenJPA whereas it was runtime enhancement with Hibernate.
> >
> >
> > On Mon, Dec 26, 2016 at 12:38 PM, Mifos Community Support <
> > community.support@confluxtechnologies.com> wrote:
> >
> > > Hi Saurabh,
> > >
> > > I think it's better to you, use "Spring tool suite (STS)" instead of
> > > eclipse. Since you are building the project as Gradle project, in
> eclipse
> > > not able to enhanced openJPA at runtime.
> > >
> > >
> > > On Sun, Dec 25, 2016 at 10:03 AM, Saurabh Chakrabarti <
> > > saurabhchakrabarti@gmail.com> wrote:
> > >
> > >> Hi Guys,
> > >>
> > >> I'm new here and have started to get my hands dirty with the codebase,
> > but
> > >> have been facing some problems. Would be great if someone could help
> me
> > >> out
> > >> with this.
> > >>
> > >> I have installed java8, mysql 5.6.33, tomcat 7.0.69
> > >> When I import the project to Eclipse and try to run it, I get the
> > >> following
> > >> exception when I run ServerApplication class
> > >>
> > >> Exception in thread "main"
> > >> org.springframework.context.ApplicationContextException:
> > >> Unable to start embedded container; nested exception is
> > >> org.springframework.boot.context.embedded.EmbeddedServletCon
> > >> tainerException:
> > >> Unable to start embedded Tomcat
> > >>     at org.springframework.boot.context.embedded.
> > >> EmbeddedWebApplicationContext.onRefresh(
> EmbeddedWebApplicationContext.
> > >> java:124)
> > >>     at org.springframework.context.support.
> AbstractApplicationContext.
> > >> refresh(AbstractApplicationContext.java:476)
> > >>     at org.springframework.boot.context.embedded.
> > >> EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.
> > >> java:109)
> > >>     at org.springframework.boot.SpringApplication.refresh(
> > >> SpringApplication.java:691)
> > >>     at org.springframework.boot.SpringApplication.run(
> > >> SpringApplication.java:320)
> > >>     at org.springframework.boot.SpringApplication.run(
> > >> SpringApplication.java:952)
> > >>     at org.springframework.boot.SpringApplication.run(
> > >> SpringApplication.java:941)
> > >>     at org.apache.fineract.ServerApplication.main(ServerApplication
> > >> .java:52)
> > >> Caused by: org.springframework.boot.context.embedded.
> > >> EmbeddedServletContainerException: Unable to start embedded Tomcat
> > >>     at org.springframework.boot.context.embedded.tomcat.
> > >> TomcatEmbeddedServletContainer.initialize(
> > TomcatEmbeddedServletContainer
> > >> .java:100)
> > >>     at org.springframework.boot.context.embedded.tomcat.
> > >> TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer
> > >> .java:74)
> > >>     at org.springframework.boot.context.embedded.tomcat.
> > >> TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContai
> > ner(
> > >> TomcatEmbeddedServletContainerFactory.java:295)
> > >>     at org.springframework.boot.context.embedded.tomcat.
> > >> TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(
> > >> TomcatEmbeddedServletContainerFactory.java:147)
> > >>     at org.springframework.boot.context.embedded.
> > >> EmbeddedWebApplicationContext.createEmbeddedServletContainer(
> > >> EmbeddedWebApplicationContext.java:148)
> > >>     at org.springframework.boot.context.embedded.
> > >> EmbeddedWebApplicationContext.onRefresh(
> EmbeddedWebApplicationContext.
> > >> java:121)
> > >>     ... 7 more
> > >>
> > >>
> > >> Please find the full exception trace here -
> > http://pastebin.com/u9R644Bf
> > >>
> > >> Could someone help me out with where I'm going wrong? Please let me
> know
> > >> if
> > >> any more information is required.
> > >>
> > >> Regards,
> > >> Saurabh
> > >>
> > >
> > >
> > >
> > > --
> > > Thanks and regards,
> > > Mifos Community Support
> > >
> > >
> > > ​
> > > *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/> *
> > >
> > > #304, 2nd Floor, 7th Main Road
> > >
> > > HRBR Layout 1st Block
> > >
> > > Bengaluru, Karnataka, 560043 INDIA
> > >
> > >
> > > Disclaimer: The information contained in this e-mail message and any
> > > files/attachment transmitted with it is confidential and for the sole
> use
> > > of the intended recipient(s) or entity identified. If you are not the
> > > intended recipient, please email: support@confluxtechnologies.com and
> > > destroy/delete all copies and attachment thereto along with the
> original
> > > message. Any unauthorised review, use, disclosure, dissemination,
> > > forwarding, printing or copying of this email or any action taken in
> > > reliance on this e-mail is strictly prohibited and is unlawful. The
> > > recipient acknowledges that Conflux Technologies Private Limited or its
> > > subsidiaries and associated companies are unable to exercise control or
> > > ensure or guarantee the integrity of/over the contents of the
> information
> > > contained in e-mail transmissions. Before opening any attachments,
> please
> > > check.
> > >
> >
> >
> >
> > --
> > Thanks and regards,
> > Mifos Community Support
> >
> >
> > ​
> > *Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/> *
> >
> > #304, 2nd Floor, 7th Main Road
> >
> > HRBR Layout 1st Block
> >
> > Bengaluru, Karnataka, 560043 INDIA
> >
> >
> > Disclaimer: The information contained in this e-mail message and any
> > files/attachment transmitted with it is confidential and for the sole use
> > of the intended recipient(s) or entity identified. If you are not the
> > intended recipient, please email: support@confluxtechnologies.com and
> > destroy/delete all copies and attachment thereto along with the original
> > message. Any unauthorised review, use, disclosure, dissemination,
> > forwarding, printing or copying of this email or any action taken in
> > reliance on this e-mail is strictly prohibited and is unlawful. The
> > recipient acknowledges that Conflux Technologies Private Limited or its
> > subsidiaries and associated companies are unable to exercise control or
> > ensure or guarantee the integrity of/over the contents of the information
> > contained in e-mail transmissions. Before opening any attachments, please
> > check.
> >
>



-- 
Thanks and regards,
Mifos Community Support


​
*Conflux Technologies Pvt Ltd <http://www.confluxtechnologies.com/> *

#304, 2nd Floor, 7th Main Road

HRBR Layout 1st Block

Bengaluru, Karnataka, 560043 INDIA


Disclaimer: The information contained in this e-mail message and any
files/attachment transmitted with it is confidential and for the sole use
of the intended recipient(s) or entity identified. If you are not the
intended recipient, please email: support@confluxtechnologies.com and
destroy/delete all copies and attachment thereto along with the original
message. Any unauthorised review, use, disclosure, dissemination,
forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and is unlawful. The
recipient acknowledges that Conflux Technologies Private Limited or its
subsidiaries and associated companies are unable to exercise control or
ensure or guarantee the integrity of/over the contents of the information
contained in e-mail transmissions. Before opening any attachments, please
check.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message