You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Peter Courcoux <pe...@courcoux.biz> on 2004/04/16 20:45:33 UTC

Migrating an app from 2.3 to 2.4

Hi all,

While migrating an app from 2.3 to 2.4 I came across the following issue
that took me a while to spot. This is just a note in the hope that it
saves someone else from some hassle.

In TR.props for 2.3 the following was valid :-

services.VelocityService.velocimacro.library = GlobalMacros.vm
services.VelocityService.velocimacro.library = DateTimeMacros.vm
services.VelocityService.velocimacro.library = macros/TurbineMacros.vm

Note that the key is the same for each of the 3 lines.

In 2.4 this is not allowed ( due, I guess to the use of
commons-configuration ) and results in the Velocity service not being
initialized and in my case a highly illuminating 'Page not found  :
Default' error :-(

I have not yet worked out how to get multiple libraries for velocity
macros, but assume that multi-valued properties are documented in
commons-configuration somewhere!

If you know the answer, please post it to the list. Many thanks.

Regards,

Peter





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


RE: Migrating an app from 2.3 to 2.4

Posted by Eric Pugh <ep...@upstate.com>.
Peter,

I would recommend putting up a note on the wiki, we need a 2.3 to 2.4
migration doc anyway.  Also, can you send me a nice small unit test that
validates you get the multiple values and I'll dig into it?

Eric

> -----Original Message-----
> From: Peter Courcoux [mailto:peter@courcoux.biz]
> Sent: Friday, April 16, 2004 2:46 PM
> To: Turbine Users ListTurbineUsersList
> Subject: Migrating an app from 2.3 to 2.4
>
>
> Hi all,
>
> While migrating an app from 2.3 to 2.4 I came across the following issue
> that took me a while to spot. This is just a note in the hope that it
> saves someone else from some hassle.
>
> In TR.props for 2.3 the following was valid :-
>
> services.VelocityService.velocimacro.library = GlobalMacros.vm
> services.VelocityService.velocimacro.library = DateTimeMacros.vm
> services.VelocityService.velocimacro.library = macros/TurbineMacros.vm
>
> Note that the key is the same for each of the 3 lines.
>
> In 2.4 this is not allowed ( due, I guess to the use of
> commons-configuration ) and results in the Velocity service not being
> initialized and in my case a highly illuminating 'Page not found  :
> Default' error :-(
>
> I have not yet worked out how to get multiple libraries for velocity
> macros, but assume that multi-valued properties are documented in
> commons-configuration somewhere!
>
> If you know the answer, please post it to the list. Many thanks.
>
> Regards,
>
> Peter
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org


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