Thursday, December 4, 2008

Error While invoking webservices in WASv5.1.*

This post may not be of much importance as this talks about a possible error while invoking webservices by the applications running in WAS version 5. (This is already obsolete, and most of the apps are now migrated to higher versions). Just in case, if anyone faces this error, will be useful (No information is available in Web).

When a webservice is invoked from the application running in WASv5.1.1.5, if the below error is being seen.

org.omg.CORBA.portable.UnknownException: vmcid: 0x0 minor code: 0 completed: Maybe

caused by
java.lang.NoSuchMethodError: method (Ljavax/xml/namespace/QName;BLjavax/xml/namespace/QName;Ljava/lang/Class;ZZZZ)V not found

This is because of the version of the jar files used - webservices.jar and wsdl4j.jar. Check the versions being used in the app server lib folder. And replace with the right versions containing the above definition of method.

ParameterDesc is a class inside webservices.jar and has a constructor with 8 arguements, which is not found in the above case.
Also, the QName is referred to javax.xml.namespace package instead of appropriate package as defined in wsdl4j.jar. As it is not able to resolve the right package, defaults to javax package for QName.

Hope this helps.

1 comment:

  1. Thank you very much for listing this vague error and its solution. It helped me in reducing the troubleshooting time to almost nothing.