照着其他默认的一些例子复制一个web.xml就是了

解决方案 »

  1.   

    不用配置,使用 http://127.0.0.1:8080/myWeb 打开即可
      

  2.   

    就是http://127.0.0.1:8080/myWeb不行才问的啊
      

  3.   

    http://localhost:8080/myWeb/aa.txt
    ----------------------------------------type Status report
    message /myWeb/aa.txtdescription The requested resource (/myWeb/aa.txt) is not available.
      

  4.   

    myWeb目录下必须存在目录WEB-INF和其下的web.xml文件.myWeb\
         +WEB-INF\
                  web.xml (文件)
          页面(JSP,HTM,HTML,...)
      

  5.   

    在conf\Catalina\localhost下新建一个xml文件<Context path="/***" docBase="%TOMCAT_HOME%\webapps\myWeb" debug="0" privileged="true"></Context>注明:%TOMCAT_HOME%\webapps\myWeb要写绝对路径,***指你网站的名称,即http://127.0.0.1:8080/***