Top "Servlet-mapping" questions

What is the significance of url-pattern in web.xml and how to configure servlet?

I have manually configured web.xml for my application. Now, I'm facing issues while running my application. I'm trying to …

java servlets web.xml url-pattern servlet-mapping
java.lang.IllegalArgumentException: Invalid <url-pattern> in servlet mapping

<servlet> <servlet-name>myservlet</servlet-name> <servlet-class>workflow.WDispatcher</servlet-class> <load-on-startup&…

tomcat servlets web.xml illegalargumentexception servlet-mapping
Could not resolve view with name 'htmlviews/index.html' in servlet with name 'dispatcher' using javaconfig

I get such exception: javax.servlet.ServletException: Could not resolve view with name 'htmlviews/index.html' in servlet with name …

spring spring-mvc servlet-mapping
Why FacesServlet cannot have a url-pattern of /*.?

This is my web.xml : <servlet-mapping> <servlet-name>Faces Servlet</servlet> <url-pattern>/*</…

jsf jakarta-ee url-pattern servlet-mapping
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name

When I try run my project I get error Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet …

tomcat servlets illegalargumentexception servlet-mapping
DispatcherServlet: No mapping found for HTTP request with URI

Running my project in STS gives on a Tomcat gives me the error: Mai 19, 2016 4:44:52 PM org.springframework.web.servlet.PageNotFound …

spring spring-mvc tomcat servlet-mapping
How to use .jsf extension in URLs?

I'm developing a JSF 2 web application. For prestige purpouses I would like that every URL ends with .jsf extension. Now …

jsf jsf-2 url-pattern servlet-mapping
java.lang.IllegalArgumentException: Invalid <url-pattern> SolrServlet1 in servlet mapping

I have created a JSP page and from this page i will invoke a servlet and process something and redirect …

tomcat servlets illegalargumentexception url-pattern servlet-mapping
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name GCMBroadcast

I'm trying to incorporate GCM(Google cloud messaging) in my android app. For this, I have been following this tutorial. …

jsp tomcat servlets illegalargumentexception servlet-mapping