java.lang.IllegalStateException: :Cannot initialize context because there is already a root application context present
问题 I am trying to migrate application deployed on weblogic 12 to tomcat 9 and while doing so I am facing following exception java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml! content of my web.xml is as follows <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee"