Проблема отображения красивых лиц

я использую PrettyFaces для Pretty URL, но у меня есть первая проблема с PrettyFaces: мое сопоставление в pretty-config.xml

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

у меня есть один файл index.xhtml при развертывании на сервере url http://localhost/myproject не найден index.jsf что случилось ?

отображение в web.xml красивых лиц

<!-- 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-->

Сообщение GlassFish о проблеме

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.

person MYE    schedule 15.10.2010    source источник
comment
если убрать красивые лица, то это сработает?   -  person jmj    schedule 18.10.2010
comment
нет, я просто меняю ‹view-id›/faces/index.jsf‹/view-id› на ‹view-id›/faces/index.xhtml‹/view-id›   -  person MYE    schedule 18.10.2010


Ответы (1)


Файл index.jsf не существует. Сделайте это в корневом каталоге вашего проекта (http://localhost/myproject/index.jsf).

person Peter C    schedule 15.10.2010