日期:2014-05-19  浏览次数:20748 次

关于Servlet中Myeclipse的问题 新手求助
之前没问题的 后来新建了一个包后, 启动tamcat 在IE输入URL 出现以下错误:
type Status report

message 

description The requested resource () is not available.

所有的都是成了这样了连index.jsp 都出来不了 希望大家帮帮忙啊 !谢谢了


下面是我的web.xml文件的内容:
其他的文件都在com.servlet.www包和com.session.www下 

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  <display-name></display-name>
 
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>VerifyCode</servlet-name>
  <servlet-class>com.servlet.www.VerifyCode</servlet-class>
  </servlet>
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>check</servlet-name>
  <servlet-class>com.servlet.www.check</servlet-class>
  </servlet>
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>Check</servlet-name>
  <servlet-class>com.servlet.www.Check</servlet-class>
  </servlet>
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>Avarible</servlet-name>
  <servlet-class>com.servlet.www.Avarible</servlet-class>
  </servlet>
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>MyRedirect</servlet-name>
  <servlet-class>com.servlet.www.MyRedirect</servlet-class>
  </servlet>
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>SessionDemo</servlet-name>
  <servlet-class>com.session.www.SessionDemo</servlet-class>
  </servlet>
  <servlet>
  <description>This is the description of my J2EE component</description>
  <display-name>This is the display name of my J2EE component</display-name>
  <servlet-name>SessionDemo1</servlet-name>
  <servlet-class>com.session.www.SessionDemo1</servlet-class>
  </servlet>

  <servlet-mapping>
  <servlet-name>VerifyCode</servlet-name>
  <url-pattern>/verifyCode</url-pattern>
  </servlet-mapping>
  <servlet-mapping><