Re: [equinox-dev] Tycho Surefire Test fails to load Schemafactory

2018-11-26 Thread Thomas Watson
I added a comment to the bug report, we can continue the discussion there.
Tom 
 
 
- Original message -From: Guillaume Dufour Sent by: equinox-dev-boun...@eclipse.orgTo: Equinox development mailing list Cc: tycho-...@eclipse.orgSubject: Re: [equinox-dev] Tycho Surefire Test fails to load SchemafactoryDate: Sat, Nov 24, 2018 4:36 PM 
Yes. And the exemple or reproduction code did It. 
To be precise, IT do 
classLoader.getResources("META-INF/services/javax.xml.validation.SchemaFactory");
 
I will try to débug an eclipse instance jdt  to understand the différence.  
 
Regards
 
Le sam. 24 nov. 2018 à 23:07, Raymond Auge  a écrit :
Technically you shouldn't have to do anything different than what ServiceLoader would normally do:
 
classLoader.getResource("META-INF/services/javax.xml.validation.SchemaFactory");
 
- Ray 

 
On Sat, Nov 24, 2018 at 1:16 PM Guillaume Dufour  wrote:
 
Hello Equinox Team,
 
I try to help by fixing a bug on tycho.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=485926
 
I hope i am on a the right mailing list. If the class org.eclipse.osgi.internal.loader.BundleLoader is in your scope normaly yes ;o)
 
As I can see there is a problem during loading a resource : /META-INF/services/javax.xml.validation.SchemaFactory from xercesImpl.jar wich was added by the Bundle-ClassPath. 
When we try to findResources in BundleLoader, the class extract package name : META-INF.services. And try to find this package in required bundle. But my resource is inside an embedded library as bundle classpath. I don't know how eclipse solve this and how to find the resource ? Maybe we must add a specific class loader in our CombinedClassLoader ?
 
Maybe i must do a specific way (call hierarchy) to manage real resource like META-INF data ?
 
Before implementing anything I prefer asking the good way to fix it.
 
Sorry for my english, it's not my native language.
 
Regards
Guillaume Dufour
___equinox-dev mailing listequinox-dev@eclipse.orgTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/equinox-dev--
Raymond Augé (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)___equinox-dev mailing listequinox-dev@eclipse.orgTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/equinox-dev
___equinox-dev mailing listequinox-dev@eclipse.orgTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://www.eclipse.org/mailman/listinfo/equinox-dev
 

___
equinox-dev mailing list
equinox-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev

Re: [equinox-dev] Tycho Surefire Test fails to load Schemafactory

2018-11-24 Thread Guillaume Dufour
Yes. And the exemple or reproduction code did It.
To be precise, IT do
classLoader.getResources("
META-INF/services/javax.xml.validation.SchemaFactory");

I will try to débug an eclipse instance jdt  to understand the différence.

Regards

Le sam. 24 nov. 2018 à 23:07, Raymond Auge  a
écrit :

> Technically you shouldn't have to do anything different than what
> ServiceLoader would normally do:
>
> classLoader.getResource("
> META-INF/services/javax.xml.validation.SchemaFactory");
>
> - Ray
>
> On Sat, Nov 24, 2018 at 1:16 PM Guillaume Dufour 
> wrote:
>
>> Hello Equinox Team,
>>
>> I try to help by fixing a bug on tycho.
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=485926
>>
>> I hope i am on a the right mailing list. If the class 
>> org.eclipse.osgi.internal.loader.BundleLoader
>> is in your scope normaly yes ;o)
>>
>> As I can see there is a problem during loading a resource : 
>> /META-INF/services/javax.xml.validation.SchemaFactory
>> from xercesImpl.jar wich was added by the Bundle-ClassPath.
>> When we try to findResources in BundleLoader, the class extract package
>> name : META-INF.services. And try to find this package in required
>> bundle. But my resource is inside an embedded library as bundle classpath.
>> I don't know how eclipse solve this and how to find the resource ? Maybe we
>> must add a specific class loader in our CombinedClassLoader ?
>>
>> Maybe i must do a specific way (call hierarchy) to manage real resource
>> like META-INF data ?
>>
>> Before implementing anything I prefer asking the good way to fix it.
>>
>> Sorry for my english, it's not my native language.
>>
>> Regards
>> Guillaume Dufour
>>
> ___
>> equinox-dev mailing list
>> equinox-dev@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/equinox-dev
>
>
>
> --
> *Raymond Augé* 
>  (@rotty3000)
> Senior Software Architect *Liferay, Inc.* 
>  (@Liferay)
> Board Member & EEG Co-Chair, OSGi Alliance 
> (@OSGiAlliance)
> ___
> equinox-dev mailing list
> equinox-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/equinox-dev
___
equinox-dev mailing list
equinox-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev

Re: [equinox-dev] Tycho Surefire Test fails to load Schemafactory

2018-11-24 Thread Raymond Auge
Technically you shouldn't have to do anything different than what
ServiceLoader would normally do:

classLoader.getResource("
META-INF/services/javax.xml.validation.SchemaFactory");

- Ray

On Sat, Nov 24, 2018 at 1:16 PM Guillaume Dufour 
wrote:

> Hello Equinox Team,
>
> I try to help by fixing a bug on tycho.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=485926
>
> I hope i am on a the right mailing list. If the class 
> org.eclipse.osgi.internal.loader.BundleLoader
> is in your scope normaly yes ;o)
>
> As I can see there is a problem during loading a resource : 
> /META-INF/services/javax.xml.validation.SchemaFactory
> from xercesImpl.jar wich was added by the Bundle-ClassPath.
> When we try to findResources in BundleLoader, the class extract package
> name : META-INF.services. And try to find this package in required
> bundle. But my resource is inside an embedded library as bundle classpath.
> I don't know how eclipse solve this and how to find the resource ? Maybe we
> must add a specific class loader in our CombinedClassLoader ?
>
> Maybe i must do a specific way (call hierarchy) to manage real resource
> like META-INF data ?
>
> Before implementing anything I prefer asking the good way to fix it.
>
> Sorry for my english, it's not my native language.
>
> Regards
> Guillaume Dufour
> ___
> equinox-dev mailing list
> equinox-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/equinox-dev



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
equinox-dev mailing list
equinox-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev

[equinox-dev] Tycho Surefire Test fails to load Schemafactory

2018-11-24 Thread Guillaume Dufour
Hello Equinox Team,

I try to help by fixing a bug on tycho.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=485926

I hope i am on a the right mailing list. If the class
org.eclipse.osgi.internal.loader.BundleLoader
is in your scope normaly yes ;o)

As I can see there is a problem during loading a resource :
/META-INF/services/javax.xml.validation.SchemaFactory
from xercesImpl.jar wich was added by the Bundle-ClassPath.
When we try to findResources in BundleLoader, the class extract package
name : META-INF.services. And try to find this package in required bundle.
But my resource is inside an embedded library as bundle classpath. I don't
know how eclipse solve this and how to find the resource ? Maybe we must
add a specific class loader in our CombinedClassLoader ?

Maybe i must do a specific way (call hierarchy) to manage real resource
like META-INF data ?

Before implementing anything I prefer asking the good way to fix it.

Sorry for my english, it's not my native language.

Regards
Guillaume Dufour
___
equinox-dev mailing list
equinox-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/equinox-dev