Http Status 404,Servlet不可用

时间:2012-10-30 08:33:49

标签: java web-services java-ee tomcat axis2

我是使用AXIS 2,Tomcat 6,Java EE,eclipse(Juno)创建Web服务的新手。 我的工作区中有2个项目。其中一个工作正常,另一个工作正常 不起作用,所以我猜测某些库的路径已经坏了。

所以当我在服务器上运行这个不工作的项目时,这个页面打开没有任何 错误

  

本地主机:8080 /项目名/

它有3个选项服务,验证,管理。然后如果我进入服务我得到404,验证给我500,管理再次给我404错误。

Web.xml中

 <?xml version="1.0" encoding="UTF-8"?>
 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://java.sun.com/xml/ns/javaee" 
 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
 <display-name>AdBoxWSProject</display-name>
 <welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
<welcome-file>/axis2-web/index.jsp</welcome-file>

 <servlet>
  <display-name>Apache-Axis Servlet</display-name>
  <servlet-name>AxisServlet</servlet-name>
  <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>AxisServlet</servlet-name>
  <url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>AxisServlet</servlet-name>
  <url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
  <servlet-name>AxisServlet</servlet-name>
  <url-pattern>/services/*</url-pattern>
</servlet-mapping>
<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>
<servlet-mapping>
  <servlet-name>AxisAdminServlet</servlet-name>
  <url-pattern>/axis2-admin/*</url-pattern>
</servlet-mapping>
<servlet>
  <display-name>SOAPMonitorService</display-name>
  <servlet-name>SOAPMonitorService</servlet-name>
  <servlet-class>
       org.apache.axis2.soapmonitor.servlet.SOAPMonitorService
     </servlet-class>
  <init-param>
    <param-name>SOAPMonitorPort</param-name>
    <param-value>5001</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>

       SOAPMonitorService

   <url-pattern>/SOAPMonitor</url-pattern>

       Axis Admin Servlet     AdminServlet

   <servlet-class>org.apache.axis.transport.http.AdminServlet</servlet-class>

    <load-on-startup>100</load-on-startup>

    </servlet>
    <servlet-mapping>
     <servlet-name>AdminServlet</servlet-name>
     <url-pattern>/servlet/AdminServlet</url-pattern>
   </servlet-mapping>
     </web-app>

当我运行localhost时,在我的控制台窗口中,我收到此错误: -

       Oct 30, 2012 2:33:42 PM org.apache.catalina.core.StandardWrapperValve invoke
       INFO: Servlet AxisAdminServlet is currently unavailable

0 个答案:

没有答案