2010-10-15 4 views
1

i en utilisant PrettyFaces pour URL Jolie mais je dois d'abord un problème PrettyFaces: ma correspondance dans jolie config.xmlFaces Jolie problème de cartographie

 <url-mapping id="home"> 
    <pattern value="/" /> 
    <view-id>/faces/index.jsf</view-id> 
    </url-mapping> 

j'ai un fichier index.xhtml lorsque le déploiement sur le serveur url http://localhost/myproject il n'est pas trouvé index.jsf qu'est-ce qui se passe?

mapping web.xml de prettyfaces

<!-- PrettyFaces--> 

<filter> 
    <filter-name>Pretty Filter</filter-name> 
    <filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class> 
</filter> 

<filter-mapping> 
<filter-name>Pretty Filter</filter-name> 
<url-pattern>/*</url-pattern> 
<dispatcher>FORWARD</dispatcher> 
<dispatcher>REQUEST</dispatcher> 
<dispatcher>ERROR</dispatcher> 
</filter-mapping> 





<!-- End PrettyFaces--> 

message GlassFish pour le problème

HTTP Status 404 - /index.jsf not found 

type Status report 

message/index.jsf not found 

descriptionThe requested resource (/index.jsf not found) is not available. 
+0

Si vous enlevez de jolis visages, est-ce que ça marche? –

+0

non je viens de changer /faces/index.jsf à /faces/index.xhtml MYE

Répondre

1

Le fichier index.jsf n'existe pas. Faites-le dans le répertoire racine de votre projet (http: //localhost/myproject/index.jsf).

+0

J'ai été changer en index.xhtml – MYE