You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by "Robert A. Decker" <de...@robdecker.com> on 2012/10/23 15:22:57 UTC

configuring an instance of FsResourceProvider?

Hello,

I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.

I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.

org.apache.sling.fsprovider.internal.FsResourceProvider.xml

<node>
    <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
    <primaryNodeType>sling:OsgiConfig</primaryNodeType>
    <property>
        <name>provider.roots</name>
        <value>/content/fs/tmp</value>
        <type>String</type>
    </property>
    <property>
        <name>provider.file</name>
        <value>/tmp</value>
        <type>String</type>
    </property>
</node>

and 


org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml

<node>
    <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
    <primaryNodeType>sling:OsgiConfig</primaryNodeType>
    <property>
        <name>provider.roots</name>
        <value>/content/fs/tmp</value>
        <type>String</type>
    </property>
    <property>
        <name>provider.file</name>
        <value>/tmp</value>
        <type>String</type>
    </property>
</node>



Rob

Re: configuring an instance of FsResourceProvider?

Posted by Carsten Ziegeler <cz...@apache.org>.
No problem, important part is: it works now :)

Carsten

2012/10/23 Robert A. Decker <de...@robdecker.com>:
> Sorry for sending so many emails to the list. It ended up being a problem with my 'install' config - it wasn't being read. I think because I had it too many levels deep. After moving it up one it's being read now.
>
>
> Rob
>
> On Oct 23, 2012, at 3:35 PM, Robert A. Decker wrote:
>
>> Actually, I don't think that's the problem.
>>
>> When I configure an instance manually in the sling/console/configuration the component then begins running because there is now a configuration present.
>>
>> I would like to have a configuration provided through the my app's install directory.
>>
>>
>> Rob
>>
>>
>> On Oct 23, 2012, at 3:31 PM, Robert A. Decker wrote:
>>
>>> Ah, I may have something wrong. This is in my components:
>>> org.apache.sling.fsprovider.internal.FsResourceProvider      unsatisfied
>>>
>>> R
>>>
>>> On Oct 23, 2012, at 3:30 PM, Robert A. Decker wrote:
>>>
>>>> I think so…
>>>>
>>>> In my bundles I have:
>>>> Apache Sling Filesystem Resource Provider org.apache.sling.fsresource       1.0.3.SNAPSHOT  sling   Active
>>>>
>>>> unless there's a different bundle.
>>>>
>>>> Rob
>>>>
>>>> On Oct 23, 2012, at 3:26 PM, David G. wrote:
>>>>
>>>>> Robert - You've installed the Sling FsResourceProvider bundle correct? and its successfully activated?
>>>>>
>>>>> --
>>>>> David Gonzalez
>>>>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>>>>>
>>>>>
>>>>> On Tuesday, October 23, 2012 at 9:22 AM, Robert A. Decker wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.
>>>>>>
>>>>>> I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.
>>>>>>
>>>>>> org.apache.sling.fsprovider.internal.FsResourceProvider.xml
>>>>>>
>>>>>> <node>
>>>>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
>>>>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>>>>> <property>
>>>>>> <name>provider.roots</name>
>>>>>> <value>/content/fs/tmp</value>
>>>>>> <type>String</type>
>>>>>> </property>
>>>>>> <property>
>>>>>> <name>provider.file</name>
>>>>>> <value>/tmp</value>
>>>>>> <type>String</type>
>>>>>> </property>
>>>>>> </node>
>>>>>>
>>>>>> and
>>>>>>
>>>>>>
>>>>>> org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
>>>>>>
>>>>>> <node>
>>>>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
>>>>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>>>>> <property>
>>>>>> <name>provider.roots</name>
>>>>>> <value>/content/fs/tmp</value>
>>>>>> <type>String</type>
>>>>>> </property>
>>>>>> <property>
>>>>>> <name>provider.file</name>
>>>>>> <value>/tmp</value>
>>>>>> <type>String</type>
>>>>>> </property>
>>>>>> </node>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Rob
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>



-- 
Carsten Ziegeler
cziegeler@apache.org

Re: configuring an instance of FsResourceProvider?

Posted by "Robert A. Decker" <de...@robdecker.com>.
Sorry for sending so many emails to the list. It ended up being a problem with my 'install' config - it wasn't being read. I think because I had it too many levels deep. After moving it up one it's being read now.


Rob

On Oct 23, 2012, at 3:35 PM, Robert A. Decker wrote:

> Actually, I don't think that's the problem.
> 
> When I configure an instance manually in the sling/console/configuration the component then begins running because there is now a configuration present.
> 
> I would like to have a configuration provided through the my app's install directory.
> 
> 
> Rob
> 
> 
> On Oct 23, 2012, at 3:31 PM, Robert A. Decker wrote:
> 
>> Ah, I may have something wrong. This is in my components:
>> org.apache.sling.fsprovider.internal.FsResourceProvider	unsatisfied
>> 
>> R
>> 
>> On Oct 23, 2012, at 3:30 PM, Robert A. Decker wrote:
>> 
>>> I think so…
>>> 
>>> In my bundles I have:
>>> Apache Sling Filesystem Resource Provider org.apache.sling.fsresource	1.0.3.SNAPSHOT	sling	Active
>>> 
>>> unless there's a different bundle.
>>> 
>>> Rob
>>> 
>>> On Oct 23, 2012, at 3:26 PM, David G. wrote:
>>> 
>>>> Robert - You've installed the Sling FsResourceProvider bundle correct? and its successfully activated?
>>>> 
>>>> -- 
>>>> David Gonzalez
>>>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>>>> 
>>>> 
>>>> On Tuesday, October 23, 2012 at 9:22 AM, Robert A. Decker wrote:
>>>> 
>>>>> Hello,
>>>>> 
>>>>> I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.
>>>>> 
>>>>> I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.
>>>>> 
>>>>> org.apache.sling.fsprovider.internal.FsResourceProvider.xml
>>>>> 
>>>>> <node>
>>>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
>>>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>>>> <property>
>>>>> <name>provider.roots</name>
>>>>> <value>/content/fs/tmp</value>
>>>>> <type>String</type>
>>>>> </property>
>>>>> <property>
>>>>> <name>provider.file</name>
>>>>> <value>/tmp</value>
>>>>> <type>String</type>
>>>>> </property>
>>>>> </node>
>>>>> 
>>>>> and 
>>>>> 
>>>>> 
>>>>> org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
>>>>> 
>>>>> <node>
>>>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
>>>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>>>> <property>
>>>>> <name>provider.roots</name>
>>>>> <value>/content/fs/tmp</value>
>>>>> <type>String</type>
>>>>> </property>
>>>>> <property>
>>>>> <name>provider.file</name>
>>>>> <value>/tmp</value>
>>>>> <type>String</type>
>>>>> </property>
>>>>> </node>
>>>>> 
>>>>> 
>>>>> 
>>>>> Rob 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 


Re: configuring an instance of FsResourceProvider?

Posted by "Robert A. Decker" <de...@robdecker.com>.
Actually, I don't think that's the problem.

When I configure an instance manually in the sling/console/configuration the component then begins running because there is now a configuration present.

I would like to have a configuration provided through the my app's install directory.


Rob


On Oct 23, 2012, at 3:31 PM, Robert A. Decker wrote:

> Ah, I may have something wrong. This is in my components:
> org.apache.sling.fsprovider.internal.FsResourceProvider	unsatisfied
> 
> R
> 
> On Oct 23, 2012, at 3:30 PM, Robert A. Decker wrote:
> 
>> I think so…
>> 
>> In my bundles I have:
>> Apache Sling Filesystem Resource Provider org.apache.sling.fsresource	1.0.3.SNAPSHOT	sling	Active
>> 
>> unless there's a different bundle.
>> 
>> Rob
>> 
>> On Oct 23, 2012, at 3:26 PM, David G. wrote:
>> 
>>> Robert - You've installed the Sling FsResourceProvider bundle correct? and its successfully activated?
>>> 
>>> -- 
>>> David Gonzalez
>>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>>> 
>>> 
>>> On Tuesday, October 23, 2012 at 9:22 AM, Robert A. Decker wrote:
>>> 
>>>> Hello,
>>>> 
>>>> I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.
>>>> 
>>>> I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.
>>>> 
>>>> org.apache.sling.fsprovider.internal.FsResourceProvider.xml
>>>> 
>>>> <node>
>>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
>>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>>> <property>
>>>> <name>provider.roots</name>
>>>> <value>/content/fs/tmp</value>
>>>> <type>String</type>
>>>> </property>
>>>> <property>
>>>> <name>provider.file</name>
>>>> <value>/tmp</value>
>>>> <type>String</type>
>>>> </property>
>>>> </node>
>>>> 
>>>> and 
>>>> 
>>>> 
>>>> org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
>>>> 
>>>> <node>
>>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
>>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>>> <property>
>>>> <name>provider.roots</name>
>>>> <value>/content/fs/tmp</value>
>>>> <type>String</type>
>>>> </property>
>>>> <property>
>>>> <name>provider.file</name>
>>>> <value>/tmp</value>
>>>> <type>String</type>
>>>> </property>
>>>> </node>
>>>> 
>>>> 
>>>> 
>>>> Rob 
>>> 
>> 
>> 
> 
> 


Re: configuring an instance of FsResourceProvider?

Posted by "Robert A. Decker" <de...@robdecker.com>.
Ah, I may have something wrong. This is in my components:
org.apache.sling.fsprovider.internal.FsResourceProvider	unsatisfied

R

On Oct 23, 2012, at 3:30 PM, Robert A. Decker wrote:

> I think so…
> 
> In my bundles I have:
> Apache Sling Filesystem Resource Provider org.apache.sling.fsresource	1.0.3.SNAPSHOT	sling	Active
> 
> unless there's a different bundle.
> 
> Rob
> 
> On Oct 23, 2012, at 3:26 PM, David G. wrote:
> 
>> Robert - You've installed the Sling FsResourceProvider bundle correct? and its successfully activated?
>> 
>> -- 
>> David Gonzalez
>> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>> 
>> 
>> On Tuesday, October 23, 2012 at 9:22 AM, Robert A. Decker wrote:
>> 
>>> Hello,
>>> 
>>> I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.
>>> 
>>> I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.
>>> 
>>> org.apache.sling.fsprovider.internal.FsResourceProvider.xml
>>> 
>>> <node>
>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>> <property>
>>> <name>provider.roots</name>
>>> <value>/content/fs/tmp</value>
>>> <type>String</type>
>>> </property>
>>> <property>
>>> <name>provider.file</name>
>>> <value>/tmp</value>
>>> <type>String</type>
>>> </property>
>>> </node>
>>> 
>>> and 
>>> 
>>> 
>>> org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
>>> 
>>> <node>
>>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
>>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>>> <property>
>>> <name>provider.roots</name>
>>> <value>/content/fs/tmp</value>
>>> <type>String</type>
>>> </property>
>>> <property>
>>> <name>provider.file</name>
>>> <value>/tmp</value>
>>> <type>String</type>
>>> </property>
>>> </node>
>>> 
>>> 
>>> 
>>> Rob 
>> 
> 
> 


Re: configuring an instance of FsResourceProvider?

Posted by "Robert A. Decker" <de...@robdecker.com>.
I think so…

In my bundles I have:
Apache Sling Filesystem Resource Provider org.apache.sling.fsresource	1.0.3.SNAPSHOT	sling	Active

unless there's a different bundle.

Rob

On Oct 23, 2012, at 3:26 PM, David G. wrote:

> Robert - You've installed the Sling FsResourceProvider bundle correct? and its successfully activated?
> 
> -- 
> David Gonzalez
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> 
> 
> On Tuesday, October 23, 2012 at 9:22 AM, Robert A. Decker wrote:
> 
>> Hello,
>> 
>> I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.
>> 
>> I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.
>> 
>> org.apache.sling.fsprovider.internal.FsResourceProvider.xml
>> 
>> <node>
>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>> <property>
>> <name>provider.roots</name>
>> <value>/content/fs/tmp</value>
>> <type>String</type>
>> </property>
>> <property>
>> <name>provider.file</name>
>> <value>/tmp</value>
>> <type>String</type>
>> </property>
>> </node>
>> 
>> and 
>> 
>> 
>> org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
>> 
>> <node>
>> <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
>> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
>> <property>
>> <name>provider.roots</name>
>> <value>/content/fs/tmp</value>
>> <type>String</type>
>> </property>
>> <property>
>> <name>provider.file</name>
>> <value>/tmp</value>
>> <type>String</type>
>> </property>
>> </node>
>> 
>> 
>> 
>> Rob 
> 


Re: configuring an instance of FsResourceProvider?

Posted by "David G." <da...@gmail.com>.
Robert - You've installed the Sling FsResourceProvider bundle correct? and its successfully activated?

-- 
David Gonzalez
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Tuesday, October 23, 2012 at 9:22 AM, Robert A. Decker wrote:

> Hello,
> 
> I'm trying to configuring an instance of FsResourceProvider via an xml file in my app's 'install' directory but can't get it to work.
> 
> I've tried combinations of the following. Should it work to create an instance of FsResourceProvider this way? I'm basing it on how the logging services were configured and worked for me.
> 
> org.apache.sling.fsprovider.internal.FsResourceProvider.xml
> 
> <node>
> <name>org.apache.sling.fsprovider.internal.FsResourceProvider</name>
> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
> <property>
> <name>provider.roots</name>
> <value>/content/fs/tmp</value>
> <type>String</type>
> </property>
> <property>
> <name>provider.file</name>
> <value>/tmp</value>
> <type>String</type>
> </property>
> </node>
> 
> and 
> 
> 
> org.apache.sling.fsprovider.internal.FsResourceProvider-tmp.xml
> 
> <node>
> <name>org.apache.sling.fsprovider.internal.FsResourceProvider-tmp</name>
> <primaryNodeType>sling:OsgiConfig</primaryNodeType>
> <property>
> <name>provider.roots</name>
> <value>/content/fs/tmp</value>
> <type>String</type>
> </property>
> <property>
> <name>provider.file</name>
> <value>/tmp</value>
> <type>String</type>
> </property>
> </node>
> 
> 
> 
> Rob