Sorry Henning, I missed this reply before I sent mine.
I had looked in the mail archives and seen previous discussions on this subject. But the example you offered (multitemplate-1.0) does not override the layouts and I need to. I have checked all the things you outline below, none of these have changed from T2.2. anyway, excepting the ECS changes. This services.VelocityService.file.resource.loader.path = /templates used to be this services.VelocityService.file.resource.loader.path = /templates/app But I have tried both and I get the same problem. I tried to trace the execution of the template load, but because it is all decoupled due to the services configuration it is hard to see what is going on. thanks, David -----Original Message----- From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 12:52 To: [EMAIL PROTECTED] Subject: Re: Some changes required for T2.3 "David Wynter" <[EMAIL PROTECTED]> writes: You should have in your TR.props: services.VelocityService.default.page = VelocityPage services.VelocityService.default.screen=VelocityScreen services.VelocityService.default.layout = VelocityOnlyLayout services.VelocityService.default.navigation=VelocityNavigation These are java class name fragments. They're looked up with the packages defined in the module.packages property, and you should end up with the existing classes from the turbine jar. services.VelocityService.default.layout.template = Default.vm This is a template name! It is looked up with the VelocityTemplate Loader and you must have a Velocity Template called "Default.vm" (normally you use the File loader [1]) and end up with a File called templates/layouts/Default.vm Please, if you migrate from 2.2 to 2.3, look into the conf/TurbineResources.properties file in the source tree! We try to keep a current configuration in this file. Regards Henning [1] This assumes that you have the file loader configured as follows: services.VelocityService.resource.loader = file services.VelocityService.file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader services.VelocityService.file.resource.loader.path = /templates >Hi, >I have followed the wiki on migrating T2.2->T2.3 and the one on >VelocityOnlyLayout. But it appears that when you change from T2.2 to T2.3 >there are other changes also required if you are starting from an exisitng >T2.2 app. >When I start up I get: >... >[ERROR] Turbine - - > Requested Layout not found: Default > Turbine looked in the following modules.packages path: > [com.roamware.rwsite.modules, org.apache.turbine.modules] > <java.lang.ClassNotFoundException: > Requested Layout not found: Default > Turbine looked in the following modules.packages path: > [com.roamware.rwsite.modules, org.apache.turbine.modules] >>java.lang.ClassNotFoundException: > Requested Layout not found: Default > Turbine looked in the following modules.packages path: > [com.roamware.rwsite.modules, org.apache.turbine.modules] > at >org.apache.turbine.modules.LayoutLoader.getInstance(LayoutLoader.java:209) > at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:138) > at >org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:187) > at org.apache.turbine.modules.Page.build(Page.java:91) > at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:135) > at org.apache.turbine.Turbine.handleException(Turbine.java:1008) > at org.apache.turbine.Turbine.doGet(Turbine.java:867) >... >I never needed a Default.class in the ...modules.layout package previously, >is this new or have I messed something up? What goes in this class if it is >now required? >Thanks >David Wynter >roamware Ltd. >(+44) (0) 208 922 7539 B. >(+44) (0) 7879 605 706 M. >www.roamware.co.uk >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/ Java, perl, Solaris, Linux, xSP Consulting, Web Services freelance consultant -- Jakarta Turbine Development -- hero for hire --- Quote of the week: "It is pointless to tell people anything when you know that they won't process the message." --- Jonathan Revusky --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
