ibatis spring java.lang.NoSuchMethodError com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse

前端 未结 4 1726
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 08:31

i am using spring 3.2.0 with ibatis 2.3.4 in weblogic 10.3.6 while deploying in weblogic.

I am getting this NoSuchMethodError as below:

User defined list         


        
相关标签:
4条回答
  • 2021-01-27 08:58

    Looks like Spring 3.2 is not compatible with iBatis 2.3.4.

    In iBatis 2.3.4 SqlMapConfigParser has no method #parse(InputStream, Properties), but in newer version myBatis 2.3.5 it is exist.

    Probably problem also in MyBatis-Spring library version.

    Nevertheless you should update version of myBatis or find appropriate version of Spring or Spring-iBatis integration.

    0 讨论(0)
  • 2021-01-27 09:04

    Check whether you have ibatis jar file and mysql-connector jar file in your project. and your controller class name should not be controller.java

    0 讨论(0)
  • 2021-01-27 09:11

    Check whether you have ibatis jar file and mysql-connector jar file in your project. and your controller class name should not be controller.java

    your sqlmap namespace name should be unique for each sqlmap file which you have written in sqlMapConfig.xml

    In your sqlmap file, all tag should be clearly defined. you should mention parameterClass and resultClass. Must not leave as empty one, like this.

    select id="sampleid" parameterClass="" resultClass=""

    Your query

    select id="sampleid"

    Your quer

    0 讨论(0)
  • 2021-01-27 09:15

    Looks like the ibatis jar which you are using does not have parse method with those arguments. Decompile and see if the jar has parse the method which code is looking for.

    0 讨论(0)
提交回复
热议问题