[英]how to fix org.jboss.as.server.deployment.DeploymentUnitProcessingException?
[英]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.