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的使用問題吧。

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


          網站導航:
           
          主站蜘蛛池模板: 深泽县| 棋牌| 淳化县| 林口县| 班玛县| 石狮市| 克拉玛依市| 清远市| 巴彦淖尔市| 安图县| 连平县| 绿春县| 竹北市| 金乡县| 东乡族自治县| 巴东县| 顺昌县| 无为县| 绥中县| 乐东| 都匀市| 广昌县| 民和| 筠连县| 涟源市| 夏津县| 博客| 江油市| 芜湖市| 宾川县| 德惠市| 韶关市| SHOW| 东台市| 石河子市| 当阳市| 资源县| 科尔| 兴和县| 阿尔山市| 南丹县|