When I try to access Services, Validate and Administration link on the URL http://localhost:82/SOAPDemo/
, where my Axis2 Web Application is deployed, it gives me the following error :
Servlet.init() for servlet AxisServlet threw exception
At the back-end, while apache tomcat 7 is being started in eclipse, it shows me the following warning :
[WARN] Unable to instantiate deployer org.apache.axis2.deployment.ServiceDeployer;
Set an environment variable AXIS2_HOME to the pathname of the extracted directory of Axis2 (Eg: /opt/axis2-1.8. 2). Linux users can alternatively run the setenv.sh file available in the AXIS2_HOME/bin directory to set the AXIS2_HOME environment variable to the Axis2 classpath.
Axis is RI of old JAX-RPC 1.1 , Axis 2 is implementation of new JAX-WS 2. x. Axis don't support Annotations , Axis 2 supports annotations so supports new way of developing webservice with annotations e.g @Webservice / @ Webmethod annotations.
The well known Apache Axis, and the the second generation of it, the Apache Axis2, are two Web Service containers that helps users to create, deploy, and run Web Services. Axis2 is avaialble in both Java as well as C, languages and details about each version can be found below.
I solved this by adding axis2-jaxws.jar in the classpath. You can integrate it with maven : http://mvnrepository.com/artifact/org.apache.axis2/axis2-jaxws
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With