You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Gintare Ragaisiene <gi...@gmail.com> on 2010/01/04 09:02:54 UTC

after editing cocoon.xconf result stays the same

Hi,

   I have usecase added to my Lenya 2.0, it works good. Then I do following:

1) edit $LENYA_HOME/build/lenya/webapp/WEB-INF/cocoon.xconf and delete
usecase component-instance:

...

<usecases>

...

<!-- deleted -->
<!--<component-instance
class="org.apache.lenya.cms.editors.ginnewsgroup.Banners"
logger="lenya.site.ginnewsgroup" name="ginnewsgroup.banners">
    <view
customFlow="fallback://lenya/modules/ginnewsgroup/flow/bannersFlow.js"
uri="modules/ginnewsgroup/usecases/banners_dynamicrepeater_template.xml"/>
    <event id="edit"/>
  </component-instance>-->

</usecases>

...

  2) not do server restart
  3) refresh browser with Lenya application
  4) the usecase "ginnewsgroup.banners" still works perfectly.

Why after deletion in biuld/../cocoon.xconf the module still works ok?

Thaks,
Gintarė

Re: after editing cocoon.xconf result stays the same

Posted by Florent André <fl...@4sengines.com>.
On Mon, 4 Jan 2010 19:46:25 +0200, Gintare Ragaisiene
<gi...@gmail.com> wrote:
> Is there a way to reload cocoon.xconf without server engine restart?

I had a look on it some times ago, and I find this [1] (but don't try) : 

- modify this conf : 
<init-param>  
<param-name>allow-reload</param-name>  
<param-value>true</param-value> 
</init-param> 

- then type this url :
<URL>?cocoon-reload=true fonctionne

But be careful, 
- this can be a security issue
- some objects not handled by Avalon could be not reinitialized

[1] in french :
http://markmail.org/message/enssgylel2hnpqx4#query:+page:1+mid:cvd5qai554hrdk6q+state:results

++
> 
> 
> 
> On Mon, Jan 4, 2010 at 5:30 PM, Richard Frovarp <rf...@apache.org>
> wrote:
> 
>> On 1/4/2010 2:02 AM, Gintare Ragaisiene wrote:
>>
>>> Hi,
>>>
>>>    I have usecase added to my Lenya 2.0, it works good. Then I do
>>> following:
>>>
>>> 1) edit $LENYA_HOME/build/lenya/webapp/WEB-INF/cocoon.xconf and delete
>>> usecase component-instance:
>>>
>>> ...
>>>
>>> <usecases>
>>>
>>> ...
>>>
>>> <!-- deleted -->
>>> <!--<component-instance
>>> class="org.apache.lenya.cms.editors.ginnewsgroup.Banners"
>>> logger="lenya.site.ginnewsgroup" name="ginnewsgroup.banners">
>>> <view
>>> customFlow="fallback://lenya/modules/ginnewsgroup/flow/bannersFlow.js"
>>>
uri="modules/ginnewsgroup/usecases/banners_dynamicrepeater_template.xml"/>
>>> <event id="edit"/>
>>> </component-instance>-->
>>>
>>> </usecases>
>>>
>>> ...
>>>
>>>   2) not do server restart
>>>
>>
>> You need to do a server restart.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: after editing cocoon.xconf result stays the same

Posted by Gintare Ragaisiene <gi...@gmail.com>.
Is there a way to reload cocoon.xconf without server engine restart?



On Mon, Jan 4, 2010 at 5:30 PM, Richard Frovarp <rf...@apache.org> wrote:

> On 1/4/2010 2:02 AM, Gintare Ragaisiene wrote:
>
>> Hi,
>>
>>    I have usecase added to my Lenya 2.0, it works good. Then I do
>> following:
>>
>> 1) edit $LENYA_HOME/build/lenya/webapp/WEB-INF/cocoon.xconf and delete
>> usecase component-instance:
>>
>> ...
>>
>> <usecases>
>>
>> ...
>>
>> <!-- deleted -->
>> <!--<component-instance
>> class="org.apache.lenya.cms.editors.ginnewsgroup.Banners"
>> logger="lenya.site.ginnewsgroup" name="ginnewsgroup.banners">
>> <view
>> customFlow="fallback://lenya/modules/ginnewsgroup/flow/bannersFlow.js"
>> uri="modules/ginnewsgroup/usecases/banners_dynamicrepeater_template.xml"/>
>> <event id="edit"/>
>> </component-instance>-->
>>
>> </usecases>
>>
>> ...
>>
>>   2) not do server restart
>>
>
> You need to do a server restart.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>

Re: after editing cocoon.xconf result stays the same

Posted by Richard Frovarp <rf...@apache.org>.
On 1/4/2010 2:02 AM, Gintare Ragaisiene wrote:
> Hi,
>
>     I have usecase added to my Lenya 2.0, it works good. Then I do
> following:
>
> 1) edit $LENYA_HOME/build/lenya/webapp/WEB-INF/cocoon.xconf and delete
> usecase component-instance:
>
> ...
>
> <usecases>
>
> ...
>
> <!-- deleted -->
> <!--<component-instance
> class="org.apache.lenya.cms.editors.ginnewsgroup.Banners"
> logger="lenya.site.ginnewsgroup" name="ginnewsgroup.banners">
> <view
> customFlow="fallback://lenya/modules/ginnewsgroup/flow/bannersFlow.js"
> uri="modules/ginnewsgroup/usecases/banners_dynamicrepeater_template.xml"/>
> <event id="edit"/>
> </component-instance>-->
>
> </usecases>
>
> ...
>
>    2) not do server restart

You need to do a server restart.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org