gpt4 book ai didi

java - -ear//.war//.POST_MODULE错误(java.lang.NoClassDefFoundError)

转载 作者:太空宇宙 更新时间:2023-11-04 10:56:45 30 4
gpt4 key购买 nike

我正在从 JBOSS GA 5.1 迁移到 JBOSS EAP 6.4,但在加载模块时遇到问题,出现此错误:

Nuevas dependencias que faltan/no satisfechas:
service jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations (faltan) dependientes: [service jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.HandleDelegate, service jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.ValidatorFactory, service jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.ORB, service jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.Validator]

11:13:52,045 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operación ("deploy") falló - dirección: ([("deployment" => "SPM-GUI-ear.ear")]) - descripción de la falla: {
"JBAS014671: Servicios fallidos" => {"jboss.deployment.subunit.\"SPM-GUI-ear.ear\".\"SPM-GUI.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"SPM-GUI-ear.ear\".\"SPM-GUI.war\".POST_MODULE: JBAS018733: Error al procesar la fase POST_MODULE de subdeployment \"SPM-GUI.war\" of deployment \"SPM-GUI-ear.ear\"
Caused by: java.lang.NoClassDefFoundError: javax/faces/FacesException
Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException from [Module \"deployment.SPM-GUI-ear.ear:main\" from Service Module Loader]"},
"JBAS014771: Servicios con dependencias que faltan/no disponibles" => [
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.HandleDelegate falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.ValidatorFactory falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.ORB falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.ORB falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.Validator falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.Validator falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.ValidatorFactory falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.HandleDelegate falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]"
]
}
...
...
...
11:13:52,045 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operación ("deploy") falló - dirección: ([("deployment" => "SPM-GUI-ear.ear")]) - descripción de la falla: {
"JBAS014671: Servicios fallidos" => {"jboss.deployment.subunit.\"SPM-GUI-ear.ear\".\"SPM-GUI.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"SPM-GUI-ear.ear\".\"SPM-GUI.war\".POST_MODULE: JBAS018733: Error al procesar la fase POST_MODULE de subdeployment \"SPM-GUI.war\" of deployment \"SPM-GUI-ear.ear\"
Caused by: java.lang.NoClassDefFoundError: javax/faces/FacesException
Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException from [Module \"deployment.SPM-GUI-ear.ear:main\" from Service Module Loader]"},
"JBAS014771: Servicios con dependencias que faltan/no disponibles" => [
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.HandleDelegate falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.ValidatorFactory falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.ORB falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.ORB falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.Validator falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.Validator falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher.ValidatorFactory falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.TimerServiceDispatcher]",
"jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations.HandleDelegate falta [jboss.naming.context.java.comp.SPM-GUI-ear.jboss-seam.EjbSynchronizations]"
]
}

如何解决该问题?

最佳答案

看来您在耳朵或 Jboss 中缺少依赖项。

将包含 javax/faces/FacesException 类的 jar 添加到您的耳朵中。

两个选择:

  • 在 war 中:app-web.war/lib
  • 在耳朵里:APP-INF\lib

你之前是怎么添加这个库的。为了进一步帮助您,您必须告诉我们您是如何生成耳朵的。

您可以在 javax.faces-api 中找到它,但您必须选择适合您耳朵的版本。 maven 依赖示例:

<dependency>
<groupId>javax.faces</groupId>
<artifactId>javax.faces-api</artifactId>
</dependency>

关于java - -ear//.war//.POST_MODULE错误(java.lang.NoClassDefFoundError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47290253/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com