Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LocalTransportSender not found when using web services

I am not a big fan of web services, but sometimes you have to conform with a client interface. I have successfully generated code from the the provided WSDLs, but when I try and run the application which actually uses the generated classes, I get the following:

java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender

I am keeping the generated code in a separate project and have the following dependencies in my pom:

<dependencies>
  <dependency>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-adb</artifactId>
    <version>1.6.1</version>
    <scope>compile</scope>
  </dependency>
  <dependency>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-kernel</artifactId>
    <version>1.6.1</version>
    <scope>compile</scope>
  </dependency>
</dependencies>

As stated, the jar gets generated without any issues, but when it is includes in the application that makes use of it, I get the said exception.

Any ideas?

like image 720
Jaco Van Niekerk Avatar asked Nov 23 '11 16:11

Jaco Van Niekerk


1 Answers

Adding below dependency would probably should solve this problem.

<dependency>
  <groupId>org.apache.axis2</groupId>
  <artifactId>axis2-transport-local</artifactId>
  <version>1.6.2</version>
</dependency>
like image 178
user1429957 Avatar answered Oct 03 '22 22:10

user1429957