简体   繁体   中英

Issue in Maven project while running

First of all, I am newbie in maven.

My Maven project suddenly started giving me 4o4 error on browser when I am running it.

I created one maven project with maven archetype:webapp and started putting my stuff there, it was successful, but now something is wrong there.

In web.xml, I have mentioned welcome file as index.html

My directory structure as below:

在此处输入图片说明

The error which I am facing is below:

在此处输入图片说明

Can anyone help me, whats wrong here?

Thanks in advance!!

it seems you renamed the context from "InterApp" to "interApp_Accounting_v1" - can you try to access the webapp using that new name?

So I would guess: http://localhost:8080/interApp_Accounting_v1/

The name is derived from the finalName inside the pom.xml:

<finalName>${project.artifactId}-${project.version}</finalName>

see: https://maven.apache.org/pom.html

It can be changed using the finalName in the pom or via the maven war plugin: https://maven.apache.org/plugins/maven-war-plugin/usage.html

Otherwise you need to have a look in the log files if the war file could not be deployed.

问题出在web.xml中,我给出了/ *之类的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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM