You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Diethelm Guallar, Gonzalo" <Go...@sonda.com> on 2001/03/26 18:12:36 UTC

Can't find templates

I'm getting the following exception. I added some Log
statements, and it seems Turbine (or Velocity) is not
finding any templates at all:

  -- DEBUG -- handleRequest(
     org.apache.velocity.VelocityContext@6c8909,
     /screens//index.vm)

  -- ERROR -- Error rendering Velocity template:
     /screens//index.vm: Unable to find resource
     '/screens//index.vm'

The double slash is not the problem. I have not changed
the location of my templates; this is just upgrading
to the latest Turbine as of today. I checked my TR.props,
and it is basically the stock configuration, with changes
to use .vm files instead of .wm; velocity.props is
identical to the stock one (that is, it is empty).

Any ideas? Thanks,



	Exception:  org.apache.turbine.util.TurbineException: Error
rendering Velocity template: screens//Error.vm: Error rendering Velocity
template: screens//Error.vm: Unable to find resource 'screens//Error.vm'
	Stack Trace follows:
	org.apache.velocity.exception.ResourceNotFoundException: Unable to
find resource 'screens//Error.vm'
	at
org.apache.velocity.runtime.resource.ResourceManager.getResource(ResourceMan
ager.java)
	at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java)
	at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java)
rethrown as org.apache.turbine.util.TurbineException: Error rendering
Velocity template: screens//Error.vm: Unable to find resource
'screens//Error.vm'
	at
org.apache.turbine.services.velocity.TurbineVelocityService.renderingError(T
urbineVelocityService.java:357)
	at
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(Tu
rbineVelocityService.java:323)
rethrown as org.apache.turbine.util.TurbineException: Error rendering
Velocity template: screens//Error.vm: Error rendering Velocity template:
screens//Error.vm: Unable to find resource 'screens//Error.vm'
	at
org.apache.turbine.services.velocity.TurbineVelocityService.renderingError(T
urbineVelocityService.java:357)
	at
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(Tu
rbineVelocityService.java:269)
	at
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVe
locity.java:109)
	at
org.apache.turbine.modules.screens.VelocityScreen.buildTemplate(VelocityScre
en.java:156)
	at
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.jav
a:136)
	at org.apache.turbine.modules.Screen.build(Screen.java:98)
	at
org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
	at
org.apache.turbine.modules.layouts.VelocityOnlyLayout.doBuild(VelocityOnlyLa
yout.java:103)




-- 
Gonzalo A. Diethelm
gonzalo.diethelm@sonda.com

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