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
Enhancing your expertise in Java, Kubernetes, Spring Boot, AWS, BTC, and ETH can significantly elevate your career prospects in the ever-evolving tech industry. Welcome to my blog, where I share insights and resources to help you master these key technologies and stay ahead of the curve. Enhance your tech skills with insights on Java, Kubernetes, Spring Boot, AWS, BTC, and ETH. Master advanced topics and stay updated with practical tips and tutorials!