Java.lang.ClassNotFoundException:org.apache.axis2.transport.http.AxisAdminServlet__servlet

Source: Internet
Author: User

Http://hi.baidu.com/moonhai/blog/item/fa7ed402f741137c3812bbac.html

Step 1-windows--> Preferences--> Web Services--> Axis 2--> Select The valid location of the axis Distrib Ution.
Step 2-after Creating the Dynamic Web project and adding the axis support when your try to create the Web service, click O N Run time of the Apache axis by default its Apache axis choose Axis 2 instead.

Step3:go to the Web.xml of your Web project replace the below line I just changed this configuration.

<servlet>
    <display-name>apache-axis Admin servlet Web admin</display-name>
    < Servlet-name>axisadminservlet</servlet-name>
    <servlet-class> Org.apache.axis2.transport.http.axisadminservlet</servlet-class>
    <load-on-startup>100</ Load-on-startup>
  </servlet>



With

<servlet>
    <display-name>apache-axis Admin servlet Web admin</display-name>
    < Servlet-name>axisadminservlet</servlet-name>
    <servlet-class> Org.apache.axis2.webapp.axisadminservlet</servlet-class>
    <load-on-startup>100</ Load-on-startup>
  </servlet>



Step 4:you May is getting some of the errors/exceptions like class is not found ..... Actually by default WTP doesn ' t includes all jars ....
Look into the class name and use the site findjar.com give the class name it'll give the jar file name. So I go back to your axis dsitribution, copy that jar and place it into your Lib folder. It should work.

You are needed to redo the "step" 4 sevral time, but thats safest way-If you copy all the coz from axis lib to jars Web App Lib You-May-jars conflict as some of the jars May is availble in your server runtime.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.