java ee xml,在Java EE7项目中找不到web.xml

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值