Axis2 Web 服务错误:未找到 services.xml [英] Axis2 web service error: services.xml not found

查看:35
本文介绍了Axis2 Web 服务错误:未找到 services.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将一个简单的axis2 Web 服务部署到一个wso2 应用程序服务器上,但我不断收到错误:

I have been trying to deploy a simple axis2 web service onto a wso2 application server but I keep on getting the error:

错误:org.apache.axis2.deployment.DeploymentException:找不到服务的 services.xml 文件:/WSO2/wso2as-4.1.0/repository/deployment/server/axis2services/SomeService.aar

Error: org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the service: /WSO2/wso2as-4.1.0/repository/deployment/server/axis2services/SomeService.aar

但是,快速查看该 .aar 文件后发现 services.xml 文件确实根据需要包含在 META-INF 文件夹中.

However, a quick peek at that .aar file revealed that the services.xml file was indeed contained in the META-INF folder as needed.

什么会导致这样的错误,我该如何继续修复它?

What would cause such an error, and how do I proceed with fixing it?

推荐答案

这里最可能的问题 - aar 文件未正确打包 - 如果您提取 .aar 文件,则 META-INF 目录应该位于顶层..如果你能分享.aar文件那我可以看看..

Most possible issue here - the aar file is not packed correctly - if you extract out the .aar file then META-INF directory should be at the top level.. If you can share the .aar file then I can have look..

这篇关于Axis2 Web 服务错误:未找到 services.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆