Hi,

 

I am told to try integrating a ADB client Stub (generated with Axis2 version
1.6.1) into a web application (installed on WebSphere 7) wich already
contains in its classpath the jars of Axis1 version 1.4. 

The reason is that we are having problems generating a Axis1 web service
client from the WSDL of a new Axis2 web service (we have to edit the WSDL in
a file to make it compatible and the code generated is not satisfying). 

 

I integrated the Axis2 jars and stub in the web application and I am having
this error on runtime :

 

java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:37)

                at java.lang.reflect.Method.invoke(Method.java:611)

                at
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397
)

                at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:1
86)

                at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)

                ... 34 more

Caused by: 

java.lang.InstantiationError: org.apache.axis2.databinding.ADBDataSource

                at
com.nm.bdl.webservices.ged.client.GetGedFileStub$GetFile.getOMElement(GetGed
FileStub.java:2305)

 

 

The stub method getOMElement code sample :

public org.apache.axiom.om.OMElement getOMElement ( final
javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory
factory) throws org.apache.axis2.databinding.ADBException{

 

org.apache.axiom.om.OMDataSource dataSource = new
org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);

return factory.createOMElement(dataSource,MY_QNAME);

}

 

Is “mixing up” Axis2 and Axis1 jars in the classpath can’t work ?

 

 

Alaeddine HAOUAS
+33(4) 95 04 32 49
 <mailto:j.thou...@nouvellemarque.com> a.hao...@nouvellemarque.com

Nouvelle MARQUE
13 rue Sénac de Meilhan
13001 MARSEILLE
 <http://www.nouvelle-marque.com/> http://www.nouvelle-marque.com

 

 

Reply via email to