簡體   English   中英

引起原因:org.jboss.as.server.deployment.DeploymentUnitProcessingException:WFLYEE0024:無法配置組件

[英]Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component

我正在嘗試在Wildfly(JBOSS 8)中部署我的戰爭,但部署時出現此錯誤:

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component com.project.UpdateSubscriberInfoImpl
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0048: Could not find default constructor for class com.project.UpdateSubscriberInfoImpl\

這是我的UpdateSubscriberInfoImpl.java

@WebService(
    serviceName = "UpdateSubscriberInfo",
    portName = "UpdateSubscriberInfoSOAP",
    targetNamespace = "http://myproject.com",
    endpointInterface = "com.project.UpdateSubscriberInfo")
@SchemaValidation
@GuiceManaged(modules = {ProjectWSModule.class})
public class UpdateSubscriberInfoImpl implements UpdateSubscriberInfo {

private final WsUtils wsUtils;
private final UpdateSubscriberInfoWsDataProcessor wsDataProcessor;

@Inject
public UpdateSubscriberInfoImpl(WsUtils wsUtils, UpdateSubscriberInfoWsDataProcessor updateSubscriberInfoWsDataProcessor) {
    this.wsUtils = wsUtils;
    wsDataProcessor = updateSubscriberInfoWsDataProcessor;
}

public UpdateSubscriberInfoResponse updateSubscriberInfo(UpdateSubscriberInfoRequest updateSubscriberInfoRequest) {
    return wsUtils.executeWsProcess(updateSubscriberInfoRequest, ServiceOperation.UPDATE_SUBSCRIBER, null, wsDataProcessor);
}
}

任何想法 ?

問題是直截了當的。

Could not find default constructor for class com.project.UpdateSubscriberInfoImpl

您已將@Inject批注用於UpdateSubscriberInfoImpl類的參數構造函數,但尚未提供默認的非參數構造函數。

請向您的班級添加默認構造函數。

public UpdateSubscriberInfoImpl() {

}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM