Skip to main content

Glassfish servlet url * wildcard and alternate doc root

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
PashaTurok
Offline
Joined: 2013-01-05

Here is the problem. I have a servlet @WebServlet(name = "Servlet", urlPatterns = {"/*"}) and I have also
. The problem is that alternate doc root is ignored in this case. But when urlPatterns = {"/servlet1"} everything works.

How can I make it work with urlPatterns = {"/*"}? Best regards.