日期:2014-05-19  浏览次数:20675 次

求助,在线等.axis2!!!!
各位大侠,我现在做了一个程序,是通过 fatjar这个插件导出的jar... 现在因为要做webservice. 按照要求,我已经在项目中的src下创建了一个meta-inf的文件,并且底下有services.xml 再导jar的时候,也已经选上这个文件夹

 按照进一步要求,我要将导出好的jar改为aar(而且小菜也试过,直接在导出过程中修改后缀名的方式)... 然后再放进tomcat的D:\apache-tomcat-6.0.29\webapps\axis2\WEB-INF\services 中. 而且小菜也用压缩软件检查了一下,此时的 arr 中 已经有了services.xml 。 当我重新启动tomcat时,报错。。说 services.xml 不能在D:\apache-tomcat-6.0.29\webapps\axis2\WEB-INF\services\Email_fat.arr 中找到....

求教各位大侠...

Java code

信息: Deploying web application archive axis2.war
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/addressing-1.5.2.mar
[INFO] Deploying module: jaxws-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.5.2.mar
[INFO] Deploying module: metadataExchange-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/mex-1.5.2.mar
[INFO] Deploying module: mtompolicy-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/mtompolicy-1.5.2.mar
[INFO] Deploying module: ping-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/ping-1.5.2.mar
[INFO] Deploying module: script-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/scripting-1.5.2.mar
[INFO] Deploying module: soapmonitor-1.5.2 - file:/D:/apache-tomcat-6.0.29/apache-tomcat-6.0.29/webapps/axis2/WEB-INF/modules/soapmonitor-1.5.2.mar
org.apache.axis2.deployment.DeploymentException: The services.xml file cannot be found for the service: D:\apache-tomcat-6.0.29\apache-tomcat-6.0.29\webapps\axis2\WEB-INF\services\Email_fat.aar
    at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:150)
    at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)
    at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
    at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
    at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337)
    at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241)
    at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
    at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
    at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
    at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
    at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4350)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4659)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.l