Thanks Martin for your answer.
I am precisely trying to implement your solution by helping me with this tutorial:
2018-06-11 16:36:40,795 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 1) WELD-000119: Not generating any bean definitions from com.mydomain.prf.flex.client.ResteasyTripClient because of underlying class loading error: Type org.apache.http.conn.HttpClientConnectionManager from [Module "deployment.flex.war" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error.
2018-06-11 16:36:42,452 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."flex.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."flex.war".WeldStartService: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1978)
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.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type TripClient with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject com.mydomain.prf.flex.mdw.Exporter.tripClient
at com.mydomain.prf.flex.mdw.Exporter.tripClient(Exporter.java:0)
at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:362)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:284)
at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:137)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:158)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:501)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:61)
at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:59)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)
at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
2018-06-11 16:36:42,477 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "flex.war")) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"flex.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type TripClient with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject com.mydomain.prf.flex.mdw.Exporter.tripClient
at com.mydomain.prf.flex.mdw.Exporter.tripClient(Exporter.java:0)
"}}
2018-06-11 16:36:42,490 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "flex.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"flex.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type TripClient with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject com.mydomain.prf.flex.mdw.Exporter.tripClient
at com.mydomain.prf.flex.mdw.Exporter.tripClient(Exporter.java:0)
"}}
2018-06-11 16:36:42,681 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0019: Host default-host stopping
2018-06-11 16:36:44,379 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment flex.war (runtime-name: flex.war) in 1892ms
2018-06-11 16:36:44,445 ERROR [stderr] (main) org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"flex.war\".WeldStartService" => "Failed to start service
2018-06-11 16:36:44,445 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type TripClient with qualifiers @Default
2018-06-11 16:36:44,446 ERROR [stderr] (main) at injection point [BackedAnnotatedField] @Inject com.mydomain.prf.flex.mdw.Exporter.tripClient
2018-06-11 16:36:44,446 ERROR [stderr] (main) at com.mydomain.prf.flex.mdw.Exporter.tripClient(Exporter.java:0)
2018-06-11 16:36:44,446 ERROR [stderr] (main) "}}
2018-06-11 16:36:44,446 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2018-06-11 16:36:44,447 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2018-06-11 16:36:44,447 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2018-06-11 16:36:44,447 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2018-06-11 16:36:44,454 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:473)
2018-06-11 16:36:44,455 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.main(Swarm.java:744)
2018-06-11 16:36:44,457 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2018-06-11 16:36:44,457 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2018-06-11 16:36:44,457 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2018-06-11 16:36:44,457 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:498)
2018-06-11 16:36:44,457 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:53)
2018-06-11 16:36:44,458 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:132)
2018-06-11 16:36:44,459 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:85)
2018-06-11 16:36:44,461 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"flex.war\".WeldStartService" => "Failed to start service
2018-06-11 16:36:44,461 ERROR [stderr] (main) Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type TripClient with qualifiers @Default
2018-06-11 16:36:44,461 ERROR [stderr] (main) at injection point [BackedAnnotatedField] @Inject com.mydomain.prf.flex.mdw.Exporter.tripClient
2018-06-11 16:36:44,461 ERROR [stderr] (main) at com.mydomain.prf.flex.mdw.Exporter.tripClient(Exporter.java:0)
2018-06-11 16:36:44,461 ERROR [stderr] (main) "}}
2018-06-11 16:36:44,462 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2018-06-11 16:36:44,462 ERROR [stderr] (main) ... 12 more