Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

faulty service  RSS feed

 
y Sun
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error: org.apache.axis2.deployment.DeploymentException: Invalid services.xml found at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:150) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) 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(Unknown Source) at java.util.TimerThread.run(Unknown Source) Caused by: org.apache.axis2.AxisFault: Invalid services.xml found at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:111) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) ... 12 more

After I upload the .arr file it show me the error.
This is my services.xml file below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<servicegroup>
<service name="AccommodationServiceImpl" scope="application" targetNamespace="http://AccommodationServiceImpl/">
<description>AccommodationService</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<schema schemaNamespace="http://AccommodationServiceImpl/xsd" />
<parameter name="AccommodationServiceImpl">AccommodationServiceImpl</parameter>
</service>
<service name="AirlineServiceImpl" scope="application" targetNamespace="http://AirlineServiceImpl/">
<description>AirlineService</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
</messageReceivers>
<schema schemaNamespace="http://AirlineServiceImpl/xsd" />
<parameter name="AirlineServiceImpl">AirlineServiceImpl</parameter>
</service>
</servicegroup>

Which part is not correct?
 
Vijay Chandran
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1) How did you generate the services.xml? You used any tool or hand-written?
(2) Are you using Contract First/Code First approach when developing the WS?
(3) Can you find a way to enable axis2 DEBUG/TRACE logging so that we can figure out what exactly is happening when loading the services.xml file?
(4) Did you try placing the services.xml in META-INF directory inside your aar file?

Thanks,
Vijay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!