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

前端 未结 2 1862
自闭症患者
自闭症患者 2021-01-13 16:57

Below is the pom.xml of my spring batch project and I get the below exception if I deploy in jboss 5 , but the same war works fine if I deploy in local windows machine.

2条回答
  •  余生分开走
    2021-01-13 17:36

    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,

    
       
          
             com.example:archive=<>
             java2ParentDelegation=false
          
       
    
    

    Replace it with <> your web archive file name.

    See, if this helps...

提交回复
热议问题