0

我是使用 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>

同样在我的控制台窗口中,当我运行本地主机时,我收到此错误:-

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

0 回答 0