Questions tagged [servlet-mapping]

74 questions
0
votes
2 answers

java.lang.IllegalArgumentException: The servlets named [foo] and [bar] are both mapped to the url-pattern [/url] which is not permitted

Caused by: java.lang.IllegalArgumentException: The servlets named [JavaQuestionForm] and [JavaQuestion] are both mapped to the url-pattern [/JavaQuestion] which is not permitted at…
user5593848
0
votes
1 answer

Spring xml-less config: No mapping found for HTTP request with URI

We have a Spring MVC app with controllers: @Controller("/app") @Controller("/app/page1") @Controller("/app/page2") And we have AppInitializer: public class AppInitializer implements WebApplicationInitializer { @Override public void…
user606621
  • 493
  • 1
  • 5
  • 16
0
votes
0 answers

Error while specifying servlet mapping in RAD

I want to add a new servlet mapping in my java web project in IBM RAD 8.5.1 There are already two existing servlets in my application: ServletOne and ServletTwo but when I do new > servlet mapping, It gives the following error in the wizard: This…
Sumit
  • 2,189
  • 7
  • 32
  • 50
0
votes
1 answer

java.lang.IllegalArgumentException: The servlets named [X] and [Y] are both mapped to the url-pattern [/*] which is not permitted

I am using Tomcat 7 as a webserver for a vaadin project // Eclipse as an editor .. It used to work fine but yesterday when I tried to run the server I got this error .. I tried to delete the server and create a new one .. but it didn't work Caused…
Mr_X
  • 35
  • 5
0
votes
1 answer

java.lang.IllegalArgumentException: The servlets are both mapped to the url-pattern [/foo] which is not permitted

I get the above error when I'm trying to start the server. Important note, for any other Web Apps the server starts just fine. It's just this particular Web App that does not work. Here is the complete stack trace: Caused by:…
Larry
  • 11,439
  • 15
  • 61
  • 84
0
votes
1 answer

no mapping found for request - Spring mvc

i'm using spring mvc with java config to make my web app. For some reason spring is rejection all of my beans and it's not finding my servlet mappings. I'm using tomcat 8.0.23(I updated to the latest to see if that was the issue) and Spring…
jaredramirez
  • 645
  • 2
  • 11
  • 17
0
votes
0 answers

f:viewParam and f:viewAction not called with *.faces and *.jsf mapping, but only with *.xhtml

I have a strange behaviour in my webapp. I have bound *.faces, *.jsf and *.xhtml to my Faces Servlet. All my pages are reachable about this mappings, but with *.faces and *.jsf endings the setter of my and the method of my…
marcel
  • 412
  • 2
  • 10
0
votes
1 answer

How to map servlet java

currently reading Head First Servlet Jsp. I currently stuck in mapping servlet. This is probably a stupid question but how can I map a servlet url pattern properly? I am using eclipse mars and this is my first time with jsp/servlets. I always check…
Onedaynerd
  • 49
  • 2
  • 9
0
votes
1 answer

How to correct servlet mapping in JSP?

I've set up a dynamic web project that contains a jsp home page and a servlet HelloServlet java class. The home page takes an input value from the jsp page and has a submit button to transfer the input value to the servlet class. But when I click…
Brian Var
  • 6,029
  • 25
  • 114
  • 212
0
votes
0 answers

Declaring custom PDF servlets collides with .xhtml extension

I'm trying to implement a custom PDF file servlet (/fileprovider/name?param1=value¶m2=otherValue) on a JSF 2 web application, but when declaring it on web.xml the application always adds .xhtml extension to every request. I believe due to the…
nuno
  • 1,771
  • 1
  • 19
  • 48
0
votes
1 answer

The servlets named [AdminValidate] and [com.kunal.servlet.AdminValidate] are both mapped to the url-pattern [/AdminValidate] which is not permitted

When ever I try to execute certain files in my Project I get this error "Server Tomcat v7.0 Server at localhost failed to start" The console shows following errors Caused by: java.lang.IllegalArgumentException: The servlets named [AdminValidate] and…
0
votes
1 answer

Error in servlet mapping and/or Tomcat server local host not running

I need help.The code shows error.I think my web.xml file is wrong. So I created a servlet system that uses a quartz CRON scheduler to create a job. In this case, the job is to wake the user up after a user-defined no. of hours.The code is pretty…
user3759098
0
votes
2 answers

Servlet-mapping glitch with spring mvc

​If I try: app /* I get this error: No mapping found for HTTP request with URI [/sample/WEB-INF/jsp/person.jsp] If I try just / as…
fastcodejava
  • 39,895
  • 28
  • 133
  • 186
1 2 3 4
5