This question already has an answer here:
Accessing
http://localhost:8080/basicSetup/faces/index.xhtml
works, with the output of :
Hello World ! Albert Kam
but accessing
http://localhost:8080/basicSetup
shows
Hello World ! #{myBean.value}
meaning that the welcome file is not rendered as a JSF file
I would like http://localhost:8080/basicSetup
to have the same effect as accessing http://localhost:8080/basicSetup/faces/index.xhtml
.
Please share your thoughts
jetty-maven-plugin:8.0.3.v20111011:run + jdk 7 + eclipse indigo
Here is my web.xml file :
Basic Setup Web Application Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet /faces/* faces/index.xhtml com.sun.faces.config.ConfigureListener javax.faces.PROJECT_STAGE Development
and this is the jetty maven plugin output :
[INFO] >>> jetty-maven-plugin:8.0.3.v20111011:run (default-cli) @ BasicSetup >>> [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ BasicSetup --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ BasicSetup --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ BasicSetup --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\Users\albert\workspace\BasicSetup\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ BasicSetup --- [INFO] No sources to compile [INFO] [INFO] <<< jetty-maven-plugin:8.0.3.v20111011:run (default-cli) @ BasicSetup <<< [INFO] [INFO] --- jetty-maven-plugin:8.0.3.v20111011:run (default-cli) @ BasicSetup --- [INFO] Configuring Jetty for project: BasicSetup Maven Webapp [INFO] webAppSourceDirectory C:\Users\albert\workspace\BasicSetup\src\main\webapp does not exist. Defaulting to C:\Users\albert\workspace\BasicSetup\src\main\webapp [INFO] Reload