web-dev-qa-db-ja.com

クラスの反射情報の取得中にエラーが発生しました

Wildfly10.1.0で動的Webプロジェクトを実行しています。 WEB-INF\libフォルダーにrichfaces-ui.3.3.3.jarがありますが、それでもこのエラーが発生します。

このライブラリをweb-infフォルダに含めています

enter image description here

10:32:09,011 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment RGWeb.war (runtime-name: RGWeb.war) in 110ms
10:32:09,012 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "RGWeb.war" (runtime-name: "RGWeb.war")
10:32:18,918 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry logkit-1.2.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar  does not point to a valid jar for a Class-Path reference.
10:32:18,919 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry avalon-framework-4.1.5.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar  does not point to a valid jar for a Class-Path reference.
10:32:18,919 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry concurrent-1.3.2.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar  does not point to a valid jar for a Class-Path reference.
10:32:18,919 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry antlr-2.7.2.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/jacorb.jar  does not point to a valid jar for a Class-Path reference.
10:32:18,936 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0059: Class Path entry activation.jar in /D:/wildfly-10.1.0.Final/standalone/deployments/RGWeb.war/WEB-INF/lib/mail.jar  does not point to a valid jar for a Class-Path reference.
10:32:19,679 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."RGWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."RGWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "RGWeb.war"
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.Java:154)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.Java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.Java:1881)
    at Java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.Java:1142)
    at Java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.Java:617)
    at Java.lang.Thread.run(Thread.Java:745)
Caused by: Java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.revguru.crs.web.rm.vo.RevenueRules with ClassLoader ModuleClassLoader for Module "deployment.RGWeb.war:main" from Service Module Loader
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.Java:70)
    at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.Java:57)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.Java:106)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.Java:91)
    at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.Java:76)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.Java:147)
    ... 5 more
Caused by: Java.lang.NoClassDefFoundError: Lorg/richfaces/component/html/HtmlDataTable;
    at Java.lang.Class.getDeclaredFields0(Native Method)
    at Java.lang.Class.privateGetDeclaredFields(Class.Java:2583)
    at Java.lang.Class.getDeclaredFields(Class.Java:1916)
    at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.Java:72)
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.Java:66)
    ... 10 more
Caused by: Java.lang.ClassNotFoundException: org.richfaces.component.html.HtmlDataTable from [Module "deployment.RGWeb.war:main" from Service Module Loader]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.Java:198)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.Java:363)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.Java:351)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.Java:93)
    ... 15 more

10:32:19,680 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
    "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"RGWeb.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"RGWeb.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"RGWeb.war\"
    Caused by: Java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.revguru.crs.web.rm.vo.RevenueRules with ClassLoader ModuleClassLoader for Module \"deployment.RGWeb.war:main\" from Service Module Loader
    Caused by: Java.lang.NoClassDefFoundError: Lorg/richfaces/component/html/HtmlDataTable;
    Caused by: Java.lang.ClassNotFoundException: org.richfaces.component.html.HtmlDataTable from [Module \"deployment.RGWeb.war:main\" from Service Module Loader]"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"RGWeb.war\".POST_MODULE"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
10:32:19,710 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) WFLYSRV0016: Replaced deployment "RGWeb.war" with deployment "RGWeb.war"
10:32:19,711 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."RGWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."RGWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "RGWeb.war"
      service jboss.deployment.unit."RGWeb.war".POST_MODULE
5
Devil Decoder

Wildfly.org Webページから:

Java 7のサポートは終了し、Java 8ランタイムとのより深い統合が可能になりました。Java 9はまだ開発中ですが、このリリースは現在の開発スナップショットで実行されます。

必ず、Java 1.8で戦争を構築してください。

1
Tinki

WARファイルではなくJARファイルを誤ってデプロイしたときにこのエラーが発生しました。このような単純な失敗を理解するのは簡単ではない場合があります。多分これはあなたの場合ですか?幸運を。

0
PT_STAR

このエラーは、Javaクラスがpersistence.xmlなどのjarまたはxmlファイルを参照していて、存在しない場合に発生します

0
santosh m