Splash › Forums › PrettyFaces Users › The FacesServlet cannot have a url-pattern of /* › Re: The FacesServlet cannot have a url-pattern of /*
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.
If you find our tools useful, please consider making a donation to help us stay online and building software!