[英]Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0024: Could not configure component
i'm trying to deploy my war in wildfly (JBOSS 8) but i have this error when deploying : 我正在尝试在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\
Here is my UpdateSubscriberInfoImpl.java
: 这是我的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);
}
}
Any idea ? 任何想法 ?
Problem is straight-forward. 问题是直截了当的。
Could not find default constructor for class com.project.UpdateSubscriberInfoImpl
You have used the @Inject
annotation for an arguments-constructor for UpdateSubscriberInfoImpl
class but you haven't provided a default non-args costructor. 您已将@Inject
批注用于UpdateSubscriberInfoImpl
类的参数构造函数,但尚未提供默认的非参数构造函数。
Please add a default constructor to your class. 请向您的班级添加默认构造函数。
public UpdateSubscriberInfoImpl() {
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.