Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A0E39D18D for ; Mon, 19 Nov 2012 20:05:04 +0000 (UTC) Received: (qmail 41499 invoked by uid 500); 19 Nov 2012 20:05:04 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 41478 invoked by uid 500); 19 Nov 2012 20:05:04 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 41470 invoked by uid 99); 19 Nov 2012 20:05:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 20:05:04 +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 (nike.apache.org: domain of marcos@jitisoft.com designates 209.85.161.182 as permitted sender) Received: from [209.85.161.182] (HELO mail-gg0-f182.google.com) (209.85.161.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 20:04:57 +0000 Received: by mail-gg0-f182.google.com with SMTP id l1so1016326ggn.13 for ; Mon, 19 Nov 2012 12:04:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=Io1A50LsqLTGK4fAOMhGrijisZDAbafAwhvDZf7ijXU=; b=dXJFc2zZfx5G7mqRMCgr/PvCI5Vm4yrn7oUB5bqF+f1AhjEHJfsRVv6wHcGulkvC73 DOzjqw+g8g5vnSxB/8U2ps86MqLSpCc3qa8ayGvFZDjr/jGv/h1ce5NDTKnUpcgGWMf3 ZSq4HnvzqDLR4ONhpg2nY1AFTMRuxp/iMWxACxMGAv0iNPAkxsK9Ueq3bgKGAzgK9s1c iJ9xKlObssetlcxiDSmXmmpojP19CVZ/mj6JfwG4IDOJD7JBLJbdwdZQbZF3uDa9ffsn qfG5n+uqQYf9uRffiFR4IZykuTF6gvh67im8wmJSRG7RO0S1p/tl5K9Hl6kArBP+QFpe 9bzw== Received: by 10.236.150.1 with SMTP id y1mr12776798yhj.96.1353355476201; Mon, 19 Nov 2012 12:04:36 -0800 (PST) Received: from [172.16.1.34] (c-24-98-110-182.hsd1.ga.comcast.net. [24.98.110.182]) by mx.google.com with ESMTPS id m26sm10691827yhc.17.2012.11.19.12.04.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 12:04:35 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: Geronimo 3.0.0 + KAR deployment = no osgi service metadata From: Marcos Mendez In-Reply-To: <50AA89E0.3040301@nanthrax.net> Date: Mon, 19 Nov 2012 15:04:33 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <8AAB87C6-EF57-42D1-AC6B-E7431957EA52@jitisoft.com> References: <7D138CF4-68D3-454B-85A7-C03160AD07D0@jitisoft.com> <50AA89E0.3040301@nanthrax.net> To: user@geronimo.apache.org X-Mailer: Apple Mail (2.1283) X-Gm-Message-State: ALoCoQmJfGbNWawaXAZJQrwXdWrFnkY++h1IChktoK9dkdf0817rCR0psKZqqDuKH2pR9ofGINUV X-Virus-Checked: Checked by ClamAV on apache.org Hi JB, The KAR deploys fine. The problem is that there is no version, osgi = metadata, no services, no information about the kar at all once it is = installed. I'm including the log, the pom and features xml in case = someone wants to try. Do I need to add anything for geronimo? This kar = deploys fine in karaf as well, but it does show for example the = joda-time package or bundle information. Am i missing something? Regards, Marcos ---- log --- Geronimo Application Server started Bundle: Active sl =3D 100; Bundle 338 sl =3D 60 ->started org.apache.geronimo.configs.sharedlib.SharedLib_3.0.0 [338] geronimo> log:display geronimo> install from inputstream: = file:////geronimo/geronimo-tomcat7-javaee6-web-3.0.0/var/temp/simplekar-1.= 0.kar, null Saving framework data ... Saving bundle data ... Saving resolver state data ... Bundle: Active sl =3D 100; Bundle 339 sl =3D 60 ->started unknown_0.0.0 [339] Saving framework data ... Saving bundle data ... Saving resolver state data ... geronimo> osgi:info 339 Bundle 339 ---------- geronimo>=20 ----- pom.xml --- 4.0.0 simplekar simplekar 1.0 pom simplekar feature Create a feature with the defined dependencies = set. joda-time joda-time 2.1 org.apache.karaf.tooling features-maven-plugin 2.3.0 create-kar create-kar = ${basedir}/features.xml --- features.xml ---
simple kar with joda-time
mvn:joda-time/joda-time/2.1
On Nov 19, 2012, at 2:34 PM, Jean-Baptiste Onofr=E9 wrote: > Hi Marcos, >=20 > basically a Kar is a zip file containing a features XML and embedding = all required bundles and configuration files. >=20 > So, if you are able to do features:install (and it works fine), Kar = should do the same. >=20 > Could you take a look in the log (using log:display) ? >=20 > Regards > JB >=20 > On 11/19/2012 08:25 PM, Marcos Mendez wrote: >>=20 >> Hi, >>=20 >> I followed the KARAF example to build a KAR with a simple osgi = bundle, >> start it etc. >>=20 >> http://karaf.apache.org/manual/2.3.0/users-guide/kar.html >>=20 >> I can deploy and start it thru the console or hotbundles folder. = However >> geronimo does not show any information about bundles/packages. So I'm >> not sure if the osgi services are up or if there was an issue - I = don't >> see any errors in the log. >>=20 >> Has anyone tried this? Am I missing something in the kar, like a >> geronimo xml or do I need to use the add-features-to-repo? I have not >> see anything in any documentation about this. >>=20 >> Regards, >> Marcos >>=20 >=20 > --=20 > Jean-Baptiste Onofr=E9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com