You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:44 UTC

[jira] Closed: (VELOCITY-386) path setting Error

     [ https://issues.apache.org/jira/browse/VELOCITY-386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen closed VELOCITY-386.
-------------------------------------------


> path setting Error
> ------------------
>
>                 Key: VELOCITY-386
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-386
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>         Environment: Operating System: Linux
> Platform: PC
>            Reporter: Liviu Baloiu
>         Assigned To: Velocity-Dev List
>
> When I try to set a new path for the ResourrceManager, it does not get set.
> Example:
> //working directory is "/home/ntb/serverPath"
> velocityEngine = new VelocityEngine();
> velocityEngine.addProperty("path","/home/ntb/VelocityTest/");
> velocityEngine.init();
> Template template= velocityEngine.getTemplate("wwwroot/WEB-INF/Velocity/x.vm");
> Even if the file "/home/ntb/VelocityTest/wwwroot/WEB-INF/Velocity/x.vm" does
> exist,An exception is returned. 
> After looking into your code, I can see that the ResourceManager is looking for
> ".wwwroot/WEB-INF/Velocity/x.vm", which is incorect. I think the bug is in
> ResourceManagerImpl.initialize (The configuration is well set, it has a path
> property pointing to my required directory, but the resulting recourceLoader
> still has the path set to ".".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org