使用tomcat Maven插件时如何访问tomcat页面

问题描述

我创建了一个SOAP服务,并使用tomcat maven插件在tomcat服务器中进行部署。

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <!-- <contextFile>${basedir}/src/main/webapp/meta-inf/context.xml</contextFile> -->
                </configuration>
            </plugin>
        </plugins>
    </build>

使用此端点时,我能够启动应用程序并能够获得wsdl-http:// localhost:8080 / soapapptest

enter image description here

一切正常,但是当我使用此端点http:// localhost:8080来获取tomcat主页时,我得到了下一页

enter image description here

我如何获得tomcat主页,在那里我可以看到部署的战争?

启动应用程序后,我得到以下日志

enter image description here

解决方法

主页是被部署到“ ROOT”上下文的应用程序。您可以在可下载的Tomcat .tar.gz和.zip文件中找到它。除非您的pom.xml将应用程序部署为ROOT,否则应该为/收到404响应。