java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet

转载 2011年01月24日 21:33:00

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

Step 1 - Windows --> preferences --> Web Services --> Axis 2 --> Select the valid location of the Axis distribution.
Step 2- After creating the dynamic web project and adding the axis support when you try to create the web service, click on run time of 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 我改了这个配置就好了。

<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 be getting some of the errors/exceptions like class not found.....Actually by default wtp doesn't includes all the jars....
Look into the class name, use the site findjar.com give the class name it will give the jar file name. So you go back to your axis dsitribution, copy that jar and place it into your lib folder. it should work.

You may be needed to redo the step 4 sevral time, but thats safest way coz if you copy all the jars from axis lib to your web app lib you may end up jars conflict as some of the jars may be availble in you server runtime.

相关文章推荐

找不到AxisAdminServlet类的解决方案

配置Eclipse,Eclipse自带了开发WebService的工具。 打开Eclipse-->点击菜单windows-->Preferences-->WebServices-->Axis2P...

Apache Axis2 环境搭配详解

   WebService概念:它可以让一个程序透明的调用互联网程序,不用管具体实现细节,只要WebService公开了服务接口,远程客户端就可以调用服务。Webservice基于HTTP协议,它是分...

java.lang.ClassNotFoundException: org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver

axis2 jar包详解及缺少jar包错误分析 axis2 jar包详解及缺少jar包异常分析   开发最小jar包集:   activation-1...
  • dos_186
  • dos_186
  • 2015年08月28日 14:43
  • 1409

java.lang.ClassNotFoundException: org.apache.axis2.transport.local.LocalTransportSender 解决问题

2013-07-31 12:11:15 [main] DEBUG context.AbstractContext : OnDemandLogger initialized for class org....

Axis2 webservice下出现org.apache.axis2.AxisFault报错问题

下面是一个service.xml                 Web Service例子                       com.axis2webservice...

AXIS2最简单客户端jar包说明及错误对照

参照网上的例子写了一个AXIS2的客户端例子,在此感谢各位前辈的无私奉献!同时也分享一下,供各位朋友指导! 服务端代码: import java.util.Random; public ...

ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet(亲测,管用!已经在这个网站解决好多问题了)

Stack Overflow QuestionsJobsTagsUsersBadges Ask Question _ Stack Overf...
  • zoucui
  • zoucui
  • 2016年07月01日 13:53
  • 936

axis2 webservice学习笔记

Axis2 创建webservice客户端和服务端   1、环境 Axis2:axis2-1.4.1(下载axis2-1.4.1-bin,并解压到指定路径) Eclipse:Eclipse J...

java.lang.ClassNotFoundException: org.apache.http.util.Args

问题解决:httpclient版本冲突,再maven工程中经常hu

HTTP Status 500 - (java.lang.ClassNotFoundException: org.apache.jsp.index_jsp)解决方法

HTTP Status 500 - (java.lang.ClassNotFoundException: org.apache.jsp.index_jsp)解决方法 错误提示如下: ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:java.lang.ClassNotFoundException: org.apache.axis2.transport.http.AxisAdminServlet
举报原因:
原因补充:

(最多只允许输入30个字)