You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by kun xu <xu...@yahoo.com.cn> on 2006/05/09 10:50:48 UTC

回复: Re: services.xml not found for service

Hi All,
  
  I found the root cause. That's my careless error. 
  
  Test.aar----
             |
             ----Test
                      |
                      ----test.java
                      |
                       ----META-INF/services.xml
  
  One more layer in my aar file.  My careless error when jar my package.
  
  Thanks for your advise.  
  Best regards.
  
  Alex

Deepal Jayasinghe <de...@opensource.lk> 写道:  Hi Kun;

Where did you include your services.xml (is it inside
META-INF/services.xml). To get a better understanding pls have a look at
version.aar or user guide.


yourservice.aar
META-INF
services.xml
org
apache
.....

kun xu wrote:

> Hi All,
>
> When I deploy a example webservice, met this exception see the log for
> more details.
> - Invalid service MyService.aar due to services.xml not found for
> service 'E:\Tomcat 5.0\webapps\axis2\WEB-INF\services\MyService.aar';
> nested exception is:
> org.apache.axis2.deployment.DeploymentException: services.xml not
> found for service 'E:\Tomcat
> 5.0\webapps\axis2\WEB-INF\services\MyService.aar'
> org.apache.axis2.deployment.DeploymentException: services.xml not
> found for service 'E:\Tomcat
> 5.0\webapps\axis2\WEB-INF\services\MyService.aar'; nested exception is:
> org.apache.axis2.deployment.DeploymentException: services.xml not
> found for service 'E:\Tomcat
> 5.0\webapps\axis2\WEB-INF\services\MyService.aar'
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:124)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
> at
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:199)
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61)
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
> at
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76)
> at java.util.TimerThread.mainLoop(Timer.java:447)
> at java.util.TimerThread.run(Timer.java:397)
> Caused by: org.apache.axis2.deployment.DeploymentException:
> services.xml not found for service 'E:\Tomcat
> 5.0\webapps\axis2\WEB-INF\services\MyService.aar'
> at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:121)
> ... 10 more
>
> I include the services.xml in the aar file, but failed.
> Tell your advice please.
> Here is some infos about my computer:
> java.assistive=ON java.runtime.name=Java(TM) 2 Runtime Environment,
> Standard Edition sun.boot.library.path=E:\eclipse\jre\bin
> java.vm.version=1.4.2
> shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
> java.vm.vendor=IBM Corporation java.vendor.url=http://www.ibm.com/
> path.separator=; java.vm.name=Classic VM file.encoding.pkg=sun.io
> Thanks in advance.
>
> Alex
>
> ------------------------------------------------------------------------
> 雅虎1G免费邮箱百分百防垃圾信 
> 雅虎助手-搜索、杀毒、防骚扰  


-- 
Thanks,
Deepal
................................................................
~Future is Open~ 




		
---------------------------------
 雅虎免费邮箱-3.5G容量,20M附件
 雅虎助手-搜索、杀毒、防骚扰