sling mocks "Creating resource resolver failed"

2017-04-28 Thread Santiago Garcia Pimentel
Hello, Im trying to use sling mocks and Im having problems when creating content when using the JCR_MOCK. When trying to create a resource with : @Rule public final SlingContext context = new SlingContext(ResourceResolverType.JCR_MOCK); and context.create().resource("/content/web",

RE: sling mocks "Creating resource resolver failed"

2017-04-28 Thread Stefan Seifert
can you provide more details with version of sling mock you are using? and if you are overrding some of it's dependencies (e.g. org.apache.sling.resourceresolver or org.apache.sling.jcr.resource) with other versions? you might also try to move sling-mock test dependency to the top in your

RE: sling mocks "Creating resource resolver failed"

2017-04-28 Thread Stefan Seifert
and which version of the following bundles are used? org.apache.sling.resourceresolver org.apache.sling.api stefan >-Original Message- >From: Santiago Garcia Pimentel [mailto:santiago.pimen...@netcentric.biz] >Sent: Friday, April 28, 2017 12:49 PM >To: users@sling.apache.org >Subject:

Re: sling mocks "Creating resource resolver failed"

2017-04-28 Thread Santiago Garcia Pimentel
org.apache.sling.resourceresolver 1.4.8 org.apache.sling.api 2.16.2 I tried updating the resourceresolver version to 1.5.22 but got a different error: java.lang.RuntimeException: Unable to initialize JCR_MOCK resource resolver factory: Unable to invoke method 'activate' for class

RE: sling mocks "Creating resource resolver failed"

2017-04-28 Thread Stefan Seifert
>I tried updating the resourceresolver version to 1.5.22 but got a different >error: just hit this as well - also try osgi-mock 2.2.5-SNAPSHOT with the fix from SLING-6811 stefan

Re: Sling pipes release

2017-04-28 Thread Bertrand Delacretaz
On Fri, Apr 28, 2017 at 12:28 AM, Correia wrote: > ...The "ignoreImportProviders=json" is not a solution because I use JSON for > all my content... That option is per path, so I suppose if you isolate those .json files in a specific path that should work - but

RE: i18n json resource files with Sling-Initial-Content (was: Sling pipes release)

2017-04-28 Thread Stefan Seifert
i think it is currently not possible to deploy json-file bases i18n resources with Sling-Initial-Content. as described in [1] the json file node nt:file needs an additional mixin mix:language for the language code. and this is not possible to define with or without ignoreImportProviders=json