ERROR [XWorkConverter] Problem loading properties for tutorial.HelloWorldConvert

          I am learning struts 2 recently,when I tested one converter example from Max's struts 2 series,I encountered some errors:
           

          ERROR [XWorkConverter] Problem loading properties for tutorial.HelloWorldConvert

          java.lang.ClassNotFoundException: tutorial.LocaleConverter  ....

          There are tow ways to configure register the converter in struts 2, global way and local way. This problem happened when I tested the second one, putting the configure properties file with the action class together. the below is the content of the converter configure file.

          HelloWorldConvert-conversion.properties:

          # syntax: <propertyName> = <converterClassName>

          loc = tutorial.LocaleConverter 

          Cause: Perhaps, it's one issue of struts 2. The error is caused by one space in the end of configure line. struts didn't trim the blanks in the tail when extracting the configured converter name.

          Solution: After I remove the spaces in the end of tutorial.LocaleConverter, it works successfully.

          posted on 2009-05-28 15:22 coobee 閱讀(293) 評論(0)  編輯  收藏


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


          網站導航:
           
          <2025年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          相冊

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 南靖县| 双桥区| 红安县| 成都市| 剑阁县| 皮山县| 安徽省| 周口市| 霍邱县| 太仆寺旗| 菏泽市| 鞍山市| 宜兰市| 格尔木市| 南岸区| 黄山市| 延长县| 友谊县| 托克逊县| 昌都县| 通化县| 荆门市| 乐亭县| 大冶市| 万山特区| 萝北县| 赣州市| 翁源县| 云林县| 阿城市| 漯河市| 宜宾市| 盐边县| 天峨县| 佛坪县| 黄陵县| 汉源县| 石首市| 龙岩市| 关岭| 大埔区|