posts - 10, comments - 9, trackbacks - 0, articles - 17

          在tomcat等容器中發布帶velocity的應用時, 出現 org.apache.velocity.exception.ResourceNotFoundException : Unable to find resource ...vm  的解決辦法:

          配置文件 velocity.properties 中, 如果有
          resource.loader = file

          file
          .resource.loader.description = Velocity File Resource Loader
          file
          .resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
          file
          .resource.loader.path = .
          file
          .resource.loader.cache = false
          file
          .resource.loader.modificationCheckInterval = 2

          這段, 全部注釋掉即可.

          若沒有, 就在配置里寫上以上內容, 并更改第三項為

          file.resource.loader.class = org.apache.velocity.tools.view.WebappResourceLoader

          Feedback

          # re: Velocity中, Unable to find resource 'VM_global_library.vm' 問題解決辦法[未登錄]  回復  更多評論   

          2014-01-03 12:29 by hello
          配置strust2的示例項目時出現了這種問題,按樓主方法解決了!應該是velocity的使用問題吧。

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 罗平县| 海南省| 二手房| 阳谷县| 恩施市| 伊金霍洛旗| 合川市| 公主岭市| 华蓥市| 金华市| 日照市| 陇南市| 尤溪县| 崇仁县| 平江县| 东源县| 保康县| 江西省| 鹤山市| 陕西省| 阳春市| 海盐县| 涟水县| 民丰县| 武隆县| 宿松县| 平陆县| 金沙县| 鸡西市| 永登县| 丰都县| 平顺县| 桐柏县| 中西区| 沂源县| 大悟县| 忻城县| 福泉市| 拉孜县| 历史| 石景山区|