You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by David Wynter <da...@roamware.co.uk> on 2003/10/21 18:14:39 UTC

Still problems with VelocityPage

Hi,

Something in he changes between T2.2 and T2.3 has caused a major PITA for
me.

I have services.VelocityService.template.extension=vm
services.VelocityService.default.page=VelocityPage
services.VelocityService.default.screen=VelocityScreen
services.VelocityService.default.layout=VelocityOnlyLayout
services.VelocityService.default.navigation=VelocityNavigation
services.VelocityService.default.error.screen = VelocityErrorScreen
services.VelocityService.default.layout.template = Default.vm

I have NOT subclass VelocityPage. I have subclassed VelocitySecureScreen and
provided a com.roamware.rwtransform.modules.screens.Default.class which
changes layout template dependent on the role of the user. It does this
with:

 data.getTemplateInfo().setLayoutTemplate(templateName);

which from what I understand should NOT affect the page class being used, I
expect VelocityPage to be used.

But with the above settings I get this exception:

2003-10-21 15:37:07,565 [HttpProcessor[8080][4]] ERROR
org.apache.turbine.Turbine - Turbine.handleException:
java.lang.ClassNotFoundException:

	Requested Page not found: Default
	Turbine looked in the following modules.packages path:
	[com.roamware.rwtransform.modules, org.apache.turbine.modules]

	at org.apache.turbine.modules.PageLoader.getInstance(PageLoader.java:207)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
	at org.apache.turbine.Turbine.doGet(Turbine.java:796)

This occurs only when submitted for certain actions in my application. Under
what circumstances does a different name for the Page class get substituted
for VelocityPage? I repeat, I do NOT have a VelocityPage subclass anywhere
in my package.


Possibly related to this I have commented out these:

#services.TemplateService.mapper.page.class            =
org.apache.turbine.services.template.mapper.DirectTemplateMapper
#services.TemplateService.mapper.screen.class          =
org.apache.turbine.services.template.mapper.ClassMapper
#services.TemplateService.mapper.layout.class          =
org.apache.turbine.services.template.mapper.ClassMapper
#services.TemplateService.mapper.navigation.class      =
org.apache.turbine.services.template.mapper.ClassMapper
#services.TemplateService.mapper.layout.template.class =
org.apache.turbine.services.template.mapper.LayoutTemplateMapper
#services.TemplateService.mapper.screen.template.class =
org.apache.turbine.services.template.mapper.ScreenTemplateMapper
#services.TemplateService.mapper.navigation.template.class =
org.apache.turbine.services.template.mapper.DirectTemplateMapper

because if I uncomment them I get

	Requested Page not found: VelocityPage.vm
	Turbine looked in the following modules.packages path:
	[com.roamware.rwtransform.modules, org.apache.turbine.modules]

	at org.apache.turbine.modules.PageLoader.getInstance(PageLoader.java:207)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
	at org.apache.turbine.Turbine.doGet(Turbine.java:796)

I find the workings of the loading Page classes very complex, I have traced
into it.

Regards,

David Wynter


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


RE: Still problems with VelocityPage

Posted by David Wynter <da...@roamware.co.uk>.
Hi,

I now realise that it is a typo. Requested Action should be
Admin.CrudSchedule not Admin,CrudSchedule

Thanks for the hint on the Default class.

David

> -----Original Message-----
> From: David Wynter [mailto:david@roamware.co.uk]
> Sent: 21 October 2003 18:17
> To: Turbine Users List
> Subject: RE: Still problems with VelocityPage
>
>
> Hi,
>
> Well that changed the error.
>
> I now get:
>
> 2003-10-21 18:11:21,568 [HttpProcessor[8080][4]] ERROR
> org.apache.turbine.Turbine - Turbine.handleException:
> java.lang.ClassNotFoundException:
>
> 	Requested Action not found: Admin,CrudSchedule
> 	Turbine looked in the following modules.packages path:
> 	[com.roamware.rwtransform.modules, org.apache.turbine.modules]
>
> 	at
> org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:186)
> 	at
> org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:134)
> 	at
> org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:154)
> 	at org.apache.turbine.modules.Page.build(Page.java:91)
> 	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
>
> Where com.roamware.rwtransform.modules.actions.Admin.Crudschedule.class is
> the class it is looking for and it does exist. In fact the class has just
> been used to render the page from which this request is made.
>
> Adding the page Default.class is also counter to the advice given
> by Henning
> in http://marc.theaimsgroup.com/?l=turbine-user&m=105605174611474&w=2
>
> Still need a better explanation of when VelocityPage is not used,
> it is not
> adequately explained anywhere.
>
> Thanks
>
> David
>
>
>
> > -----Original Message-----
> > From: Uwe Maurer [mailto:maurerk@in.tum.de]
> > Sent: 21 October 2003 17:46
> > To: Turbine Users List
> > Subject: Re: Still problems with VelocityPage
> >
> >
> > David Wynter wrote:
> > > But with the above settings I get this exception:
> > >
> > > 2003-10-21 15:37:07,565 [HttpProcessor[8080][4]] ERROR
> > > org.apache.turbine.Turbine - Turbine.handleException:
> > > java.lang.ClassNotFoundException:
> > >
> > > 	Requested Page not found: Default
> > > 	Turbine looked in the following modules.packages path:
> > > 	[com.roamware.rwtransform.modules, org.apache.turbine.modules]
> > >
> > > 	at
> > org.apache.turbine.modules.PageLoader.getInstance(PageLoader.java:207)
> > > 	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
> > > 	at org.apache.turbine.Turbine.doGet(Turbine.java:796)
> > >
> >
> > I had the same exception when I was using RawScreens.
> > To solve it, put the following class in your module path:
> >
> > package com.roamware.rwtransform.modules.pages;
> > import org.apache.turbine.modules.pages.DefaultPage;
> > public class Default extends DefaultPage {
> > }
> >
> >
> > Regards,
> > Uwe
> >
> >
> > ---------------------------------------------------------------------
> > 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
>


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


RE: Still problems with VelocityPage

Posted by David Wynter <da...@roamware.co.uk>.
Hi,

Well that changed the error.

I now get:

2003-10-21 18:11:21,568 [HttpProcessor[8080][4]] ERROR
org.apache.turbine.Turbine - Turbine.handleException:
java.lang.ClassNotFoundException:

	Requested Action not found: Admin,CrudSchedule
	Turbine looked in the following modules.packages path:
	[com.roamware.rwtransform.modules, org.apache.turbine.modules]

	at
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:186)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:134)
	at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:154)
	at org.apache.turbine.modules.Page.build(Page.java:91)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)

Where com.roamware.rwtransform.modules.actions.Admin.Crudschedule.class is
the class it is looking for and it does exist. In fact the class has just
been used to render the page from which this request is made.

Adding the page Default.class is also counter to the advice given by Henning
in http://marc.theaimsgroup.com/?l=turbine-user&m=105605174611474&w=2

Still need a better explanation of when VelocityPage is not used, it is not
adequately explained anywhere.

Thanks

David



> -----Original Message-----
> From: Uwe Maurer [mailto:maurerk@in.tum.de]
> Sent: 21 October 2003 17:46
> To: Turbine Users List
> Subject: Re: Still problems with VelocityPage
>
>
> David Wynter wrote:
> > But with the above settings I get this exception:
> >
> > 2003-10-21 15:37:07,565 [HttpProcessor[8080][4]] ERROR
> > org.apache.turbine.Turbine - Turbine.handleException:
> > java.lang.ClassNotFoundException:
> >
> > 	Requested Page not found: Default
> > 	Turbine looked in the following modules.packages path:
> > 	[com.roamware.rwtransform.modules, org.apache.turbine.modules]
> >
> > 	at
> org.apache.turbine.modules.PageLoader.getInstance(PageLoader.java:207)
> > 	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
> > 	at org.apache.turbine.Turbine.doGet(Turbine.java:796)
> >
>
> I had the same exception when I was using RawScreens.
> To solve it, put the following class in your module path:
>
> package com.roamware.rwtransform.modules.pages;
> import org.apache.turbine.modules.pages.DefaultPage;
> public class Default extends DefaultPage {
> }
>
>
> Regards,
> Uwe
>
>
> ---------------------------------------------------------------------
> 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


Re: Still problems with VelocityPage

Posted by Uwe Maurer <ma...@in.tum.de>.
David Wynter wrote:
> But with the above settings I get this exception:
> 
> 2003-10-21 15:37:07,565 [HttpProcessor[8080][4]] ERROR
> org.apache.turbine.Turbine - Turbine.handleException:
> java.lang.ClassNotFoundException:
> 
> 	Requested Page not found: Default
> 	Turbine looked in the following modules.packages path:
> 	[com.roamware.rwtransform.modules, org.apache.turbine.modules]
> 
> 	at org.apache.turbine.modules.PageLoader.getInstance(PageLoader.java:207)
> 	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:136)
> 	at org.apache.turbine.Turbine.doGet(Turbine.java:796)
> 

I had the same exception when I was using RawScreens.
To solve it, put the following class in your module path:

package com.roamware.rwtransform.modules.pages;
import org.apache.turbine.modules.pages.DefaultPage;
public class Default extends DefaultPage {
}


Regards,
Uwe


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