Questions tagged [servlet-mapping]
74 questions
1
vote
1 answer
spring servlet-mapping / url-pattern
I have this servlet-mapping
devicesWeb
*.do
/device-catalogue
/device-catalogue/ …

Nuñito Calzada
- 4,394
- 47
- 174
- 301
1
vote
1 answer
Jersey Servlet finds resources when url-pattern is /* but cannot find resources when url-pattern is /
I'm writing a Web service, using Jersey 2.17 with Tomcat 8.
In the web.xml when I change my url pattern to /* I'm able to hit the web-service and get response.
However when I change the url pattern to / then I always get 404 Error (resource not…

Kishore Bandi
- 5,537
- 2
- 31
- 52
1
vote
0 answers
Multiple servlet-mappings in web.xml on IBM WAS
My web service module is accessed by multiple customers having different clients and should, therefore, be accessible by different URIs, like
[serverAddress]/MyHTTPRouter/PingService
and
[serverAddress]/MyHTTPRouter/cet/PingService
(replace…

Gerry Broennimann
- 33
- 1
- 8
1
vote
0 answers
Server not responding for some request
I am having problem in some request access, in my web application. I am not able to figure out the issue.
In my we application servlet mapping configuration is like this..
default
…

Anita
- 2,352
- 2
- 19
- 30
1
vote
0 answers
Servlet mapping for specific URL not working in Jersey 2
I am trying to use Jersey 2.x and have a servlet call "myapp", configuration on web.xml is as follows
myapp
org.glassfish.jersey.servlet.ServletContainer
…

Mizanur Rahman
- 111
- 2
- 7
1
vote
1 answer
filter mapping to last path segment
I am trying to map a filter to a specific url in web.xml. The problem is that there is a dynamic path segment in the url and I need to map my filter only to URLs ending with a specific path. For given…

user1660008
- 27
- 8
1
vote
0 answers
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name
I have looked as many as solutions I can But none of them solved my problem.
The problem started when I was running eclipse on two work spaces, did not know that will create all these mess to my server. on the first warning I stopped the server from…

Tadele Ayelegn
- 4,126
- 1
- 35
- 30
1
vote
1 answer
How to avoid matching paths that don't have a slash with servlet-mappings?
I'm trying to set up a servlet so that any requests for /foo/* will go to my Foo servlet, except for requests in the form of /foo/bar/*, which go to the Bar one. However, I want /foo/bar to go to the Foo servlet, not the Bar one. Is there a way to…

CSturgess
- 1,547
- 2
- 13
- 29
1
vote
1 answer
The servlets named [Myclass] and [mypropackage.Myclass] are both mapped to the url-pattern [/myclass] which is not permitted
The following error occurs when I start the server
Server Tomcat v7.0 Server at localhost failed to start.
When I look into the console for errors ,I think this is the problem "The servlets named [Myclass] and [mypropackage.Myclass] are both…

phpnew
- 31
- 5
1
vote
1 answer
Servlet web.xml servlet-mapping
On my web.xml I have the following code
controller
ControllerServlet
1
…

Dani Tome
- 473
- 1
- 5
- 16
1
vote
1 answer
Accessing URL mappings of a servlet in Tomcat with only static functions
I need to use URL-mapping for my servlet which is set in web.xml. Currently I can read the mappings with the following code in the processRequest function.
Iterator urlMappings =…

Nuri Tasdemir
- 9,720
- 3
- 42
- 67
0
votes
0 answers
What is the difference between "" and "/" as to the url-patterns value in the servlet mapping
In the Specification of Mapping section of Servlet specification, it was mentioned:
The empty string ("") is a special URL pattern that exactly maps to the application's context root, i.e., requests of the form http://host:port//. In…

Rui
- 3,454
- 6
- 37
- 70
0
votes
1 answer
*.faces and *.jsp mapping
in my project there is *.tiles for which I have mentioned the mapping for *.jsp in config.xml as shown below. Is it possible to do the same for *.faces?

Shruthi
- 1
0
votes
1 answer
Can't load my webpages using tomcat, servlets and spring
So I've been trying to load my webpages from a spring/servlet based java application that I've created and I keep getting HTTP Status 404 – Not Found error each time however Im positive I have hooked up all of xml servlet mappings and Java code…

c.s_._._
- 63
- 10
0
votes
0 answers
Why is my servlet mapping preventing CSS/HTML link?
I've been having trouble getting CSS or images to link to my HTML index.jsp page. I created a new project to make sure it wasn't just my computer and CSS/Images worked just fine. Thought maybe I made a mistake when creating the original Project, so…

mls0060
- 1