Re: [osgi-dev] many bundles with the same propeties file : infinite loop

2018-10-08 Thread Raymond Auge via osgi-dev
On Mon, Oct 8, 2018 at 9:46 AM Mohamed AFIF via osgi-dev <
osgi-dev@mail.osgi.org> wrote:

>
> Hello,
>
> I had in my project a random behaviour of some bundles who  Swing between
> Active and Starting state, but finally  I found out the root cause,
> indeed those bundles  share the same cm:property-placeholder
>

Hello Afif,

Are you talking about blueprint?

If so, you may want to check the Apache Aries user/dev mailing lists. There
might be more people who maintain the Aries blueprint impl there who might
be able help.

Sincerely,
- Ray


> with the same persistent-id, and as every property file is associated to
> only one   ManageService , when anotherbundle sharing  same file starts,
> it goes around in circles.
> I would like to know if there is a workaroud to allow using the same file
> for all maven project modules.
>
> Many thanks.
>
> Mohamed.
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Validating repository XML?

2018-10-08 Thread Mark Raynsford via osgi-dev
On 2018-10-08T13:16:25 +
"BJ Hargrave"  wrote:

> Did you try
>  
> 
> http://www.osgi.org/xmlns/repository/v1.0.0;
>             name="example">
>   
>     
>                         value="org.apache.felix.framework"/>
>                         value="osgi.bundle"/>
>                         value="6.0.1"
>                  type="Version"/>
>     
>   
> 
>  
> Note the use of the local name on the main repository element (I picked 
> "repo" for my example).

Hm, that validates. That's somewhat odd... What is the reasoning behind
having resources, capabilities, and attributes effectively live in a
different namespace?

I have some interest in, for example, accepting documents that have a
single  root element, and I'd like to validate those against
the schema. That doesn't seem possible.

-- 
Mark Raynsford | http://www.io7m.com



pgp0zlOe75CAF.pgp
Description: OpenPGP digital signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] many bundles with the same propeties file : infinite loop

2018-10-08 Thread Mohamed AFIF via osgi-dev
Hello,

I had in my project a random behaviour of some bundles who  Swing between
Active and Starting state, but finally  I found out the root cause,
indeed those bundles  share the same cm:property-placeholder with the same
persistent-id, and as every property file is associated to
only one   ManageService , when anotherbundle sharing  same file starts, it
goes around in circles.
I would like to know if there is a workaroud to allow using the same file
for all maven project modules.

Many thanks.

Mohamed.
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Validating repository XML?

2018-10-08 Thread BJ Hargrave via osgi-dev
Did you try
 
http://www.osgi.org/xmlns/repository/v1.0.0"            name="example">                         value="org.apache.felix.framework"/>                       value="osgi.bundle"/>                       value="6.0.1"                 type="Version"/>      
 
Note the use of the local name on the main repository element (I picked "repo" for my example).
 
--BJ HargraveSenior Technical Staff Member, IBM // office: +1 386 848 1781OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788hargr...@us.ibm.com
 
 
- Original message -From: Mark Raynsford via osgi-dev Sent by: osgi-dev-boun...@mail.osgi.orgTo: osgi-dev@mail.osgi.orgCc:Subject: [osgi-dev] Validating repository XML?Date: Mon, Oct 8, 2018 7:11 AM 
Hello.It seems as though it's not possible to validate XML repository filesagainst the published schema. I'm using the XSD from:  https://osgi.org/xmlns/repository/v1.0.0/repository.xsdI've tried to validate numerous repository files produced by BND withno luck. Even the following minimal example fails:http://www.osgi.org/xmlns/repository/v1.0.0"            name="example">                         value="org.apache.felix.framework"/>                       value="osgi.bundle"/>                       value="6.0.1"                 type="Version"/>      The error is:cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.osgi.org/xmlns/repository/v1.0.0":resource}'. One of '{resource, referral, WC[##other:"http://www.osgi.org/xmlns/repository/v1.0.0"]}' is expected.At: 3:13I'm using a validator that supports XML Schema 1.1 (I understand thatthis is required due the published schema being non-deterministic).What's wrong here?--Mark Raynsford | http://www.io7m.com 
 
att3jm7a.datType: application/pgp-signatureName: att3jm7a.dat
___OSGi Developer Mail Listosgi-dev@mail.osgi.orghttps://mail.osgi.org/mailman/listinfo/osgi-dev
 



att4dz0l.dat
Description: Binary data
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Validating repository XML?

2018-10-08 Thread Mark Raynsford via osgi-dev
Hello.

It seems as though it's not possible to validate XML repository files
against the published schema. I'm using the XSD from:

  https://osgi.org/xmlns/repository/v1.0.0/repository.xsd

I've tried to validate numerous repository files produced by BND with
no luck. Even the following minimal example fails:


http://www.osgi.org/xmlns/repository/v1.0.0;
name="example">
  

  
  
  

  


The error is:

cvc-complex-type.2.4.a: Invalid content was found starting with element 
'{"http://www.osgi.org/xmlns/repository/v1.0.0":resource}'. One of '{resource, 
referral, WC[##other:"http://www.osgi.org/xmlns/repository/v1.0.0"]}' is 
expected.
At: 3:13

I'm using a validator that supports XML Schema 1.1 (I understand that
this is required due the published schema being non-deterministic).

What's wrong here?

-- 
Mark Raynsford | http://www.io7m.com



pgpvuG5HmTtBA.pgp
Description: OpenPGP digital signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev