O meu problema é com web service e axis2… esta rodando corretamente, mas quando vou adicionar o arquivo .aar no painel de controle do axis2 esta ocorrendo um erro.
Estou gerando o arquivo .aar com o comando:
jar cvf solicitaPaciente.aar br/ META-INF/
E no axis 2 esta o seguinte:
Faulty Services
/home/lucas/projetos/dependencias/apache-tomcat-7.0.78/wtpwebapps/ServicosAppTransporte/WEB-INF/services/solicitaPaciente.aar
E no eclipse da o erro:
[ERROR] The solicitaPaciente.aar service, which is not valid, caused Two services cannot have same name. A service with the DaoSolicitacaoPaciente [file:/home/lucas/projetos/dependencias/apache-tomcat-7.0.78/wtpwebapps/ServicosAppTransporte/WEB-INF/services/solicitaPaciente.aar] name already exists in the system.
org.apache.axis2.AxisFault: Two services cannot have same name. A service with the DaoSolicitacaoPaciente [file:/home/lucas/projetos/dependencias/apache-tomcat-7.0.78/wtpwebapps/ServicosAppTransporte/WEB-INF/services/solicitaPaciente.aar] name already exists in the system.
at org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:499)
at org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:110)
at org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:524)
at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:380)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:172)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)
at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73)
at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:94)
at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
[INFO] org.apache.axis2.deployment.DeploymentException: Two services cannot have same name. A service with the DaoSolicitacaoPaciente [file:/home/lucas/projetos/dependencias/apache-tomcat-7.0.78/wtpwebapps/ServicosAppTransporte/WEB-INF/services/solicitaPaciente.aar] name already exists in the system.