隨筆-10  評論-23  文章-32  trackbacks-0

          when i do this:

          public static void main(String[] args) {
                  ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:/applicationContext-ldap.xml");
                  System.out.println(ac.getBean("typeManager"));
              }

           

          i get this error:

          Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.util.StringUtils.trimArrayElements([Ljava/lang/String;)[Ljava/lang/String;
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:120)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
              at cn.edu.zju.sgr.util.UpdateLdap.main(UpdateLdap.java:14)

           

          原因:

           

          解決方法:

          posted on 2010-01-21 10:22 liuyimx 閱讀(1962) 評論(2)  編輯  收藏

          評論:
          # re: org.springframework.util.StringUtils.trimArrayElements([Ljava/lang/String;) 2010-03-12 08:49 | da
          你的解決辦法是什么,請教了  回復  更多評論
            
          # re: org.springframework.util.StringUtils.trimArrayElements([Ljava/lang/String;) 2010-03-29 22:37 | liuyimx
          我也是在其他博客里看到,說原因是由于導入工程中的jar包有重復:同一個jar包不同版本,我調整了我的maven依賴配置,統一使用spring2.5的jar包后就沒有報錯了!詳細原因沒來得及深究。希望這個信息對你有用。  回復  更多評論
            

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


          網站導航:
           
          主站蜘蛛池模板: 芦山县| 重庆市| 长汀县| 东光县| 屏山县| 贺兰县| 廊坊市| 高阳县| 丘北县| 定陶县| 莱芜市| 黎城县| 永和县| 扶风县| 信丰县| 娄烦县| 双柏县| 九江市| 兰州市| 利津县| 商南县| 桐庐县| 尼玛县| 甘南县| 巧家县| SHOW| 望城县| 施秉县| 应用必备| 江源县| 黄石市| 遵义县| 喀喇| 太仆寺旗| 锡林浩特市| 汶上县| 太湖县| 平顺县| 太白县| 徐闻县| 新干县|