• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis2 deployment faults when adding external libraries

 
pratyush shukla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am facing this error while trying to deploy my webservice .aar to axis2 on websphere. the webservices work fine without any external libraries but when an external library is referenced this error is shown.

i have tried using eclipse and exporting a jar and renaming it to .aar. i have also tried packaging the files into .aar directly using the cmd prompt(i.e. using jav -cvf command.). i have tried putting the external jar in
1. project home/lib
or
2. project home/ WEB-INF/ lib.

here is the exception:

Error: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: bin.com.newgen.HelloAarService 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.Timer$TimerImpl.run(Timer.java:296) Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: bin.com.newgen.HelloAarService at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:432) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:143) ... 11 more Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: bin.com.newgen.HelloAarService at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396) ... 13 more Caused by: org.apache.axis2.AxisFault: bin.com.newgen.HelloAarService at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.util.Utils.getServiceClass(Utils.java:804) at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:430) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388) ... 13 more Caused by: java.lang.ClassNotFoundException: bin.com.newgen.HelloAarService at java.lang.Class.forNameImpl(Native Method) at java.lang.Class.forName(Class.java:136) at org.apache.axis2.util.Loader.loadClass(Loader.java:261) at org.apache.axis2.util.Loader.loadClass(Loader.java:229) at org.apache.axis2.util.Utils.getServiceClass(Utils.java:801) ... 15 more
webservice fault.png
[Thumbnail for webservice fault.png]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!