Questions tagged [servlet-mapping]

74 questions
2
votes
1 answer

Spring MVC JavaConfig issue when migrating servletMapping from web.xml

I try to migrate this portion of the web.xml into my Spring MVC 4.0 (Servlet 3.0 no web.xml anylonger ;-) JavaConfig: Part of the web.xml rest
John B.
  • 682
  • 1
  • 11
  • 22
2
votes
1 answer

How to configure URL patterns to have servlet and Struts2 to work simultaneously?

Why my filtering does not work for me and how to setup it to work? There is my web.xml:
Atark
  • 23
  • 1
  • 5
2
votes
0 answers

Spring MVC RequestMapping Trailing Double Slash Issues

So I am having an issue with this URL: http://example.com/something//?filter=something (notice the double trailing slash) I have a controller set up to handle "/something" as the request mapping, but when there are double trailing slashes, the…
Tim Kipp
  • 200
  • 1
  • 16
2
votes
2 answers

Remap JAX-WS address

My problem is that I have a web service that gets published by jboss at http://localhost:8080/A, where A is the service implementation class; I want a custom url http://localhost:8080/B/C/D.ws. In the wsdl, soap:address is correctly set…
vault
  • 3,930
  • 1
  • 35
  • 46
2
votes
1 answer

Mapping to external image folder not working ()

I want to outsource my images outside the spring project folder. After some researches I found the mvc:resources tag, which seemed to be the perfect solution for my…
Tunguska
  • 1,205
  • 3
  • 18
  • 37
1
vote
1 answer

Can I invoke Servlet without mapping it in web.xml?

If I have action to a servlet, we should use mapping in XML which is recommended. So it would look like this: HTML index:
Enter name:
Stefan
  • 969
  • 6
  • 9
1
vote
0 answers

Defining multiple endpoints for multiple soap web services in spring boot application

I have a servlet mapping issue in spring boot application with multiple soap web services. I have two (or more) WebServices with different mappings. Service A -> Endpoint1 Service B -> Endpoint2 Once I deploy spring boot application with two…
1
vote
1 answer

Spring MVC Servlet Mapping, differences between "/xxx" and "/xxx/*"

I am confused with how Spring MVC's url-pattern mapping works. When 'getServletMappings' returns "/",I can get the right response with "http://localhost:8080/hello". but not working if i change it to "/app" and change url to…
guojiubo
  • 544
  • 1
  • 7
  • 15
1
vote
0 answers

Servlet Mapping With Wildcards

I'm having trouble with the servlet mapping in web.xml. It works when I put in a specific file but not when using a wildcard: spring
DD.
  • 21,498
  • 52
  • 157
  • 246
1
vote
2 answers

Servlet url-mapping

I'm having some problems to understand how url-mapping works for the servlets. I watched tons of tutorials online and posts here but without luck. So, let's say I have a servlet (WelcomeServlet.java), an index page (index.html) and my web.xml…
pedro
  • 417
  • 2
  • 7
  • 25
1
vote
1 answer

How to route all document requests to Java servlet

I'm building a Java web application with HTTP Servlets and I want to route all of the document requests to one Servlet class. By document request, I mean that I don't want to have requests for images like favicon.ico going to my servlet, which is…
1
vote
2 answers

Generic Servlet to JSP Mapping

I have a web app with many JSP files and want to remove the .jsp extensions from displaying in the URL without having to map each servlet to a similar page name. To do this I would like to redirect all servlets to a JSP file in a generic manner…
glez
  • 1,170
  • 3
  • 16
  • 42
1
vote
1 answer

Servlet Mappings Jetty 8

I have a webapp that works with Tomcat 8 and Jetty 8. Recently, we have introduced servlet-mappings page /Dashboard.html 1
Jose__vi
  • 158
  • 2
  • 10
1
vote
2 answers

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 noHandlerFound WARNUNG: No mapping found for HTTP request with URI [/CloudService/] in DispatcherServlet with name…
jublikon
  • 3,427
  • 10
  • 44
  • 82
1
vote
1 answer

Adding multiple servlets into one web.xml

I want to incorporate/add a Jersey project B (already working well) into a new Jersey project A, that would act as a filter/security layer. So as a basic step, I added dependency to Project B on the build path of Project A and also added the same to…
vardhinisuresh27
  • 371
  • 2
  • 6
  • 18