【发布时间】:2018-06-04 13:25:20
【问题描述】:
我正在尝试在 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);
}
}
有什么想法吗?
【问题讨论】:
标签: java web-services deployment wildfly