java.lang.NoSuchFieldError: APPLICATION_CONTEXT_ID_PREFIX

后端 未结 2 1059
旧巷少年郎
旧巷少年郎 2021-01-24 08:27

I am receiving this error on running my project and the result is 404 ultimately. The project is made on Spring framework.

I read a lot of posts and found that there i

相关标签:
2条回答
  • 2021-01-24 09:05

    My guess would be deleting spring.jar and spring-1.2.6.jar ; they conflict with spring*3.0.3.RELEASE.jars

    And my two cents would be using maven when working with spring framework.

    0 讨论(0)
  • 2021-01-24 09:10

    You have a lot of duplicated jars there:

    antlr
    jta
    mysql-connector
    javassist
    mssqlserver
    

    I would make sure you only have one of each before continuing, work out which version you need and include that one.

    If you are not sure how to do this, let us know how you are importing your dependencies.

    It would also be helpful to see the stacktrace you are seeing and a simplified Spring context that causes the error.


    If you look at this question: JasperException: absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved

    You need to make sure you have the right version of JSTL, maybe once you remove the duplicate JSTL it may fix that error.

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