隨筆-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 閱讀(1963) 評論(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包后就沒有報錯了!詳細原因沒來得及深究。希望這個信息對你有用。  回復  更多評論
            

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


          網站導航:
           
          主站蜘蛛池模板: 鹤壁市| 屯留县| 祁阳县| 滨州市| 印江| 贵南县| 忻州市| 南澳县| 绥宁县| 佛山市| 孝义市| 通江县| 南召县| 资中县| 苏尼特右旗| 玉溪市| 固安县| 砚山县| 高陵县| 鱼台县| 宁城县| 昌吉市| 鄄城县| 乐山市| 凤庆县| 类乌齐县| 长泰县| 安岳县| 台南市| 黎城县| 抚松县| 隆德县| 环江| 青龙| 顺平县| 榆中县| 三江| 陆河县| 信丰县| 浏阳市| 竹山县|