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 閱讀(294) 評論(0)  編輯  收藏


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


          網站導航:
           
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          相冊

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 潼关县| 陇西县| 玉溪市| 华亭县| 岳普湖县| 山东省| 黄大仙区| 都江堰市| 调兵山市| 阳谷县| 云阳县| 洱源县| 天水市| 桐城市| 朝阳市| 黑河市| 隆尧县| 盐源县| 蓝山县| 邹城市| 武强县| 彭水| 泊头市| 甘谷县| 平邑县| 天镇县| 郁南县| 依兰县| 皋兰县| 丰城市| 贺州市| 昌平区| 北海市| 印江| 乾安县| 长垣县| 娄底市| 吐鲁番市| 孟村| 启东市| 南昌县|