From user-return-18550-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Sun May 13 21:00:48 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2C12A180636 for ; Sun, 13 May 2018 21:00:46 +0200 (CEST) Received: (qmail 88350 invoked by uid 500); 13 May 2018 19:00:45 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 88340 invoked by uid 99); 13 May 2018 19:00:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 May 2018 19:00:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5C42F1A38B5 for ; Sun, 13 May 2018 19:00:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.189 X-Spam-Level: * X-Spam-Status: No, score=1.189 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id IWDcyEtoB2aI for ; Sun, 13 May 2018 19:00:42 +0000 (UTC) Received: from pv42p49im-ztdg05051201.me.com (pv42p49im-ztdg05051201.me.com [17.139.149.12]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5752A5F21E for ; Sun, 13 May 2018 19:00:42 +0000 (UTC) Received: from process-dkim-sign-daemon.pv42p49im-ztdg05051201.me.com by pv42p49im-ztdg05051201.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P8O00F00KJL5L00@pv42p49im-ztdg05051201.me.com> for user@karaf.apache.org; Sun, 13 May 2018 19:00:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1526238039; bh=oYf6E5i4Hzt5yjJWcfZfI1hu9uRpW1uXOm/eS6ycSMU=; h=From:Message-id:Content-type:MIME-version:Subject:Date:To; b=5cvKKJtr8QyPj4DyzT8CdX3UQCTjQvgpRFjHwyS4ihH8HQQrav6La8Mc4/54UxOgD pcaWEfce/Wf40KUP3/IrYZsSEnhCiq7UQMSplUptDmO7G5j7ully/vCwbY8HWtCWyC 64O1y5KMNuYQw1YvQqtAM91r0XesLDQ/bTASIQxXRXfeU9cbMvMyjrWfcQ98ykBEEh HZ5f5EbR7YthBFtZ8i/Ej8Dx1bPtsB/0gWZtSZP8yS8DB4g0w2TrwQzbCb+xMbNLph 0BB5y1l2n3ZSuy6pOlJ7izJIdo2It7jmbbOVbMhlBWUX3tasXL8iYo9bh2UmFiDJFO XycIn5+LqLaTw== Received: from icloud.com ([127.0.0.1]) by pv42p49im-ztdg05051201.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P8O00G3DKSQDX00@pv42p49im-ztdg05051201.me.com> for user@karaf.apache.org; Sun, 13 May 2018 19:00:39 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-05-13_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=-2147483648 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1805130197 From: Erwin Hogeweg Message-id: Content-type: multipart/alternative; boundary="Apple-Mail=_C2BFDEFD-AA2D-4E2B-89C6-CC69524B32C0" MIME-version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Odd feature repo behavior in 4.2.0 custom distro Date: Sun, 13 May 2018 21:00:22 +0200 References: <8B216C1A-D889-400B-9C6C-94C7035E074C@me.com> <6a968c09-37eb-8f30-ca54-bcfede01017f@openobject.fr> To: "user@karaf.apache.org" In-reply-to: X-Mailbutler-Link-Tracking-Uuid: X-Mailer: Apple Mail (2.3445.6.18) --Apple-Mail=_C2BFDEFD-AA2D-4E2B-89C6-CC69524B32C0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi JB, Thanks for your reply > eclipselink should be not a startup feature: startup feature is not = actually a feature, the bundles contained in the feature are added in = etc/startup.properties. >=20 > So eclipselink should be a boot feature. >=20 > Same for jndi. Thanks, I fixed that. > The scope runtime on deps means that they will be added in the Karaf = repo. I don't see the standard repo in your pom. I had the enterprise in there. It was my understanding that is a = superset of standard. > I advise to fix that first. Added standard repo but no difference. karaf@root()> feature:repo-list Repository =E2=94=82 URL = =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80 enterprise-4.2.0 =E2=94=82 = mvn:org.apache.karaf.features/enterprise/4.2.0/xml/features pax-transx-0.2.0 =E2=94=82 = mvn:org.ops4j.pax.transx/pax-transx-features/0.2.0/xml/features framework-4.2.0 =E2=94=82 = mvn:org.apache.karaf.features/framework/4.2.0/xml/features org.ops4j.pax.web-7.0.0 =E2=94=82 = mvn:org.ops4j.pax.web/pax-web-features/7.0.0/xml/features hibernate-validator-osgi-features =E2=94=82 = mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/6.0.9.= Final/xml/features hibernate-osgi =E2=94=82 = mvn:org.hibernate/hibernate-osgi/5.2.9.Final/xml/karaf rome-features =E2=94=82 = mvn:com.seecago.rome.server/rome-features/1.0.0-SNAPSHOT/xml/features pax-jms-0.3.0 =E2=94=82 = mvn:org.ops4j.pax.jms/pax-jms-features/0.3.0/xml/features org.ops4j.pax.cdi-1.0.0 =E2=94=82 = mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features cxf-3.1.1 =E2=94=82 = mvn:org.apache.cxf.karaf/apache-cxf/3.1.1/xml/features standard-4.2.0 =E2=94=82 = mvn:org.apache.karaf.features/standard/4.2.0/xml/features org.ops4j.pax.jdbc-1.2.0 =E2=94=82 = mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.2.0/xml/features aries-jpa-2.6.1 =E2=94=82 = mvn:org.apache.aries.jpa/jpa-features/2.6.1/xml/features cxf-dosgi-1.7.0 =E2=94=82 = mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features karaf@root()> feature:list | grep -i rome karaf@root()> = = =20 Note: To be able to install my feature I have to rebuild w/o adding the = feature-repo and then manually add the repo and the feature. This works = w/o making any other changes which seems to suggest that the feature = itself is correct. Regards, Erwin >=20 > Regards > JB >=20 > On 13/05/2018 17:12, Erwin Hogeweg wrote: >> Fran=C3=A7ois, >>>=20 >>> Can you share your pom.xml from the assembly module ? >>>=20 >> Attached. >> Erwin >>> Le 13/05/2018 =C3=A0 18:11, Erwin Hogeweg a =C3=A9crit : >>>> Hi Fran=C3=A7ois, >>>>=20 >>>> Thanks for your reply. >>>>>=20 >>>>> Did the feature:list show your feature un your custom distribution = ? >>>>>=20 >>>> Nope. >>>>>=20 >>>>> You also set log to debug and see if there is something wrong. >>>>>=20 >>>> Hmmm=E2=80=A6 >>>> 2018-05-13T15:48:05,948 | DEBUG | activator-1-thread-1 | = AetherBasedResolver | 2 - org.ops4j.pax.url.mvn - 2.5.4 | = Resolved = (com.seecago.rome.server:rome-features:xml:features:1.0.0-SNAPSHOT) as = <=E2=80=A6>/Users/erwin/work/Rome/trunk/src/server/karaf.distro/target/ass= embly/system/com/seecago/rome/server/rome-features/1.0.0-SNAPSHOT/rome-fea= tures-1.0.0-SNAPSHOT-features.xml >>>>=20 >>>> =E2=80=A6 I think I see what the issue is=E2=80=A6 the referenced = feature is empty, or pretty much empty. >>>>=20 >>>> >>>> >>>>=20 >>>> That is not the feature.xml I had in mind. The one from .m2 looks = much different. Wasn=E2=80=99t there a Jira issue raised a couple of = weeks ago about feature.xml not being generated completely? Or was that = a config file? I can=E2=80=99t find it anymore. >>>>=20 >>>>=20 >>>>=20 >>>> Thanks, >>>>=20 >>>> Erwin >>>>>=20 >>>>> Fran=C3=A7ois >>>>>=20 >>>>> Le 13 mai 2018 00:43, Erwin Hogeweg > a =C3=A9crit : >>>>>=20 >>>>> Hi - >>>>>=20 >>>>> I ran into an issue with a custom distro. >>>>>=20 >>>>> Installing a local feature from the console works just fine, = but >>>>> when I include the feature repo in the >>>>> org.apache.karaf.features.cfg file the feature won=E2=80=99t = load >>>>> because karaf thinks it doesn=E2=80=99t exist. >>>>>=20 >>>>> This is what I get when I install from the console while the : >>>>>=20 >>>>> karaf@root()> feature:repo-add = mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/features >>>>> karaf@root()> feature:repo-list >>>>> my-features-1.0.0-SNAPSHOT =E2=94=82 >>>>> mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/features >>>>> karaf@root()> feature:install my-feature >>>>> karaf@root()> >>>>>=20 >>>>> This is the entry in the distro pom to add the repo to the >>>>> config file: >>>>>=20 >>>>> >>>>> com.myproject >>>>> my-features >>>>> ${project.version} >>>>> features >>>>> xml >>>>> runtime >>>>> >>>>>=20 >>>>>=20 >>>>> And this is what I get when I install the feature in the = distro: >>>>>=20 >>>>> feature:repo-list >>>>> my-features =E2=94=82 >>>>> mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/features >>>>> karaf@root()> feature:install my-feature >>>>> Error executing command: No matching features for my-feature/0 >>>>>=20 >>>>> Not sure what is going on here. In the first case the = Repository >>>>> name shown is the feature name as defined in feature.xml, in = the >>>>> second case it is the feature artifact name as defined in the >>>>> pom.xml. >>>>>=20 >>>>> I checked the docs and compared my distro pom with the 4.2.0 >>>>> source code. I don=E2=80=99t see (...) any glaring mistakes, = but >>>>> obviously something must be wrong. >>>>>=20 >>>>> Any suggestions are greatly appreciated. >>>>>=20 >>>>>=20 >>>>> Kind Regards, >>>>>=20 >>>>> Erwin >>>>>=20 >>>>=20 >>>=20 --Apple-Mail=_C2BFDEFD-AA2D-4E2B-89C6-CC69524B32C0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = JB,

Thanks for your = reply

eclipselink = should be not a startup feature: startup feature is not actually a = feature, the bundles contained in the feature are added in = etc/startup.properties.

So eclipselink = should be a boot feature.

Same for jndi.
Thanks, I fixed that.

The scope runtime on deps means that they will be added in = the Karaf repo. I don't see the standard repo in your pom.
I had the enterprise in there. It = was my understanding that is a superset of standard.

I advise to fix that first.
Added standard repo but no = difference.

karaf@root()> feature:repo-list
Repository              =           =E2=94=82 URL
=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=BC=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80
enterprise-4.2.0            =       =E2=94=82 = mvn:org.apache.karaf.features/enterprise/4.2.0/xml/features
pax-transx-0.2.0            =       =E2=94=82 = mvn:org.ops4j.pax.transx/pax-transx-features/0.2.0/xml/features
framework-4.2.0           =         =E2=94=82 = mvn:org.apache.karaf.features/framework/4.2.0/xml/features
org.ops4j.pax.web-7.0.0         =   =E2=94=82 = mvn:org.ops4j.pax.web/pax-web-features/7.0.0/xml/features
hibernate-validator-osgi-features =E2=94=82 = mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/6.0.9.= Final/xml/features
hibernate-osgi      =               =E2=94=82 = mvn:org.hibernate/hibernate-osgi/5.2.9.Final/xml/karaf
rome-features             =         =E2=94=82 = mvn:com.seecago.rome.server/rome-features/1.0.0-SNAPSHOT/xml/features
pax-jms-0.3.0             =         =E2=94=82 = mvn:org.ops4j.pax.jms/pax-jms-features/0.3.0/xml/features
org.ops4j.pax.cdi-1.0.0         =   =E2=94=82 = mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features
cxf-3.1.1             =             =E2=94=82 = mvn:org.apache.cxf.karaf/apache-cxf/3.1.1/xml/features
standard-4.2.0            =         =E2=94=82 = mvn:org.apache.karaf.features/standard/4.2.0/xml/features
org.ops4j.pax.jdbc-1.2.0        =   =E2=94=82 = mvn:org.ops4j.pax.jdbc/pax-jdbc-features/1.2.0/xml/features
aries-jpa-2.6.1           =         =E2=94=82 = mvn:org.apache.aries.jpa/jpa-features/2.6.1/xml/features
cxf-dosgi-1.7.0           =         =E2=94=82 = mvn:org.apache.cxf.dosgi/cxf-dosgi/1.7.0/xml/features
karaf@root()> feature:list | grep -i = rome
karaf@root()>         =                     =                     =                     =                     =                     =                     =                     =                     =   

Note: To be able = to install my feature I have to rebuild w/o adding the feature-repo and = then manually add the repo and the feature. This works w/o making any = other changes which seems to suggest that the feature itself is = correct.


Regards,

Erwin


Regards
JB

On = 13/05/2018 17:12, Erwin Hogeweg wrote:
Fran=C3=A7ois,

Can you share your pom.xml from = the assembly module ?

Attached.
Erwin
Le 13/05/2018 =C3=A0 = 18:11, Erwin Hogeweg a =C3=A9crit :
Hi Fran=C3=A7ois,

Thanks for your reply.

Did the feature:list show your feature un your = custom distribution ?

Nope.

You also = set log to debug and see if there is something wrong.

Hmmm=E2=80=A6
2018-05-13T15:48:05,948 | DEBUG | activator-1-thread-1 | = AetherBasedResolver          | 2 - = org.ops4j.pax.url.mvn - 2.5.4 | Resolved = (com.seecago.rome.server:rome-features:xml:features:1.0.0-SNAPSHOT) as = <=E2=80=A6>/Users/erwin/work/Rome/trunk/src/server/karaf.distro/targ= et/assembly/system/com/seecago/rome/server/rome-features/1.0.0-SNAPSHOT/ro= me-features-1.0.0-SNAPSHOT-features.xml

=E2=80= =A6 I think I see what the issue is=E2=80=A6 the referenced feature is = empty, or pretty much empty.

<?xml = version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?>
<features xmlns=3D"http://karaf.apache.org/xmlns/features/v1.5.0" = name=3D"rome-features"/>

That is not the = feature.xml I had in mind. The one from .m2 looks much different. = Wasn=E2=80=99t there a Jira issue raised a couple of weeks ago about = feature.xml not being generated completely? Or was that a config file? I = can=E2=80=99t find it anymore.



Thanks,

Erwin

Fran=C3=A7ois

Le 13 mai 2018 = 00:43, Erwin Hogeweg <erwin.hogeweg@me.com <mailto:erwin.hogeweg@me.com>> a =C3=A9crit :

   Hi -

   I ran into an issue with a custom = distro.

   Installing a = local feature from the console works just fine, but
=    when I include the feature repo in the
=    org.apache.karaf.features.cfg file the feature won=E2=80= =99t load
   because karaf thinks it = doesn=E2=80=99t exist.

=    This is what I get when I install from the console = while the :

=    karaf@root()> feature:repo-add mvn:com.mypr= oject/my-features/1.0.0-SNAPSHOT/xml/features
=    karaf@root()> feature:repo-list
=      my-features-1.0.0-SNAPSHOT     =           =E2=94=82
=    mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/feature= s
   karaf@root()> feature:install = my-feature
   karaf@root()>

   This is the entry in the = distro pom to add the repo to the
=    config file:

=    <dependency>
=    <groupId>com.myproject</groupId>
=    <artifactId>my-features</artifactId>
=    <version>${project.version}</version>
=    <classifier>features</classifier>
   <type>xml</type>
=    <scope>runtime</scope>
=    </dependency>


   And this is what I get when I install the = feature in the distro:

=    feature:repo-list
=      my-features         =             =E2=94=82
=    mvn:com.myproject/my-features/1.0.0-SNAPSHOT/xml/feature= s
   karaf@root()> feature:install = my-feature
   Error executing command: No = matching features for my-feature/0

=    Not sure what is going on here. In the first case the = Repository
   name shown is = the feature name as defined in feature.xml, in the
=    second case it is the feature artifact name as defined = in the
   pom.xml.

   I checked the docs and compared my distro = pom with the 4.2.0
   source code. I = don=E2=80=99t see (...) any glaring mistakes, but
=    obviously something must be wrong.

   Any suggestions are greatly = appreciated.


=    Kind Regards,

=    Erwin




= --Apple-Mail=_C2BFDEFD-AA2D-4E2B-89C6-CC69524B32C0--