Skip to content
Advertisement

Tag: web.xml

DispatcherServlet and web.xml in Spring Boot

I’m currently trying to move my project from Java EE to Spring Boot project. However, i’ve been stucked and confused on the part with dispatcher servlet and web.xml and it seems like web.xml is no longer being read by the project anymore. The current project is running on tomcat 7. In my web.xml file, I have lots of servlet, servlet-mapping,

loadOnStartup SEVERE: Servlet [dispatcher] in web application [/Producer] threw load() exception java.lang.NoSuchMethodError

I have a problem with setting up spring context using Eclipse + tomcat 8. I have checked several “Hello world” spring manuals and do not understand what is going wrong. I have the following error in console: Answer Somewhere in your classpath you have old Spring lib. AnnotationUtils from 4.2.1 contains rethrowAnnotationConfigurationException But in spring 3.2.5 – no such method

How to add filters to servlet without modifying web.xml

I’d like the ability to modify/configure filters in a different way than web.xml. Here is a static configuration of 2 filters. I’d like the ability to have one filter statically configured and allow that filter to load additional filters. I just wanted to know if anyone knows of lib that already has this. Using Servlet API 2.5 I’ve seen this

Advertisement