http://localhost:8080 有显示吗?
还有 http://localhost:8080/WelCom 怎么缺了个e

解决方案 »

  1.   

    <web-app>
     <servlet>
                  <servlet-name>WelCome</servlet-name>
                  <servlet-class>WelCome</servlet-class>
         </servlet>
          <servlet-mapping>
                 <servlet-name>WelCome</sevlet-name>
                  <url-pattern>/WelCome</url-pattern>   
            </servlet-mapping> 
    </web-app>
      

  2.   

    HTTP Status 404 - /WelCome--------------------------------------------------------------------------------type Status reportmessage /WelComedescription The requested resource (/WelCome) is not available.
    --------------------------------------------------------------------------------Apache Tomcat/4.1.31
    上面是报错
      

  3.   

    检查一下类得路径对没有,假如location是类的位置,web.xml里应该是
     <servlet-class>location/WelCome</servlet-class>
      

  4.   

    参考http://www.itpub.net/226990.html另外,修改web.xml后最好重启一下Tomcat
      

  5.   

    那是不是
    <web-app>
     <servlet>
                  <servlet-name>WelCome</servlet-name>
                  <servlet-class>WelCome</servlet-class>
         </servlet>
          <servlet-mapping>
                 <servlet-name>WelCome</sevlet-name>
                  <url-pattern>/WelCome</url-pattern>   
            </servlet-mapping> 
    </web-app>
    加在web.xml的任何一个位置都可以啊