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

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


          網站導航:
           
          主站蜘蛛池模板: 汉阴县| 和田县| 永胜县| 萨嘎县| 浦东新区| 合肥市| 陆河县| 汝州市| 永春县| 乐清市| 灵宝市| 东乌珠穆沁旗| 赤城县| 焉耆| 紫阳县| 梁山县| 南靖县| 洛扎县| 象州县| 林甸县| 绵阳市| 屏边| 泰兴市| 玉屏| 讷河市| 陆川县| 盐池县| 五寨县| 原平市| 乌拉特后旗| 洛川县| 久治县| 华坪县| 禄丰县| 西林县| 天门市| 武平县| 稷山县| 成都市| 黄山市| 汉沽区|