Thursday, December 27, 2007

Getting error while deploying web service made using Axis2.1.3

Getting error while deploying web service made using Axis2.1.3

I have created a service archive file for the StockQuoteService example provided by the standard binary distribution o using ant generate.service method. I am deploying it in JBoss 4 and getting this error
Error: java.lang.NoSuchMethodError: javax.wsdl.Operation.getExtensibilityElements()Ljava/util/List; at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1241) at

The default "Version" service is working fine.

===============================


[ https://issues.apache.org/jira/browse/AXIS2-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ayondeep Datta closed AXIS2-3282.
---------------------------------

Resolution: Fixed
Fix Version/s: 1.3

I replaced wsdl4j.jar present in the lib of JBoss with the wsdl4j-1.6.2.jar and it resolved this issue.

ref

Second solution, Change the classloader for application to parentLast..
This will let the classloader have the piriority to load the application's jar first instead of server's jar.
:D