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


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


          網站導航:
           
          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          導航

          統計

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          相冊

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 红安县| 外汇| 天门市| 南投县| 澄江县| 大渡口区| 哈尔滨市| 专栏| 南汇区| 郴州市| 泽库县| 桓仁| 阳曲县| 奈曼旗| 浙江省| 通榆县| 张家口市| 正镶白旗| 金沙县| 鹿邑县| 屯留县| 集贤县| 陇西县| 油尖旺区| 长寿区| 闸北区| 习水县| 衡阳县| 连江县| 环江| 东源县| 临城县| 湛江市| 天祝| 萍乡市| 青神县| 呈贡县| 澜沧| 云林县| 佛学| 万荣县|