为什么Wildfly停止使用“ /”上下文提供耳包

时间:2018-06-26 20:50:46

标签: java wildfly-10

我只是对.ear包中部署到WildFly 10的html文件进行了微小的更改,该文件早已成功使用web context =“ /”成功部署了很长时间。

突然http://localhost:8080/打开到 欢迎使用WildFly 10

不再进入应用程序索引页面。

我知道这个问题已经问了很多遍了。
答案是.ear和.war软件包需要不同的名称。 但是我在一年多以前就参加了那场战斗,之后战斗一直持续下去。

老实说,我不知道从哪里开始寻找新问题的解决方案。

有人可以拉直我并指向新的方向吗?

我在下面列出了三件事:

我的.ear结构。

我的.war结构。

还有Wildfly日志

(该日志是我停止服务器后得出的。

清除了\ wildfly-10.1.0.Final \ standalone \ deployments中的所有部署

将tapp-IIA.ear复制到部署中。

重新启动Wildfly,并看到tapp-IIA.ear。部署在\ wildfly-10.1.0.Final \ standalone \ deployments中)

WILDFLY LOG

WFLYSRV0207: Starting subdeployment (runtime-name: "tapp-IIB.war")
2018-06-26 09:49:46,683 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 70) WFLYUT0021: Registered web context: /
2018-06-26 09:49:46,699 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "tapp-IIA.ear" (runtime-name : "tapp-IIA.ear")
2018-06-26 09:49:46,808 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
2018-06-26 09:49:46,808 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
2018-06-26 09:49:46,824 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 8205ms - Started 501 of 756 services (438 services are lazy, passive or on-demand)

EAR封装结构:

tapp-IIA.ear
 ---   tapp-IIB.war
 ---   META-INFO
 ---  ---   application.xml
              ****** content*****
              <?xml version="1.0" encoding="UTF-8"?>
              <application
                 xmlns=http://java.sun.com/xml/ns/javaee
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                 version="5" 
                 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
                 http://java.sun.com/xml/ns/javaee/application_5.xsd">  
                 <display-name> TAPP</display-name>
                 <module>
                   <web>
                     <web-uri>tapp-IIB.war</web-uri>
                     <context-root>/</context-root>
                    </web>
                  </module>
               </application>
              *********************
 --- ---    manifest..MF
              ******* content ******* 
              Manifest-Version: 1.0
              Ant-Version: Apache Ant 1.9.6
              Created-By: 1.8.0_171-b11 (Oracle Corporation)
              Package-Name: tapp-II
              Built-By: George
              Packaged-Date: June 26 2018 09:22 AM
              ***********************

WAR封装结构

 tapp-IIB.war
 --- index.html
 --- WEB-INF [w/servlets jar file]
 --- jsp-pages [Directory with jsp pages]
 --- and other directories with scripts, images, etc.

0 个答案:

没有答案