+1. Thanks Graeme and Andrea for helping out. Best
Duncan Johnston-Watt CEO | Cloudsoft Corporation Twitter | @duncanjw Mobile | +44 777 190 2653 Skype | duncan_johnstonwatt Linkedin | www.linkedin.com/in/duncanjohnstonwatt On 24 December 2015 at 11:11, Andrea Turli <andrea.tu...@cloudsoftcorp.com> wrote: > Glad it worked! > > No problem at all! > > Feel free to ask more interesting questions like this, > Andrea > > > On 24 December 2015 at 11:58, Abhishek Sharma <abhisharm...@gmail.com> > wrote: > > > Thanks for the pointers Andrea. Appreciate it. It is running now. > > Thanks for all your help. > > > > I was missing brooklyn.config: in my YAML spec. Sorry for the annoyance > > from me. Have been focussed only on Java Blueprints and based Graeme > > suggestion I created a YAML to deploy multiple apps this morning. Totally > > missed the fact that .configure() would also need to account for > something > > in YAML. I blame it on the long nights and coffee. > > > > If is of any useful help the error I was getting was from here: > > > > > https://github.com/apache/incubator-brooklyn/blob/cd504e226f0d54fb5bb871d248242e071c228ab0/brooklyn-server/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogUtils.java#L68 > > > > Thanks, > > Abhi > > > > > > > > On Thu, Dec 24, 2015 at 1:54 AM, Andrea Turli < > > andrea.tu...@cloudsoftcorp.com> wrote: > > > > > Hi Abhishek, > > > > > > can you please share the stack trace of the error, please? > > > > > > I think it would be useful to have a look at your entities, do you > have a > > > github repository for them? > > > > > > I've written a simple dropwizard entity in plain YAML which may help > you > > > [1] > > > Notice also that there are other YAML blueprints based on > > > NodeJsWebAppService entity already available at [2] > > > > > > If you want to use the java-based blueprint approach, please have a > look > > at > > > [3] in case you missed it. > > > > > > HTH, > > > Andrea > > > > > > [1]: https://gist.github.com/andreaturli/d28ae7130a0650ce8a65 > > > [2]: > > > > > > > > > https://github.com/brooklyncentral/blueprint-library/search?utf8=%E2%9C%93&q=NodeJsWebAppService > > > [3]: > > > > > > > > > https://github.com/apache/incubator-brooklyn/blob/master/brooklyn-library/examples/simple-web-cluster/src/main/java/org/apache/brooklyn/demo/NodeJsTodoApplication.java > > > > > > > > > > > > On 24 December 2015 at 10:03, Abhishek Sharma <abhisharm...@gmail.com> > > > wrote: > > > > > > > I have. Doesn't work either. > > > > > > > > On Thu, Dec 24, 2015 at 12:18 AM, Duncan Johnston Watt < > > > > duncan.johnstonw...@cloudsoftcorp.com> wrote: > > > > > > > > > Hi. Have you tried - > > > > > > > > > > launch.latch: > > > > > $brooklyn:component("X").attributeWhenReady("service.isUp") > > > > > > > > > > Best > > > > > -- > > > > > Duncan Johnston-Watt > > > > > CEO | Cloudsoft Corporation > > > > > +44 777 190 2653 | @duncanjw > > > > > > > > > > Sent from my iPhone > > > > > > > > > > Begin forwarded message: > > > > > > > > > > *From:* Abhishek Sharma <abhisharm...@gmail.com> > > > > > *Date:* 24 December 2015 at 01:40:16 GMT > > > > > *To:* dev@brooklyn.apache.org > > > > > *Subject:* *Issue Deployment Dependencies in Brooklyn* > > > > > *Reply-To:* dev@brooklyn.apache.org > > > > > > > > > > I have 2 applications that I start with I run brooklyn. The two > apps > > > are > > > > > specified as follows in a YAML file. > > > > > > > > > > services: > > > > > > > > > > > > > > > - type: com.abhishek.dropwizzard > > > > > id: X > > > > > > > > > > - type: com.abhishek.nodejs > > > > > id: Y > > > > > > > > > > I want my nodeJS app to come up after my drop wizard app has been > > > started > > > > > successfully. In-order to setup that deployment dependency I add > the > > > > > following to my YAML file. > > > > > - type: com.abhishek.nodejs > > > > > launch.latch: > > > > > > > > > $brooklyn:component("X").attributeWhenReady("service.process.isRunning") > > > > > > > > > > This doesn't work I get an error saying Ignoring PDP attributes > .... > > > > > > > > > > Please advise on how can I fix this ? > > > > > > > > > > Thanks, > > > > > A > > > > > > > > > > > > > > >