I am writing a simple web service and have put my web.xml file in the WEB-INF folder. For some reason everything in the servlet-class tag is coming up as “cannot resolve class MyServlet”. The class MyServlet is in the src folder under root directory. I cannot figure out why as to why this is happening. Answer I needed to mark
Tag: web.xml
Tomcat 404 – Not Found: when Implementing REST API
I’m trying to implement simple RESTFUL API service using dynamic web application in Eclipse. Every time I am getting error message HTTP Status 404 – Not Found. I have attached my screen below Package structure I am able to run tomcat server on localhost:8080 as shown on the above figure but when I trying to access my api path I
Spring Boot take over web.xml configuration
I have a Spring Boot web application that works fine. Now I got a 3rd party lib which I must use in the project. The manual of integrating the lib is written with respect to an existing web.xml file. My project completely relies on a Java based config. According to the Spring documentation I can reach my goal of taking
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