Im trying to deploy an application to Openshift server, but I get a strange error there, and it does not want to deploy my war file. the error states:
Caused by: java.lang.IllegalArgumentException: The servlets named [AdminUIServlet] and [GalleryUIServlet] are both mapped to the url-pattern [/admin/*] which is not permitted
The thing is my mappings are different and when I run the project localy this works. Here are mymappings in the code:
@WebServlet(urlPatterns = "/*", name = "GalleryUIServlet", asyncSupported = true)
@WebServlet(urlPatterns = "/admin/*", name = "AdminUIServlet", asyncSupported = true)
How is this error possible? How can I fix this?