Error with Spring Context Lookup Failed

org.glassfish.jersey.server.spring.SpringComponentProvider: Spring context lookup failed, skipping spring component provider initialization.

Why did I see this error?

ContextLoaderListener

<listener> 
<listener-class> org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/applicationContext.xml</param-value> </context-param>

DispatcherServlet

Now to understand why I saw this error:

@SpringBootApplication 
public class Application extends SpringBootServletInitializer
{
public static void main(String[] args)
{ SpringApplication sa = new SpringApplication(Application.class); sa.run(args);
}
}Conclusion

References

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store