Erreur 404 dans le serveur JBoss
bonjour;
je suis vraiment fraichement nouvelle aux applications web :oops:
je viens de créer une application web "test2" sous l'IDE éclipse, jre8, le serveur Jboss 4.2.0GA
j'ai créer un simple ben "BonjouBean", contenant un seul attribut "nom" et une page "bienvenue.xhtml" qui fait appel au #{BonjourBean.nom};
juste pour tester si tout va bien:calim2:
mon fichier web.xml est le suivant:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<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>test2</display-name>
<welcome-file-list>
<!-- identification de la page d'acceuil par déffaut -->
<welcome-file>/test2/bienvenue.xhtml</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>
<url-pattern>/faces/*</url-pattern>
<url-pattern>*.jsf</url-pattern>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<context-param>
<description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>resources.application</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
</web-app> |
j'ai rajouter les libs jsf_api et jsf_impl 2.1.6.jar et le primefaces 3.4.2.jar au librairie.
en hébergeant le projet, j'ai eux comme erreurs sous la console le message suivant:
Code:
1 2 3 4 5
|
09:48:16,286 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
09:48:16,791 ERROR [MainDeployer] Could not initialise deployment: file:/D:/doc_nouhad/jboss-4.2.0.GA/jboss-4.2.0.GA/server/default/deploy/test2.war
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected only one url-pattern tag)
at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:755) |
vraiment, je ne sais pas d’où viens le problème, j’espère que vous pourriez m'aider :oops:
merci d'avance.