can't get the velocity template in networks --------------------------------------------
Key: VELOCITY-794 URL: https://issues.apache.org/jira/browse/VELOCITY-794 Project: Velocity Issue Type: Bug Components: Engine Affects Versions: 1.7 Environment: windows xp eclipse 3.5 Reporter: fanglei begin: properties.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, "FileParentPath"); velocityEngine = new VelocityEngine(properties); when I get VM Template in this way: template = velocityEngine.getTemplate("C:\xxx\ABC.vm" "GBK"); I can get the template object. but when I get VM Template which the path on LAN like this: template = velocityEngine.getTemplate("\\CompanyName\myPC\xxx\ABC.vm" "GBK"); I can't get the template object and catch an error message: 2011-1-7 11:47:00 org.apache.velocity.runtime.log.JdkLogChute log 严重: ResourceManager : unable to find resource 'TB_%modelNameInFileName%.java.vm' in any resource loader. org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'TB_%modelNameInFileName%.java.vm' at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:483) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354) at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400) at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:422) at mda.codemachine.core.engine.Builder.build(Builder.java:50) I want create VM LAN Pool for public,so I must do this. thank you~ -- 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-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org