I'm doing a project in eclipse with JSF 2.2 and Servlet 3.1 (Java EE7). The first problem I had was a error in the pom.xml in line:
war
Error: web.xml is missing and is set true.
I researched on the internet and added the following lines in my pom.xml
maven-war-plugin
2.4
false
After that the error was gone, but when running the project get the error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
I searched the Internet again and put the following lines in pom.xml
jstl
jstl
1.2
The problem solved, only when access for example:
(I put mapped as jsf to inves xhtml)
He changes the jsf by jsp stating the following:
HTTP Status 404 - /MeuSistema/Login.jsp
Out of curiosity changing the .jsf to .xhtml to see if opened at least
the file, it returns the following:
HTTP Status 404 - Not Found /Login.xhtml in ExternalContext as a Resource
I also found this alternative to force to read the web.xml
org.apache.maven.plugins
maven-war-plugin
2.4
src/main/webapp/WEB-INF/web.xml
src/main/webapp/
But the problems remain the same.
Follow my pom.xml and web.xml:
Well, it seems that is not reading the web.xml. Funny that in
not of any console error.
What can be wrong?
Thanks for attention.
解决方案
Solved - just deleted folders within my project
.metada
.project
.settings
.classpath
Thanks