starting a new project, and I don't have anything really added in the project yet except base stuff. First thing I wanted to do was clean up the .xhtml/.jsf extensions. I installed:
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>1.5</version>
</dependency>
made directory: WEB-INF/faces-views/ put simple file in there home.xhtml in my web.xml i put:
<context-param>
<param-name>org.omnifaces.FACES_VIEWS_SCAN_PATHS</param-name>
<param-value>/*.xhtml</param-value>
</context-param>
<welcome-file-list>
<welcome-file>home</welcome-file>
</welcome-file-list>
I also tried the web.xml without the context-param setting above.
(FYI: this same page worked outside omnifaces at host/context/home.xhtml)
In the logs I can see omnifaces getting loaded:
23:22:24,628 INFO [org.omnifaces.eventlistener.VersionLoggerEventListener] (ServerService Thread Pool -- 74) Using OmniFaces version 1.5
However when i go to localhost:8080/{context}/home I get a 404:
JBWEB000309: type JBWEB000067: Status report
JBWEB000068: message /{context}/home.xhtml
JBWEB000069: description JBWEB000124: The requested resource is not available.
Container is JBoss Community latest: Janus:6.1.0.GA, JBoss Web/7.2.0.Final-redhat-1
I thought this would be a great solution considering it was so simple to set up. Does anyone know of compatibility problems I could be facing, or something i did wrong. I don't see any errors in the log files.
Thanks