Axis: No engine configuration file - aborting

蹲街弑〆低调 提交于 2019-12-11 06:48:33

问题


My application - which is a WAR file - calls different web services using Axis. Yesterday we had a strange error regarding to Axis client_config.wsdd file. When we restart the application server (Weblogic 10.3.2), application began to write error logs saying:

org.apache.axis.ConfigurationException: No engine configuration file - aborting!
    at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:175)
    at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
    at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
    at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
    at org.apache.axis.client.Service.getAxisClient(Service.java:104)
    at org.apache.axis.client.Service.<init>(Service.java:113)

However, there is a client_config.wsdd file in axis.jar. We restarted the application server, the error is gone. How could it be possible that axis couldn't file the wsdd file that is already in axis.jar? Should I do anything to prevent this situation happen again (like copying the same file to WEB-INF/classes or some other folder)?

Thank you


回答1:


I solved this by copying the client_config.wsdd file to WEB-INF/classes folder. Axis did not complaint yet :)




回答2:


Se puede solucionar pasando el Path al constructor de FileProvider

    EngineConfiguration engineConfiguration;
    try {
        engineConfiguration = new FileProvider("Path","client-config.wsdd");
        engine = new AxisClient(engineConfiguration);
    } catch (ConfigurationException e) {

    logger.debug("exception ",e);
    }


来源:https://stackoverflow.com/questions/9378963/axis-no-engine-configuration-file-aborting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!