Re: Per-Sitemap classloading

2006-06-06 Thread Reinhard Poetz

Carsten Ziegeler wrote:

Reinhard Poetz wrote:


Reinhard Poetz wrote:


Carsten Ziegeler wrote:


I renamed this; it should now work though I'm currently not able to test
as m2 has gone crazy and uses everything but my local stuff...


thanks, I'll give it a shot.


Basically it works :-) - except that class files don't get reloaded.



Great, by default it uses the configured class loader factory which I
guess is just the default implementation and not the reloading one. The
default is in the cocoon.roles file. So perhaps changing this or adding
an additional factory and refering to it from the sitemap might help:




I added another role/impl

  
  


but only with partly success because a change in the classes is not propagated 
to the sitemap and a reset of the classloader.




We could also provide different defaults for different running modes: in
"prod" the default classloader factory and in "dev" the reloading one.


I consider using  as "at development time" only. Hence I think 
that we don't need different behaviour for different running modes.


--
Reinhard Pötz   Independent Consultant, Trainer & (IT)-Coach 


{Software Engineering, Open Source, Web Applications, Apache Cocoon}

   web(log): http://www.poetz.cc



___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: Per-Sitemap classloading

2006-06-05 Thread Carsten Ziegeler
Reinhard Poetz wrote:
> Reinhard Poetz wrote:
>> Carsten Ziegeler wrote:
>>> I renamed this; it should now work though I'm currently not able to test
>>> as m2 has gone crazy and uses everything but my local stuff...
>> thanks, I'll give it a shot.
> 
> Basically it works :-) - except that class files don't get reloaded.
> 
Great, by default it uses the configured class loader factory which I
guess is just the default implementation and not the reloading one. The
default is in the cocoon.roles file. So perhaps changing this or adding
an additional factory and refering to it from the sitemap might help:



We could also provide different defaults for different running modes: in
"prod" the default classloader factory and in "dev" the reloading one.

HTH
Carsten


-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


Re: Per-Sitemap classloading

2006-06-04 Thread Reinhard Poetz

Reinhard Poetz wrote:

Carsten Ziegeler wrote:

I renamed this; it should now work though I'm currently not able to test
as m2 has gone crazy and uses everything but my local stuff...


thanks, I'll give it a shot.


Basically it works :-) - except that class files don't get reloaded.

--
Reinhard Pötz   Independent Consultant, Trainer & (IT)-Coach 


{Software Engineering, Open Source, Web Applications, Apache Cocoon}

   web(log): http://www.poetz.cc






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de


Re: Per-Sitemap classloading

2006-06-04 Thread Reinhard Poetz

Carsten Ziegeler wrote:

Carsten Ziegeler wrote:


Reinhard Poetz wrote:


Carsten Ziegeler wrote:



The per sitemap classloading is now in again, but I didn't test it yet;


I failed when trying to use

  

  

  


Yepp, hmm, the classloader element has to be filtered before it will be
passed to the component manager. I think I added this code...I'll have a
look right now.



Ok, the problem was that I named the element "classpath" while you use
"classloader";
I renamed this; it should now work though I'm currently not able to test
as m2 has gone crazy and uses everything but my local stuff...


thanks, I'll give it a shot.

@m2: I had this problems a couple of weeks ago. Unfortunatly I have no idea 
what's going on here. If you find the cause, pls share your findings with us :-)


--
Reinhard Pötz   Independent Consultant, Trainer & (IT)-Coach 


{Software Engineering, Open Source, Web Applications, Apache Cocoon}

   web(log): http://www.poetz.cc






___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de


Re: Per-Sitemap classloading

2006-06-03 Thread Carsten Ziegeler
Carsten Ziegeler wrote:
> Reinhard Poetz wrote:
>> Carsten Ziegeler wrote:
>>
>>> The per sitemap classloading is now in again, but I didn't test it yet;
>> I failed when trying to use
>>
>>
>>  
>>
>>  
>>
>>
> Yepp, hmm, the classloader element has to be filtered before it will be
> passed to the component manager. I think I added this code...I'll have a
> look right now.
> 
Ok, the problem was that I named the element "classpath" while you use
"classloader";
I renamed this; it should now work though I'm currently not able to test
as m2 has gone crazy and uses everything but my local stuff...


Carsten
-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


Re: Per-Sitemap classloading

2006-06-03 Thread Carsten Ziegeler
Reinhard Poetz wrote:
> Carsten Ziegeler wrote:
> 
>> The per sitemap classloading is now in again, but I didn't test it yet;
> 
> I failed when trying to use
> 
>
>  
>
>  
>
> 
Yepp, hmm, the classloader element has to be filtered before it will be
passed to the component manager. I think I added this code...I'll have a
look right now.

Carsten
-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/