java.lang.NoSuchMethodError: org.springframework.web.context.ConfigurableWebApplicationContext.setId(Ljava/lang/String;)V

六月ゝ 毕业季﹏ 提交于 2019-12-01 06:17:07

You are mixing Spring 3.1.1 with Spring 2.5.6. Add explicit dependencies or dependency management entries for those Spring dependencies that are still on 2.5.6 to upgrade them to 3.1.1 or downgrade your project.

Which version of spring jars have you packaged as part of the war? Does it have 2.5.6? Does your war referring it @ run time from anywhere else?

I can see the below ways to identify the root cause, 1. Start the server in remote debug mode. 2. If not, may be try out jboss scoped class loading,

Create jboss-web.xml under WEB-INF,

<jboss-web>
   <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
         com.example:archive=<<webarchive name>>
         <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
   </class-loading>
<jboss-web>

Replace it with <> your web archive file name.

See, if this helps...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!