Etat http 404:la ressource demandé n'est pas disponible

jarule86 - 31 déc. 2012 à 04:29
cs_Julien39 Messages postés 6414 Date d'inscription mardi 8 mars 2005 Statut Modérateur Dernière intervention 29 juillet 2020 - 3 janv. 2013 à 09:13
je debute avec JSF et j'essaye de langer mon projet avec tomcat ou bien jbos5 et le resultat est la suivant : Etat http 404:la ressource demandé n'est pas disponible


les repertoires des deux fichier :
achatweb/webcontent/WEB-INF/web.xml
achatweb/webcontent/web/index.jsp

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version= "2.5">
<display-name>AchatWeb</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
/faces/*
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or 'server' ( =default). See JSF Specification 2.5.2</description>
javax.faces.STATE_SAVING_METHOD


client


</context-param>
<context-param>
javax.servlet.jsp.jstl.fmt.localizationContext


resources.application


</context-param>
<context-param>
org.richfaces.SKIN


DEFAULT


</context-param>
<context-param>
org.richfaces.CONTROL_SKINNING


enable


</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<login-config>
BASIC
</login-config>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
*.jsf
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
*.faces
</servlet-mapping>
<context-param>
<description>
This parameter tells MyFaces if javascript code should be allowed in
the rendered HTML output.
If javascript is allowed, command_link anchors will have javascript code
that submits the corresponding form.
If javascript is not allowed, the state saving info and nested parameters
will be added as url parameters.
Default is 'true'</description>
org.apache.myfaces.ALLOW_JAVASCRIPT


true


</context-param>
<context-param>
<description>
If true, rendered HTML code will be formatted, so that it is 'human-readable'
i.e. additional line separators and whitespace will be written, that do not
influence the HTML code.
Default is 'true'</description>
org.apache.myfaces.PRETTY_HTML


true


</context-param>
<context-param>
org.apache.myfaces.DETECT_JAVASCRIPT


false


</context-param>
<context-param>
<description>
If true, a javascript function will be rendered that is able to restore the
former vertical scroll on every request. Convenient feature if you have pages
with long lists and you do not want the browser page to always jump to the top
if you trigger a link or button action that stays on the same page.
Default is 'false'
</description>
org.apache.myfaces.AUTO_SCROLL


true


</context-param>
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
</web-app>

1 réponse

cs_Julien39 Messages postés 6414 Date d'inscription mardi 8 mars 2005 Statut Modérateur Dernière intervention 29 juillet 2020 371
3 janv. 2013 à 09:13
Salut,

Les applications utilisant JSF sont des applications web qui doivent respecter les spécifications de J2EE.

En tant que telle, elles doivent avoir la structure définie par J2EE pour toutes les applications web :

/
/WEB-INF
/WEB-INF/web.xml
/WEB-INF/lib
/WEB-INF/classes


Est ce que tu as bien tout ?

achatweb est il le nom du projet ou bien un dossier intermédiaire ?
0
Rejoignez-nous