Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Done
-
2016.12.0
-
None
Description
I have a very small project, basically just a pom.xml with packaging war and a mostly-empty src/main/webapp/WEB-INF/web.xml. The project depends on two fractions: cdi and remoting.
When I build it using mvn clean package and run with java -jar xxx-swarm.jar, it starts just fine. But when I want to run it using mvn clean wildfly-swarm:run (which does wildfly-swarm:package under the hood), it fails with
2016-12-02 14:00:29,355 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 5) WELD-000119: Not generating any bean definitions from org.wildfly.swarm.cdi.config.runtime.InjectStageConfigExtensionFactory because of underlying class loading error: Type org.wildfly.swarm.cdi.config.runtime.InjectStageConfigExtensionFactory from [Module "org.wildfly.swarm.cdi.config:deployment" from BootModuleLoader@14cd1699 for finders [BootstrapClasspathModuleFinder, BootstrapModuleFinder(org.wildfly.swarm.bootstrap:main), ClasspathModuleFinder, ContainerModuleFinder(swarm.container:main), ApplicationModuleFinder(swarm.application:main), org.wildfly.swarm.bootstrap.modules.DynamicModuleFinder@77888435]] not found. If this is unexpected, enable DEBUG logging to see the full error. 2016-12-02 14:00:29,516 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service jboss.deployment.unit."reproducer.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."reproducer.war".WeldStartService: Failed to start service ... Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type SocketBindingGroup with qualifiers @Named at injection point [BackedAnnotatedField] @Inject @Named private org.wildfly.swarm.remoting.runtime.RemotingLegacyConnectorCustomizer.group at org.wildfly.swarm.remoting.runtime.RemotingLegacyConnectorCustomizer.group(RemotingLegacyConnectorCustomizer.java:0)