Hi,

I am having one typical requirement where I need to write one Axis2 ADB
client inside sling 5 to consume one Web Service exposed by some other
application. But when I am trying to include Axis2 jar inside sling its
showing some strange behavior. My POM dependencies are as given below.

      <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom-api</artifactId>
                <version>1.2.7</version>
        </dependency>
 
        <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom-dom</artifactId>
                <version>1.2.7</version>
        </dependency>

        <dependency>
                <groupId>org.apache.ws.commons.axiom</groupId>
                <artifactId>axiom-impl</artifactId>
                <version>1.2.7</version>
        </dependency>

        <dependency>
             <groupId>org.apache.geronimo.specs</groupId>
             <artifactId>geronimo-javamail_1.4_spec</artifactId>
             <version>1.3</version>
             <scope>provided</scope>
        </dependency> 
        
        <dependency>
            <groupId>org.apache.ws.commons.neethi</groupId>
              <artifactId>neethi</artifactId>
              <version>2.0</version>
        </dependency>

        <dependency>
                <groupId>org.apache.woden</groupId>
                <artifactId>woden-api</artifactId>
                <version>1.0M8</version>
        </dependency> 
        
      <dependency>
                 <groupId>org.apache.woden</groupId>
                 <artifactId>woden-impl-dom</artifactId>
                 <version>1.0M8</version>
        </dependency>
        
       <dependency>
                <groupId>org.apache.ws.commons.schema</groupId>
                <artifactId>XmlSchema</artifactId>
                <version>1.4.2</version>
        </dependency>
  
        <dependency>
                <groupId>org.apache.axis2</groupId>
                <artifactId>org.apache.axis2.osgi</artifactId>
                <version>1.5</version>
        </dependency> 
        <dependency>
                 <groupId>xalan</groupId>
                 <artifactId>xalan</artifactId>
                 <version>2.7.0</version>
        </dependency>   
        <dependency>
                <groupId>stax</groupId>
                <artifactId>stax-api</artifactId>
                <version>1.0</version>
        </dependency>
        <dependency>
               <groupId>annogen</groupId>
               <artifactId>annogen</artifactId>
               <version>0.1.0</version>
        </dependency>  
        <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
        </dependency>

But whenever I am trying to consume the service it's throwing the following
error.

java.lang.NoClassDefFoundError: org/apache/axis2/databinding/ADBBean
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at
org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.findCla
ss(ModuleImpl.java:1515)
        at
org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDele
gation(ModuleImpl.java:508)
        at
org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.jav
a:58)
        at
org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadCla
ss(ModuleImpl.java:1405)
        at java.lang.ClassLoader.loadClass(Unknown Source)


If someone can put some light on the resolution of this will be of great
help.

Regards,
Sujoy Bhattacharjee

 
    
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4599 (20091112) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

Reply via email to