隨筆-10  評(píng)論-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 閱讀(1968) 評(píng)論(2)  編輯  收藏

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

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 依安县| 玉树县| 车致| 新干县| 安仁县| 平谷区| 大兴区| 合江县| 康乐县| 德保县| 贺兰县| 右玉县| 烟台市| 庆云县| 南丹县| 乐清市| 四子王旗| 鞍山市| 黑龙江省| 伊通| 华容县| 泰安市| 多伦县| 托里县| 高陵县| 白山市| 微博| 桐庐县| 正安县| 江城| 宜春市| 镇康县| 洮南市| 将乐县| 合阳县| 海原县| 社会| 靖宇县| 东平县| 垦利县| 浏阳市|