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

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


          網站導航:
           
          主站蜘蛛池模板: 神农架林区| 满洲里市| 霍城县| 井研县| 仙游县| 咸阳市| 金门县| 当雄县| 偏关县| 桂平市| 铜川市| 山阴县| 兴和县| 客服| 文化| 彭水| 化隆| 体育| 资中县| 修水县| 潞城市| 祁连县| 安阳县| 乌拉特后旗| 南皮县| 临沧市| 淳安县| 甘德县| 珲春市| 威信县| 河北区| 宿松县| 巴塘县| 黔东| 扎鲁特旗| 松潘县| 聂拉木县| 张家川| 阿勒泰市| 正镶白旗| 庆安县|