Wildfly:应用程序已部署但未运行 [英] Wildfly : application deployed but not running

查看:207
本文介绍了Wildfly:应用程序已部署但未运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将.ear应用程序部署到Wildfly 10.1 final. .ear有2个嵌套的.war文件. .war文件中没有"jboss-web.xml"文件.

I'm trying to deploy an .ear application to Wildfly 10.1 final. The .ear has 2 nested .war files. There's no "jboss-web.xml" file in the .war files.

这是application.xml文件:

Here's the application.xml file :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
    "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
    "http://java.sun.com/dtd/application_1_3.dtd">
<application>
    <display-name>myApp-ear</display-name>
    <description>myApp</description>
    <module>
      <web>
        <web-uri>myApp-rest</web-uri>
        <context-root>/myApp-rest</context-root>
      </web>
    </module>
    <module>
      <web>
        <web-uri>myApp-webapp</web-uri>
        <context-root>/myApp-webapp</context-root>
      </web>
    </module>
</application>

部署后,我有以下日志:

After deploying, I have the following log :

INFO [org.jboss.as.server.deployment.scanner](DeploymentScanner线程-1)WFLYDS0004:在部署目录中找到myApp.ear.要触发部署,请创建一个名为myApp.ear.dodeploy的文件
信息[org.jboss.as.server.deployment](MSC服务线程1-8)WFLYSRV0027:开始部署"myApp.ear"(运行时名称:"myApp.ear")
WARN [org.jboss.as.server.deployment](MSC服务线程1-8)WFLYSRV0059:/C:/Dev/Wildfly/wildfly-10.1.0.Final/standalone中的类路径条目lib/snakeyaml-1.13.jar /deployments/myApp.ear/liquibase-core-3.3.0.jar不会指向用于类路径引用的有效jar.
(...)
INFO [org.jboss.as.server.deployment](MSC服务线程1-8)WFLYSRV0207:开始子部署(运行时名称:"myApp-rest")
INFO [org.jboss.as.server.deployment](MSC服务线程1-8)WFLYSRV0207:开始子部署(运行时名称:"myApp-webapp")
INFO [org.jboss.as.server](DeploymentScanner线程-2)WFLYSRV0010:部署了"myApp.ear"(运行时名称:"myApp.ear")

INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found myApp.ear in deployment directory. To trigger deployment create a file called myApp.ear.dodeploy
INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "myApp.ear" (runtime-name: "myApp.ear")
WARN [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0059: Class Path entry lib/snakeyaml-1.13.jar in /C:/Dev/Wildfly/wildfly-10.1.0.Final/standalone/deployments/myApp.ear/liquibase-core-3.3.0.jar does not point to a valid jar for a Class-Path reference.
(...)
INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "myApp-rest")
INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "myApp-webapp")
INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "myApp.ear" (runtime-name : "myApp.ear")

仅此而已,日志中没有注册"之类的内容. 因此,每当我尝试访问"localhost:8080/myApp-webapp"时,我都会遇到404错误.

And that's all, no "register" in the logs or something like that. So, whenever I try to access "localhost:8080/myApp-webapp" I have a 404 error.

该应用程序以前已部署在Weblogic 11(具有相同的配置)上,并且运行良好.

The application was previously deployed on Weblogic 11 (with the same configuration) and it worked fine.

有任何线索吗?

推荐答案

基于以下日志消息,您的EAR内容似乎缺少适当的文件扩展名

Based on the following log messages it looks like the contents of your EAR are missing the appropriate file extensions

INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "myApp-rest") 
INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0207: Starting subdeployment (runtime-name: "myApp-webapp") 
INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0010: Deployed "myApp.ear" (runtime-name : "myApp.ear")

特别注意myApp-restmyApp-webapp.即使这是爆炸式部署,它们都应具有.war扩展名. (请注意,如果myApp-rest只是一个EJB模块,则扩展名可能为.jar.)

Specifically note the myApp-rest and myApp-webapp. Those should both have a .war extension even if this is an exploded deployment. (Note the myApp-rest may have a .jar extension if it's just an EJB module.)

这篇关于Wildfly:应用程序已部署但未运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆