[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Commented: (VELOCITY-782) UNC Path support for Velocity
From:       "Misagh Moayyed (JIRA)" <dev () velocity ! apache ! org>
Date:       2010-10-30 19:35:19
Message-ID: 17637630.158551288467319457.JavaMail.jira () thor
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/VELOCITY-782?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926634#action_12926634 ] 

Misagh Moayyed commented on VELOCITY-782:
-----------------------------------------

I have implemented a UNFileResourceLoader, very similar to the FileResourceLoader to \
handle UNC paths, along with a test case. Will attach the patch asap. :)

> UNC Path support for Velocity
> -----------------------------
> 
> Key: VELOCITY-782
> URL: https://issues.apache.org/jira/browse/VELOCITY-782
> Project: Velocity
> Issue Type: Bug
> Environment: Jameica 1.10 + Hibiscus 1.12
> Windows 7 Ultimate x64
> WHS
> Reporter: Frank Glaser
> Priority: Minor
> 
> Add UNC Path support for the getTemplate function:
> Here an extract of the Hibiscus log file:
> ...
> [Mon Oct 18 18:23:16 CEST \
> 2010][INFO][de.willuhn.jameica.gui.internal.parts.BackgroundTaskMonitor.check] \
> creating progress monitor for GUI [Mon Oct 18 18:23:16 CEST \
> 2010][INFO][de.willuhn.jameica.gui.internal.parts.BackgroundTaskMonitor$2.run] \
> activating progress monitor [Mon Oct 18 18:23:16 CEST \
> 2010][INFO][de.willuhn.boot.BootLoader.resolve]   init service \
> de.willuhn.jameica.services.VelocityService [Mon Oct 18 18:23:16 CEST \
> 2010][INFO][de.willuhn.boot.BootLoader.resolve] used time to init \
> de.willuhn.jameica.services.VelocityService: 285 millis [Mon Oct 18 18:23:16 CEST \
> 2010][ERROR][de.willuhn.jameica.services.VelocityService$VelocityLogger.log] \
> ResourceManager : unable to find resource \
> 'de.willuhn.jameica.hbci.rmi.Umsatz.csv.vm' in any resource loader. [Mon Oct 18 \
> 18:23:16 CEST 2010][ERROR][de.willuhn.jameica.hbci.io.VelocityExporter.doExport] \
>                 error while writing into export file
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource \
> 'de.willuhn.jameica.hbci.rmi.Umsatz.csv.vm'  at \
> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:452)
>   at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:335)
>   at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1102)
>   at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:549)
> 	at de.willuhn.jameica.hbci.io.VelocityExporter.doExport(VelocityExporter.java:107)
> 	at de.willuhn.jameica.hbci.gui.dialogs.ExportDialog$3.run(ExportDialog.java:193)
> 	at de.willuhn.jameica.gui.GUI$6.run(GUI.java:912)
> [Mon Oct 18 18:23:16 CEST \
> 2010][ERROR][de.willuhn.jameica.messaging.LogMessageConsumer.handleMessage] Fehler \
>                 beim Schreiben in die Export-Datei
> ...

-- 
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic