Return-Path: X-Original-To: apmail-ace-users-archive@minotaur.apache.org Delivered-To: apmail-ace-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3665C9ED5 for ; Thu, 16 May 2013 11:24:45 +0000 (UTC) Received: (qmail 90394 invoked by uid 500); 16 May 2013 11:24:45 -0000 Delivered-To: apmail-ace-users-archive@ace.apache.org Received: (qmail 90365 invoked by uid 500); 16 May 2013 11:24:44 -0000 Mailing-List: contact users-help@ace.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@ace.apache.org Delivered-To: mailing list users@ace.apache.org Received: (qmail 90341 invoked by uid 99); 16 May 2013 11:24:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 11:24:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bdekruijff@gmail.com designates 209.85.216.172 as permitted sender) Received: from [209.85.216.172] (HELO mail-qc0-f172.google.com) (209.85.216.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 11:24:40 +0000 Received: by mail-qc0-f172.google.com with SMTP id z1so953840qcx.17 for ; Thu, 16 May 2013 04:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=+EiBfPO4uykNFZWCjIxVjDi1l/kBlGZ2eJ+NylrR9r4=; b=XWTdUvz2MGkJflBjHS6s+mr6fJiR2wxzXASt0V60xF0NMKhDAeE2CpuKic7Z/RSpvc zlbYW6NQxJVBnl8nRGN3toUX+PZxqRqPlo4ZT6PUZvomuXKkv3EUbcjYDvNvK3Eaf7Hv eLA4Sqx1Ts2p2+ks9MCfMSoUZDXwpZiMgz2nBsIv7UKN8rUaoVAUN1Zzvw9Be0hcuEoi JureHh4pTK/YEQY7DlmH87kasAtDmUMQTuRGmZtPnMaOFCCFaQ6vu6TObanz1MeqfMa/ TKpG4Ic2MKCVM9h4EPV0Lm1shh5hCqgBcona5YuCRi3F28bIE2mCyN3ltsiiDRbjKDcF JSjg== MIME-Version: 1.0 X-Received: by 10.224.43.3 with SMTP id u3mr32049791qae.92.1368703459069; Thu, 16 May 2013 04:24:19 -0700 (PDT) Received: by 10.49.84.196 with HTTP; Thu, 16 May 2013 04:24:18 -0700 (PDT) In-Reply-To: References: <833686DC-B5E3-4130-B9CA-5410FBE5FCED@inqmobile.com> <5193AF39.6090200@christian-vogel.info> <4389E674-F6D6-4319-B2D7-653FBA8C5BF2@inqmobile.com> Date: Thu, 16 May 2013 13:24:18 +0200 Message-ID: Subject: Re: Ace binary dist 0.81 From: Bram de Kruijff To: users@ace.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, May 16, 2013 at 12:52 PM, Bruce Jackson wrote= : > Yes, I'd guess that's correct, but per my email of yesterday, I don't kno= w where to find the launcher jar any more. > It isn't produced when I build using the ant package-bin target. > $ cd /root/of/checkout $ cd build $ ant deepclean build $ cd ../org.apache.ace.launcher/generated/ $ ls -l grz Bram > On 16 May 2013, at 11:45, Bram de Kruijff wrote: > >> On Thu, May 16, 2013 at 12:22 PM, Bruce Jackson wr= ote: >>> Hi Bram >>> >>> Further to the question of yesterday that you cleared up, its not clear= how you point the target to the Ace server. The docs say: >>> >>> Usage: java -jar ace-launcher.jar [identification=3D] [discovery=3D= ] [options...] >>> >>> All known options are: >>> >>> identification: sets the target ID to use >>> discovery: sets the ACE server to connect to >>> agents: configures multiple management agents: agent-id,identification,= discovery[;agent-id,identification,discovery]* >>> fwOption: sets framework options for the OSGi framework to be created. = This argument may be repeated >>> help: prints this help message >>> However, with the target.jar this doesn't work. I just get this: >>> >>> java -jar target.jar identification=3DMyTarget discovery=3Dhttp:/myserv= er.mydomain.com:8080/ >>> ____________________________ >>> Welcome to Apache Felix Gogo >>> >>> g! Started management agent. >>> Target ID : defaultTargetID >>> Server : http://localhost:8080 >>> Sync interval: 2000 ms >>> Unaffected bundles will not be stopped during deployment. >>> >>> So, neither the TargetID or the Server are being picked up correctly. W= hat is the correct way to configure the target? >>> >> >> Hmm.. guessing this is caused by the way these dist are now packaged >> using bndpackage as I explained here [0]. Use the regular artifact and >> you should be fine; >> >> /path/to/ace-trunk/org.apache.ace.launcher/generated$ java -jar >> org.apache.ace.launcher.jar identification=3DMyTarget >> discovery=3Dhttp:/myserver.mydomain.com:8080 >> Started management agent. >> Target ID : MyTarget >> Server : http:/myserver.mydomain.com:8080/ >> Sync interval: 2000 ms >> Unaffected bundles will not be stopped during deployment. >> >> >> grz >> Bram >> >> >> [0] http://mail-archives.apache.org/mod_mbox/ace-users/201305.mbox/brows= er >> >> >> >>> Thanks >>> >>> Bruce >>> >>>> On Thu, May 16, 2013 at 8:29 AM, Bruce Jackson w= rote: >>>>> Thanks Bram, thats very helpful. >>>>> >>>>> Can I specify the target id for my targets in config files, or are th= ey always auto-allocated? >>>>> >>>> >>>> Yes you can. By design this is all pluggable and one could employ all >>>> kinds of strategies. This agent has property based identification & >>>> discovery that can be set on the command line. >>>> >>>> $ java -jar generated/org.apache.ace.launcher.jar help >>>> Apache ACE Launcher >>>> Usage: >>>> java -jar ace-launcher.jar [identification=3D] >>>> [discovery=3D] [options...] >>>> All known options are: >>>> agents: configures multiple management agents: >>>> agent-id,identification,discovery[;agent-id,identification,discovery]* >>>> auth: point to the properties file containing the authentication >>>> credentials for a certain subsystem: >>>> discovery: sets the ACE server to connect to >>>> id(?:entification)?: sets the target ID to use >>>> bundle: adds an additional bundle to be started with this management >>>> agent: bundle=3Dmy.fully.qualified.BundleActivator >>>> fwOption: sets framework options for the OSGi framework to be >>>> created. This argument may be repeated >>>> help: prints this help message >>>> Example: >>>> java -jar ace-launcher.jar identification=3DMyTarget >>>> discovery=3Dhttp://provisioning.company.com:8080 >>>> fwOption=3Dorg.osgi.framework.system.packages.extra=3Dsun.misc,com.sun= .management >>>> >>>> >>>> Note that I recently proposed a new agent [0], found in projects >>>> "org.apache.ace.agent[.launcher]" , that aims to be simpler, more >>>> configurable and easier to extend. However, that is still bleeding >>>> edge and not included in the default build yet ;) >>>> >>>> greetz >>>> Bram >>>> >>>> [0] https://issues.apache.org/jira/browse/ACE-347 >>>> >>>>> Best regards >>>>> >>>>> Bruce >>>>> >>>>> On 15 May 2013, at 18:09, Bram de Kruijff wrot= e: >>>>> >>>>>> Hi Bruce, >>>>>> >>>>>> welcome to ACE! :) >>>>>> >>>>>> On Wed, May 15, 2013 at 6:18 PM, Bruce Jackson = wrote: >>>>>>> Hi Christian >>>>>>> >>>>>>> Ok, I've done that now, and built everything using the instructions= on that page. These are also incorrect: the steps: >>>>>>> >>>>>>> ant -f bin-build.xml package >>>>>>> and >>>>>>> >>>>>>> $ cd generated/ace-devserver >>>>>>> $ sh run.sh >>>>>>> >>>>>>> do not work, as the file bin-build.xml doesn't exist. However, I do= get a binary zip in the generated folder if I build using: >>>>>>> >>>>>>> ant package-bin >>>>>>> >>>>>>> However, the binary this builds also does not have any information = on how to start everything up, but using common sense, I can go into the se= rver-allinone and run: >>>>>>> >>>>>>> java -jar server-allinone.jar >>>>>>> >>>>>> >>>>>> Correct, good catch. As you have noticed by now the build has >>>>>> undergone significant changes and the docs needs some close attentio= n. >>>>>> >>>>>>> and can then access the web console at localhost:8080/ace >>>>>>> >>>>>>> I can also go to the client folder and run: >>>>>>> >>>>>>> java -jar client >>>>>>> >>>>>>> However, I never see the client appear in the web console. How do I= configure the client to point to the server? >>>>>>> >>>>>> >>>>>> The "client" is an infrastructural component just like the "server". >>>>>> When you start the server-allinone.jar" that actually contains the >>>>>> "client". This is for convenience as they can also be deployed >>>>>> independently. What you are looking for is a "target". >>>>>> >>>>>> $ cd ../target >>>>>> $ java -jar target-jar >>>>>> >>>>>> Now in the right column of the UI you should see a "defaultTargetId" >>>>>> appear which means your target is running and ready to receive >>>>>> deployment packages. >>>>>> >>>>>> >>>>>> Regards, >>>>>> Bram >>>>>> >>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> Bruce >>>>>>> >>>>>>> On 15 May 2013, at 16:52, Christian Vogel wrote: >>>>>>> >>>>>>>> Hi Bruce, >>>>>>>> >>>>>>>> the version you want to download is pretty old and it is highly re= commend to download the sources and build your dist of the latest version. = There were a lot of improvements and we try to come out with a new release = soon, where we also update the website >>>>>>>> >>>>>>>> A HowTo can be found here: http://ace.apache.org/dev-doc/getting-s= tarted.html >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Christian >>>>>>>> >>>>>>>> On 15.05.2013 17:25, Bruce Jackson wrote: >>>>>>>>> Hi All >>>>>>>>> >>>>>>>>> New to Ace but not OSGi. The instruction for getting started sugg= est getting a binary release, however none of the links to the 0.81 full ac= tually work. If I browse the archives, I can find a release, but this appea= rs to be a source release. I can try to build this using mvn install, but a= fter much compiling etc, I'm still left in the dark: I don't know what its = done, or where its actually put the binaries. >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> Bruce >>>>>>>>> >>>>>>>>> >>>>>>>>> This e-mail is only intended for the person(s) to whom it is addr= essed and may contain CONFIDENTIAL information. Any opinions or views are p= ersonal to the writer and do not represent those of INQ Mobile Limited, Hut= chison Whampoa Limited or its group companies. If you are not the intende= d recipient, you are hereby notified that any use, retention, disclosure, c= opying, printing, forwarding or dissemination of this communication is stri= ctly prohibited. If you have received this communication in error, please = erase all copies of the message and its attachments and notify the sender = immediately. INQ Mobile Limited is a company registered in the British Vir= gin Islands. www.inqmobile.com. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> This e-mail is only intended for the person(s) to whom it is addres= sed and may contain CONFIDENTIAL information. Any opinions or views are per= sonal to the writer and do not represent those of INQ Mobile Limited, Hutch= ison Whampoa Limited or its group companies. If you are not the intended = recipient, you are hereby notified that any use, retention, disclosure, cop= ying, printing, forwarding or dissemination of this communication is strict= ly prohibited. If you have received this communication in error, please er= ase all copies of the message and its attachments and notify the sender im= mediately. INQ Mobile Limited is a company registered in the British Virgi= n Islands. www.inqmobile.com. >>>>>>> >>>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> This e-mail is only intended for the person(s) to whom it is addresse= d and may contain CONFIDENTIAL information. Any opinions or views are perso= nal to the writer and do not represent those of INQ Mobile Limited, Hutchis= on Whampoa Limited or its group companies. If you are not the intended re= cipient, you are hereby notified that any use, retention, disclosure, copyi= ng, printing, forwarding or dissemination of this communication is strictly= prohibited. If you have received this communication in error, please eras= e all copies of the message and its attachments and notify the sender imme= diately. INQ Mobile Limited is a company registered in the British Virgin = Islands. www.inqmobile.com. >>>>> >>>>> >>>>> >>> >>> >>> >>> >>> >>> This e-mail is only intended for the person(s) to whom it is addressed = and may contain CONFIDENTIAL information. Any opinions or views are persona= l to the writer and do not represent those of INQ Mobile Limited, Hutchison= Whampoa Limited or its group companies. If you are not the intended reci= pient, you are hereby notified that any use, retention, disclosure, copying= , printing, forwarding or dissemination of this communication is strictly p= rohibited. If you have received this communication in error, please erase = all copies of the message and its attachments and notify the sender immedi= ately. INQ Mobile Limited is a company registered in the British Virgin Is= lands. www.inqmobile.com. >>> >>> > > > > > This e-mail is only intended for the person(s) to whom it is addressed an= d may contain CONFIDENTIAL information. Any opinions or views are personal = to the writer and do not represent those of INQ Mobile Limited, Hutchison W= hampoa Limited or its group companies. If you are not the intended recipi= ent, you are hereby notified that any use, retention, disclosure, copying, = printing, forwarding or dissemination of this communication is strictly pro= hibited. If you have received this communication in error, please erase al= l copies of the message and its attachments and notify the sender immediat= ely. INQ Mobile Limited is a company registered in the British Virgin Isla= nds. www.inqmobile.com. > > >