Re: The FacesServlet cannot have a url-pattern of /*

Splash Forums PrettyFaces Users The FacesServlet cannot have a url-pattern of /* Re: The FacesServlet cannot have a url-pattern of /*

#20618

Last
Participant

Sorry, for the spamming, but I am facing really weird behaviour.

If I set the pattern to /faces/* and go to http://localhost:8080/gowalla-war/, I get an unparsed code of index.xhtml. If I go to http://localhost:8080/gowalla-war/faces, I get GlassFish 404. If I go to http://localhost:8080/gowalla-war/faces/ (additional slash), I get an unparsed code again. If I go to http://localhost:8080/gowalla-war/faces/index.xhtml, I finally get what I want – parsed code with successfully loaded resources.

But I really can’t force users to type this address and to reveal my source codes if the URL is not typed correctly, so please, tell me, what am I doing wrong :) Thanks.