CDI Extension issue in wildfly 26.1.3
by Ramamoorthy Krishna Reddy
I'm upgrading project from WF12 to W26.1.3. I was able to build and deploy to my local dev and don't see any issues. When it moved to higher environment I'm getting following error,
"(DeploymentScanner-threads - 1) WFLYCTL0013: Operation (\"deploy\") failed - address: ([(\"deployment\" => \"ContentStream.war\")]) - failure description: {\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\\\"ContentStream.war\\\".WeldStartService\" => \"Failed to start service\n Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 2 exceptions:\nException 0 :\norg.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type MetadataResultService with qualifiers @Default\n at injection point [UnbackedAnnotatedField] @Inject private com.test.metadata.rest.MetadataResultResourceV1.metadataResultService\n\nException 1 :\norg.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type PingDetailService with qualifiers @Default\n at injection point [UnbackedAnnotatedField] @Inject com.test.ping.rest.PingDetailResourceV1.pingDetailService\n\n\"}}",
"logtype":"wildfly-main-filteredlog",
Please find the piece of code here,
import javax.inject.Inject;
@Path("/v1/ping")
@Api(value = "/v1/ping", tags = "Ping Details")
public class PingDetailResourceV1 extends CommonResource {
/** The ProductDetailService. */
@Inject
PingDetailService pingDetailService;
Please suggest me if I'm missing something here.
Thanks,
Ram