spring error creating different modules :  - SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V 	at org.sprin`web.xml`

   

<display-name>ems</display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <servlet> <servlet-name>ems</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ems</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/ems-servlet.xml</param-value> </context-param> </web-app>`ems-servlet`<import resource="classpath*:/ems-services.xml" /> <context:component-scan base-package="com.ems" /> <mvc:annotation-driven /> <bean id="jsonConverter" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <property name="prefixJson" value="false" /> <property name="supportedMediaTypes" value="application/json" /> </bean> </beans>`ems-services.xml`<import resource="classpath*/:ems-data.xml" /> <context:component-scan base-package="com.ems" /> </beans>