"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined

971 views
Skip to first unread message

Matheus Daguetti

unread,
Apr 18, 2024, 1:54:21 PM4/18/24
to WildFly
Hello guys, I'm a newbie in WildFly and I inherited some projects that uses it.

All the projects are running fine in the Manager Console that is set in a Linux VM. 

The previous dev used linux too as his localhost.

I moved all 3 projects to my Windows workstation and, since then, 1 of them does not run anymore when trying do debug.

I searched for key words, the entire error, tried Chat GPT but couldn't find a solution.

Here is the full StackTrace when I star wildfly:

11:58:41,044 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final
11:58:41,222 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
11:58:41,291 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting
11:58:42,192 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment empresa_02.war
11:58:42,352 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found empresa_02.war in deployment directory. To trigger deployment create a file called empresa_02.war.dodeploy
11:58:42,681 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
11:58:42,692 INFO  [org.xnio] (MSC service thread 1-4) XNIO version 3.4.0.Final
11:58:42,698 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.4.0.Final
11:58:42,718 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
11:58:42,750 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
11:58:42,755 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
11:58:42,756 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
11:58:42,756 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 12 core threads with 96 task threads based on your 6 available processors
11:58:42,759 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
11:58:42,780 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
11:58:42,841 INFO  [org.jboss.as.security] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=4.9.6.Final
11:58:42,855 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 4.0.21.Final
11:58:42,863 INFO  [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final)
11:58:42,865 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
11:58:42,869 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = h2
11:58:42,915 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 1.4.0.Final starting
11:58:42,918 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
11:58:42,919 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
11:58:43,024 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path 'C:\Users\manutencao\services\wildfly-10.1.0.e2/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
11:58:43,033 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0012: Started server default-server.
11:58:43,035 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0018: Host default-host starting
11:58:43,049 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 96 (per class), which is derived from thread worker pool sizing.
11:58:43,050 INFO  [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 24 (per class), which is derived from the number of CPUs on this host.
11:58:43,201 WARN  [org.jboss.as.domain.management.security] (MSC service thread 1-3) WFLYDM0111: Keystore C:\Users\manutencao\services\wildfly-10.1.0.e2\standalone\configuration\application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
11:58:43,219 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) WFLYDS0013: Started FileSystemDeploymentService for directory C:\Users\manutencao\services\wildfly-10.1.0.e2\standalone\deployments
11:58:43,227 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "postgresql-42.1.4.jar" (runtime-name: "postgresql-42.1.4.jar")
11:58:43,227 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "postgresql-42.1.1.jar" (runtime-name: "postgresql-42.1.1.jar")
11:58:43,237 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "empresa_02.war" (runtime-name: "empresa_02.war")
11:58:43,346 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-7) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.4.Final
11:58:43,383 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 62) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
11:58:43,384 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 62) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
11:58:43,391 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 63) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
11:58:43,391 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 63) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
11:58:43,394 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 62) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
11:58:43,397 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 62) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
11:58:43,870 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8082
11:58:43,982 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
11:58:44,503 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8445
11:58:44,665 INFO  [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBossWS 5.1.5.Final (Apache CXF 3.1.6)
11:58:45,076 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 42.1)
11:58:45,091 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = postgresql-42.1.4.jar
11:58:45,117 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0003: Could not index class META-INF/versions/9/module-info.class at /C:/Users/manutencao/services/wildfly-10.1.0.e2/standalone/deployments/empresa_02.war/WEB-INF/lib/assertj-core-3.24.2.jar: java.lang.IllegalStateException: Unknown tag! pos=5 poolCount = 79
at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:1416)
at org.jboss.jandex.Indexer.index(Indexer.java:1450)
at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)
at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

11:58:45,157 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 42.1)
11:58:45,172 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0001: Bound data source [java:/empresa02DS]
11:58:45,177 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = postgresql-42.1.1.jar
11:58:48,568 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jaxb-api.jar in /C:/Users/manutencao/services/wildfly-10.1.0.e2/standalone/deployments/empresa_02.war/WEB-INF/lib/jaxb-impl-2.1.13.jar  does not point to a valid jar for a Class-Path reference.
11:58:48,568 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry activation.jar in /C:/Users/manutencao/services/wildfly-10.1.0.e2/standalone/deployments/empresa_02.war/WEB-INF/lib/jaxb-impl-2.1.13.jar  does not point to a valid jar for a Class-Path reference.
11:58:48,568 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jsr173_1.0_api.jar in /C:/Users/manutencao/services/wildfly-10.1.0.e2/standalone/deployments/empresa_02.war/WEB-INF/lib/jaxb-impl-2.1.13.jar  does not point to a valid jar for a Class-Path reference.
11:58:48,568 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0059: Class Path entry jaxb1-impl.jar in /C:/Users/manutencao/services/wildfly-10.1.0.e2/standalone/deployments/empresa_02.war/WEB-INF/lib/jaxb-impl-2.1.13.jar  does not point to a valid jar for a Class-Path reference.
11:58:48,863 INFO  [org.jboss.as.jpa] (MSC service thread 1-7) WFLYJPA0002: Read persistence.xml for localhost
11:58:49,539 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'empresa_02.war#localhost'
11:58:49,569 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 63) HHH000204: Processing PersistenceUnitInfo [
name: localhost
...]
11:58:49,590 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment empresa_02.war
11:58:49,669 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-7) HV000001: Hibernate Validator 5.2.4.Final
11:58:49,673 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 63) HHH000412: Hibernate Core {5.0.10.Final}
11:58:49,675 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 63) HHH000206: hibernate.properties not found
11:58:49,676 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 63) HHH000021: Bytecode provider name : javassist
11:58:49,715 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 63) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
11:58:49,797 INFO  [org.apache.deltaspike.core.util.ProjectStageProducer] (MSC service thread 1-7) Computed the following DeltaSpike ProjectStage: Production
11:58:49,815 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."empresa_02.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."empresa_02.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "empresa_02.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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: br.com.global5.infra.bean.DynamicImage from [Module "deployment.empresa_02.war:main" from Service Module Loader]
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:292)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:153)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:104)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.ClassNotFoundException: br.com.global5.infra.bean.DynamicImage from [Module "deployment.empresa_02.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)
at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:290)
... 8 more

11:58:49,821 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "empresa_02.war")]) - failure description: {
    "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"empresa_02.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"empresa_02.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"empresa_02.war\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.lang.ClassNotFoundException: br.com.global5.infra.bean.DynamicImage from [Module \"deployment.empresa_02.war:main\" from Service Module Loader]
    Caused by: java.lang.ClassNotFoundException: br.com.global5.infra.bean.DynamicImage from [Module \"deployment.empresa_02.war:main\" from Service Module Loader]"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"empresa_02.war\".POST_MODULE"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
11:58:49,838 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "postgresql-42.1.4.jar" (runtime-name : "postgresql-42.1.4.jar")
11:58:49,838 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "postgresql-42.1.1.jar" (runtime-name : "postgresql-42.1.1.jar")
11:58:49,838 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "empresa_02.war" (runtime-name : "empresa_02.war")
11:58:49,840 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."empresa_02.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."empresa_02.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "empresa_02.war"

11:58:50,006 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9992/management
11:58:50,006 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9992
11:58:50,006 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started (with errors) in 9262ms - Started 444 of 702 services (1 services failed or missing dependencies, 412 services are lazy, passive or on-demand)
11:58:50,044 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 22) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'empresa_02.war#localhost'
11:58:50,256 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0028: Stopped deployment empresa_02.war (runtime-name: empresa_02.war) in 215ms
11:58:50,299 WARN  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address []
11:58:50,301 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "empresa_02.war" (runtime-name: "empresa_02.war")
11:58:50,301 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."empresa_02.war".POST_MODULE

11:58:54,886 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found empresa_02.war in deployment directory. To trigger deployment create a file called empresa_02.war.dodeploy

Wolfgang

unread,
Apr 18, 2024, 2:36:42 PM4/18/24
to WildFly
Hi,

so you are using WildFly 10, a rather old version? Which java version do you use to run it?
There is a Jandex error about "module-info.class", which sounds as if you are using Java 9 or newer to compile the project? See https://stackoverflow.com/questions/52183207/could-not-index-class-module-info-class-atlog4j-api-jar-java-lang-illegalstatee
Though this should probably be only a warning, it sounds like a java version conflict.

The main error is "java.lang.ClassNotFoundException: br.com.global5.infra.bean.DynamicImage from [Module 'deployment.empresa_02.war:main']". Is this class contained in your deployed war file?

Best regards

Wolfgang

Matheus Daguetti

unread,
May 13, 2024, 3:07:25 PM5/13/24
to WildFly
Hello,

I'm using WF 10.1.0 and JDK/JRE 1.8.0_211 (Java 8 Update 211).
Eclipse is confgured to use this JDK and the project itself used to run OK in these conditions.

I tried reinstalling WF and Java, but the problem still going and stacktrace haven't change a comma.

If there's somehing else I could try, please tell me.

Wolfgang

unread,
May 13, 2024, 4:08:17 PM5/13/24
to WildFly
Interesting, "assertj-core-3.24.2.jar" seems to be built with Java 1.8, but one class file ("META-INF/versions/9/module-info.class") might be compiled with a newer version. A similar error occurs if I extract this file and use the JDK 11 "javap" command, which should decompile the class file:

javap -verbose module-info.class  
Error: error while reading constant pool for module-info.class: unexpected tag at #6: 19

So Jandex does not seem to be able to handle this file. Could you rebuild "assertj-core-3.24.2.jar" without this "module-info.class"?
But as I wrote before, this is hopefully only a warning that should not have an effect on the real error.

The main problem is that "br.com.global5.infra.bean.DynamicImage from [Module "deployment.empresa_02.war:main"" is not found. Did you verify that the WAR file that you deployed to WildFly contains this class file? Could you post a screenshot of the content of this file?

James Perkins

unread,
May 13, 2024, 4:52:37 PM5/13/24
to WildFly
As Wolfgang said, this is a pretty old version. That said the error looks like you've got a javax.ws.rs.Application servlet defined in the web.xml which cannot be found.
Reply all
Reply to author
Forward
0 new messages