Using intellij 2016, when I create a new empty JSF web application with tomcat 8 as my server, I see the 404 error message. Where should I search for the cause of this problem?
Here is a similar problem but solutions are not working: How to find out right URL to JSF page? Opening in IntelliJ IDEA causes 404
Edit: By changing my server from tomcat to glassfish the same project is successfully deployed, so I think the problem is with tomcat but by installing a new version of tomcat, the problem remains the same for me.
when you build the application, ".war" file will be generated to your target folder.copy that .war file to tomcat/webapps folder. Now you will be able to run your application
(home.xhtml is called as home.jsf in the url )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.