Page 1 of 1

Build failed after clicking jetty-demo

Posted: Tue Aug 21, 2012 8:14 am
by vano
Hi,

I am a newbie for Broadleaf Commerce. I tried to setup an demo environment, but failed. After I click "jetty-demo", some warning message showed in console, like "Downloading: com/mycompany/core/1.0/core-1.0.pom from repository public releases at http://www.broadleafcommerce.org/nexus/ ... /releases/".
I have no idea to solve this problem. Please help me. Thx!

Re: Build failed after clicking jetty-demo

Posted: Tue Aug 21, 2012 9:02 am
by aazzolini
Sounds like you didn't do a local maven install.

Please follow these docs: http://docs.broadleafcommerce.org/curre ... arted.html

Let me know if you still have problems.

Re: Build failed after clicking jetty-demo

Posted: Tue Aug 21, 2012 9:37 pm
by vano
Thanks for your help, but...I'm afraid I've already done all the steps written in Get Started page.

Re: Build failed after clicking jetty-demo

Posted: Wed Aug 22, 2012 10:58 am
by phillipuniverse
So what happened when you went through the "Running Site" section where you did the maven install on the parent project? Did it succeed?

Re: Build failed after clicking jetty-demo

Posted: Thu Sep 20, 2012 7:10 pm
by sacramentojoe
I receive this error.
Error configuring: org.mortbay.jetty:jetty-maven-plugin. Reason: ERROR: Cannot override read-only parameter: contextPath in goal: jetty:run

Re: Build failed after clicking jetty-demo

Posted: Sat Sep 22, 2012 7:31 am
by vaidyanathan
Yes this is reproducible:
Solution:

Insert a tag <webAppConfig> between <configuration> and <contextPath> in admin/pom.xml and in site/pom.xml.

Code: Select all

<configuration>
    <webAppSourceDirectory>${webappDirectory}</webAppSourceDirectory>
blah blah
</configuration>


with this:

Code: Select all

<configuration>
    <webAppConfig>
        <webAppSourceDirectory>${webappDirectory}</webAppSourceDirectory>
blah blah
    </webAppConfig>
</configuration>

Re: Build failed after clicking jetty-demo

Posted: Sat Sep 22, 2012 7:43 am
by vaidyanathan
And what's the weird part ?

While jetty:demo works only if you make this change,
jetty:stop fails if you do this change.

No clue why.

Re: Build failed after clicking jetty-demo

Posted: Sat Sep 22, 2012 8:14 am
by vaidyanathan
In fact,
Admin does not even startup.
It shows up properly from the console, everything started without errors,
but none of the below are accessible:

http://localhost:8081/
http://localhost:8081/admin
http://localhost:8080/admin
https://localhost:8444/admin
https://localhost:8444/login
https://localhost:8444/

Where is admin ?

Re: Build failed after clicking jetty-demo

Posted: Sun Dec 16, 2012 3:14 pm
by Ramneek
Were you able to resolve this problem?

Re: Build failed after clicking jetty-demo

Posted: Tue Dec 25, 2012 5:01 am
by Ramneek
I think we need to make the following changes in admin/pom.xml and in site/pom.xml to fix this problem:

Code: Select all

<configuration>
    ...
    <webAppConfig>
        <contextPath>...</contextPath>
    </webAppConfig>
    ...
</configuration>

Thank you,
Ramneek