velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Problem with decimal in most recent snapshot
Date Thu, 14 Apr 2005 20:58:17 GMT

Something I am just noticing.  When I have commented out webapp.resource.loader.class, the
general templating works for web browsing.   It works off of the base web root.

When I put back in
      webapp.resource.loader.path = /WEB-INF/templates
Velocity seems to disregard the base web root for all processing and I get the ResourceNotFoundException
found at the bottom.

This seems to work with Will's idea on full path, but shouldn't it still use the file.resource.loader.path
for web browsing?  As soon as I take out the webapp.resource.loader.path it goes back to using
path relative to the web root.

I always need to use a path relative to the web root in both cases if possible.  I am going
to mess around with paths now and see if I put in the full path it works.


org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/WEB-INF/templates/pub/common/tiles/defaultTemplate.vm'
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(
	at Source)
	at Source)
	at Source)
	at Source)
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationDispatcher.invoke(
	at org.apache.catalina.core.ApplicationDispatcher.doForward(
	at org.apache.catalina.core.ApplicationDispatcher.forward(
	at org.apache.struts.action.RequestProcessor.doForward(
	at org.apache.struts.tiles.TilesRequestProcessor.doForward(
	at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(
	at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
	at org.apache.struts.action.RequestProcessor.process(
	at org.apache.struts.action.ActionServlet.process(

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message