The problem was solved by replacing
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/someXmlfile.xml</param-value>
</context-param>
with
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
com.portal.configuration.IntegrationServerWebConfig
</param-value>
</context-param>
And defining the class:
@Configuration
@ImportResource({
"classpath:/WEB-INF/mvc-dispatcher-servlet.xml",
"classpath:/WEB-INF/spring-servlet.xml"})
@ComponentScan(basePackages = {"com.portal"})
public class IntegrationServerWebConfig {
}