简体   繁体   English

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

[英]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.

相关问题 如何修复org.jboss.as.server.deployment.DeploymentUnitProcessingException? - how to fix org.jboss.as.server.deployment.DeploymentUnitProcessingException? 警告 [org.jboss.as.server.deployment](MSC 服务线程 1-4)WFLYSRV0003:无法索引类 - WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0003: Could not index class WildFly 部署错误 - DeploymentUnitProcessingException - WildFly Deployment Error - DeploymentUnitProcessingException 错误[org.jboss.as.server.deployment.scanner](DeploymentScanner线程-1) - ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYEE0043:组件已停止 - 这是什么意思,为什么组件 (@Stateless EJB) 可以停止? - WFLYEE0043: Component is stopped - what does it mean, why could a component (@Stateless EJB) be stopped? 无法加载请求的 class:org.hibernate.dialect.DB2 在 ZAF0D72D3DA9E774B7420Z 部署时间73267 - Could not load requested class : org.hibernate.dialect.DB2 at JBOSS deployment time Jboss服务器中的RMI部署 - RMI deployment in Jboss server jboss服务器中战争部署失败 - war deployment failed in jboss server 无需重新启动服务器即可进行JBoss部署 - JBoss deployment without restarting server 错误[org.jboss.msc.service.fail](MSC服务线程1-6)MSC00001:无法启动服务jboss.deployment.subunit。“ a.ear”。“ b.jar” .component - ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit.“a.ear”.“b.jar”.component
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM