17:15:41,160 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "ETS_EAR.ear"
was rolled back with the following failure message:
{
"WFLYCTL0080: Failed services" => {
"jboss.deployment.subunit.\"ETS_EAR.ear\".\"ETSServices-0.0.1-SNAPSHOT.jar\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"ETSServices-0.0.1-SNAPSHOT.jar\" of deployment \"ETS_EAR.ear\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for interface com.*.ets.remote.LoggingRemoteInter with ClassLoader ModuleClassLoader for Module \"deployment.ETS_EAR.ear.ETSServiceRemote-0.0.1-SNAPSHOT.jar\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: com/*/ets/client/jsflogging/ParentLoggingTO
Caused by: java.lang.ClassNotFoundException: com.xocialive.ets.client.jsflogging.ParentLoggingTO from [Module \"deployment.ETS_EAR.ear.ETSServiceRemote-0.0.1-SNAPSHOT.jar\" from Service Module Loader]",
"jboss.deployment.subunit.\"ETS_EAR.ear\".\"ETSValidators-0.0.1-SNAPSHOT.jar\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"ETSValidators-0.0.1-SNAPSHOT.jar\" of deployment \"ETS_EAR.ear\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.*.validators.MCSValidatorEJB with ClassLoader ModuleClassLoader for Module \"deployment.ETS_EAR.ear.ETSValidators-0.0.1-SNAPSHOT.jar\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: Failed to link */*/*/YEFIErrorStructure/xml/schemas/version2_3/CommonErrorStructure (Module \"deployment.ETS_EAR.ear.MCSIntegration-0.0.1-SNAPSHOT.jar\" from Service Module Loader): org/apache/axis/AxisFault"
},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\"ETS_EAR.ear\".WeldStartService",
"jboss.deployment.unit.\"ETS_EAR.ear\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"ETS_EAR.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"ETS_EAR.ear\".beanmanager, jboss.deployment.unit.\"ETS_EAR.ear\".WeldStartService]"]
}
Use #resource(lookup =...) instead of #resource(name
Source
Related
I tried to migrate my Wildfly from 12 to 22. After I run the migration tool I put my war-file into the deployments folder. But when I try to start it with the following command
./standalone.sh -c standalone-full.xml
I get the following error:
2021-08-24 12:23:54,295 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit." .war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit." .war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment " .war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:279)
at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:202)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
2021-08-24 12:23:54,510 INFO [org.infinispan.PERSISTENCE] (ServerService Thread Pool -- 88) ISPN000556: Starting user marshaller 'org.wildfly.clustering.infinispan.spi.marshalling.InfinispanProtoStreamMarshaller'
2021-08-24 12:23:55,053 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 88) WFLYCLINF0002: Started http-remoting-connector cache from ejb container
2021-08-24 12:23:55,294 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => " .war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\" .war\".INSTALL" => "WFLYSRV0153: Failed to process phase INSTALL of deployment \" .war\"
Caused by: java.lang.NullPointerException"},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.unit.\" .war\".WeldStartService",
"jboss.deployment.unit.\" .war\".beanmanager"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\" .war\".batch.artifact.factory is missing [jboss.deployment.unit.\" .war\".beanmanager]",
"jboss.deployment.unit.\" .war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\" .war\".WeldStartService, jboss.deployment.unit.\" .war\".beanmanager]"
]
}
My standanlone-full.xml you can find here:
https://pastebin.com/a5UZY1Su
Can anyone help me or do you need more informations?
I found the issue,
in my persistence.xml under the properties path, I had the following
<property name="jboss.entity.manager.jndi.name" value="java:comp/env/..." />
After removing this line, everything worked.
18:27:43,339 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."B2B-1.ear"."B2BServices-1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."B2B-1.ear"."B2BServices-1.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "B2BServices-1.war" of deployment "B2B-1.ear"
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:748)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.b2b.services.rest.RestClientForNCPCInvoiceFeed with ClassLoader ModuleClassLoader for Module "deployment.B2B-1.ear.B2BServices-1.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: com/b2b/invoice/feed/service/InvoiceFeedService
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.(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
... 10 more
Caused by: java.lang.ClassNotFoundException: com.b2b.invoice.feed.service.InvoiceFeedService from [Module "deployment.B2B-1.ear.B2BServices-1.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
18:27:43,346 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment B2BDevelopmentTools-1.war
18:27:43,352 WARN [org.jboss.modules] (MSC service thread 1-1) Failed to define class com.nccb2b.common.taglib.InvTextTag in Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link com/nccb2b/common/taglib/InvTextTag (Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader): org/apache/struts/taglib/html/TextTag
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
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)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:21)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:14)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:84)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
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:748)
18:27:43,353 WARN [org.jboss.modules] (MSC service thread 1-1) Failed to define class com..nccb2b.common.taglib.rbtag.RBTextTag in Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link com/nccb2b/common/taglib/rbtag/RBTextTag (Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader): Failed to link com/nccb2b/common/taglib/InvTextTag (Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader): org/apache/struts/taglib/html/TextTag
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:21)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:14)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:84)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
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:748)
18:27:43,353 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."B2B-1.ear"."B2BWeb-1.0-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."B2B-1.ear"."B2BWeb-1.0-SNAPSHOT.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "B2BWeb-1.0-SNAPSHOT.war" of deployment "B2B-1.ear"
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:748)
Caused by: java.lang.NoClassDefFoundError: Failed to link com/nccb2b/common/taglib/rbtag/RBTextTag (Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader): Failed to link com/nccb2b/common/taglib/InvTextTag (Module "deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main" from Service Module Loader): org/apache/struts/taglib/html/TextTag
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:606)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:21)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:14)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:84)
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
18:27:43,439 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
"WFLYCTL0080: Failed services" => {
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BServices-1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"B2B-1.ear\".\"B2BServices-1.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"B2BServices-1.war\" of deployment \"B2B-1.ear\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.b2b.services.rest.RestClientForNCPCInvoiceFeed with ClassLoader ModuleClassLoader for Module \"deployment.B2B-1.ear.B2BServices-1.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: com/b2b/invoice/feed/service/InvoiceFeedService
Caused by: java.lang.ClassNotFoundException: com.b2b.invoice.feed.service.InvoiceFeedService from [Module \"deployment.B2B-1.ear.B2BServices-1.war:main\" from Service Module Loader]",
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BWeb-1.0-SNAPSHOT.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"B2B-1.ear\".\"B2BWeb-1.0-SNAPSHOT.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"B2BWeb-1.0-SNAPSHOT.war\" of deployment \"B2B-1.ear\"
Caused by: java.lang.NoClassDefFoundError: Failed to link com/nccb2b/common/taglib/rbtag/RBTextTag (Module \"deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main\" from Service Module Loader): Failed to link com/nccb2b/common/taglib/InvTextTag (Module \"deployment.B2B-1.ear.B2BWeb-1.0-SNAPSHOT.war:main\" from Service Module Loader): org/apache/struts/taglib/html/TextTag",
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BEJB-1.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"B2B-1.ear\".\"B2BEJB-1.jar\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"B2BEJB-1.jar\" of deployment \"B2B-1.ear\"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.circulationb2b.hostpub.bean.HostpubManagerBean with ClassLoader ModuleClassLoader for Module \"deployment.B2B-1.ear.B2BEJB-1.jar:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: com/sapient/framework/sql/GeneralSqlException
Caused by: java.lang.ClassNotFoundException: com.sapient.framework.sql.GeneralSqlException from [Module \"deployment.B2B-1.ear.B2BEJB-1.jar:main\" from Service Module Loader]"
},
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BServices-1.war\".POST_MODULE",
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BWeb-1.0-SNAPSHOT.war\".POST_MODULE",
"jboss.deployment.unit.\"B2B-1.ear\".beanmanager",
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BDevelopmentTools-1.war\".beanmanager",
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BEJB-1.jar\".POST_MODULE"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.deployment.subunit.\"B2B-1.ear\".\"B2BDevelopmentTools-1.war\".batch.environment is missing [jboss.deployment.subunit.\"B2B-1.ear\".\"B2BDevelopmentTools-1.war\".beanmanager]",
"jboss.deployment.unit.\"B2B-1.ear\".batch.environment is missing [jboss.deployment.unit.\"B2B-1.ear\".beanmanager]",
"jboss.deployment.unit.\"B2B-1.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"B2B-1.ear\".beanmanager]"
]
}
(MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."B2B-1.ear"."B2BWeb-1.0-SNAPSHOT.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."B2B-1.ear"."B2BWeb-1.0-SNAPSHOT.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "B2BWeb-1.0-SNAPSHOT.war" of deployment "B2B-1.ear"
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:748)
Please help: When i deploy a my.war jboss is throwing:
9:12:16,777 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service
jboss.module.service."deployment.my.war".main:
org.jboss.msc.service.StartException in service
jboss.module.service."deployment.my.war".main: WFLYSRV0179: Failed to
load module: deployment.my.war:main
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:91)
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: org.jboss.modules.ModuleNotFoundException: javax.jmx:main
at org.jboss.modules.Module.addPaths(Module.java:1093)
at org.jboss.modules.Module.link(Module.java:1449)
at org.jboss.modules.Module.relinkIfNecessary(Module.java:1477)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:225)
at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:68)
... 5 more
09:12:16,783 ERROR [org.jboss.as.controller.management-operation]
(Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed -
address: ([("deployment" => "my.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.my.war\".main" =>
"org.jboss.msc.service.StartException in service
jboss.module.service.\"deployment.my.war\".main: WFLYSRV0179: Failed
to load module: deployment.my.war:main
Caused by: org.jboss.modules.ModuleNotFoundException: javax.jmx:main"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.module.service.\"deployment.my.war\".main"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
Hi i just removed the dependancy from the deployment descriptor.
it was a mistake from me adding it there.
Thanks
I'm doing some CDI tests in Eclipse Mars and WildFly 8.2.
I have a Dynamic Web Project (as module of an EAR) ItsProjectWEB hosting a simple session scoped bean
#SessionScoped
public class Cart implements Serializable {
private static final long serialVersionUID = 1L;
public Cart() {}
List<String> list = new ArrayList<>();
public List<String> addAndGet(String item){
list.add(item);
return list;
}
}
and a servlet where the bean is injected and invoked
#WebServlet("/ItsServlet")
public class ItsServlet extends HttpServlet {
#Inject Cart cart;
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
StringBuilder text=new StringBuilder();
text.append("Cart = "+cart.addAndGet("Item #"+LocalTime.now().getSecond()));
text.append("\nServed at: "+request.getContextPath());
response.getWriter().append(text);
}
//irrelevant code
}
and everything works fine, this is the structure of the project:
My idea is to make a separate Dynamic Web Project where putting the CDI beans, add this project to my EAR and being able to reference it from inside the other modules. This is what I did:
built a separate project ItsProjectCDI by copying the structure of the first one
Added this project to the Java Build Path of ItsProjectWEB (rightclick -> Java Build Path -> Projects -> Add...)
Tried to inject the bean inside the servlet via #Inject ItsCart cart;
but then I get this errors in the server log
13:22:46,089 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "ItsProjectEAR.ear" (runtime-name: "ItsProjectEAR.ear")
13:22:46,095 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015973: Starting subdeployment (runtime-name: "ItsProjectCDI.war")
13:22:46,096 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015973: Starting subdeployment (runtime-name: "ItsProjectWEB.war")
13:22:46,184 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment ItsProjectEAR.ear
13:22:46,197 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment ItsProjectCDI.war
13:22:46,223 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "ItsProjectWEB.war" of deployment "ItsProjectEAR.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_45]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.mui.servlet.ItsServlet with ClassLoader ModuleClassLoader for Module "deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:107)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:92)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: Lcom/mui/cdi/ItsCart;
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.8.0_45]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.8.0_45]
at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.8.0_45]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [wildfly-server-8.2.1.Final.jar:8.2.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: com.mui.cdi.ItsCart from [Module "deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
... 15 more
13:22:46,232 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {
"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectWEB.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectWEB.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment \"ItsProjectWEB.war\" of deployment \"ItsProjectEAR.ear\"
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class com.mui.servlet.ItsServlet with ClassLoader ModuleClassLoader for Module \"deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main\" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: Lcom/mui/cdi/ItsCart;
Caused by: java.lang.ClassNotFoundException: com.mui.cdi.ItsCart from [Module \"deployment.ItsProjectEAR.ear.ItsProjectWEB.war:main\" from Service Module Loader]"},
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"ItsProjectEAR.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"ItsProjectEAR.ear\".beanmanager]",
"jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectCDI.war\".weld.weldClassIntrospector is missing [jboss.deployment.subunit.\"ItsProjectEAR.ear\".\"ItsProjectCDI.war\".beanmanager]"
]
}
13:22:46,312 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "ItsProjectEAR.ear" with deployment "ItsProjectEAR.ear"
13:22:46,315 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "ItsProjectWEB.war" of deployment "ItsProjectEAR.ear"
service jboss.deployment.subunit."ItsProjectEAR.ear"."ItsProjectWEB.war".POST_MODULE
I'm not being able to understand what's happening here, the new project is identical to the old one, but injection won't succeed. What am I doing wrong?
I am trying to deploy jar file in Jboss fsw, however deployment fails with following message
POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Report.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "Report.jar"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]
Caused by: java.lang.NullPointerException
at org.switchyard.as7.extension.deployment.SwitchYardConfigProcessor$JBossPropertyResolver.set(SwitchYardConfigProcessor.java:106)
at org.switchyard.as7.extension.deployment.SwitchYardConfigProcessor$JBossPropertyResolver.access$000(SwitchYardConfigProcessor.java:87)
at org.switchyard.as7.extension.deployment.SwitchYardConfigProcessor.deploy(SwitchYardConfigProcessor.java:60)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
... 5 more
19:16:58,082 ERROR [org.jboss.as.server] (HttpManagementService-threads - 11) JBAS015870: Deploy of deployment "Report.jar" was rolled back with the following failure message:
{"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Report.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Report.jar\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"Report.jar\"
Caused by: java.lang.NullPointerException"}}
19:16:58,089 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment Report.jar (runtime-name: Report.jar) in 6ms
I was able to avoid this issue. It seems the issue was with the switchyard project structure which I created. I just recreated the project and this time I didn't get deployment issue !!