那你就建一个目录,然后吧SERVEL.XML下的ROOT改为你自己的目录名字!就可以了!

解决方案 »

  1.   

    清除tomcat缓存文件试试,tomcat\work\Standalone
      

  2.   

    配置虚拟路径(配置%Tomcat%\conf目录下的server.xml文件):
    <Context path="/MYAPP" docBase="c:\myapp" debug="0" reloadable="true"/>path : 指在IE地址栏内的访问地址,本处如:http://localhost:8080/MYAPP
    docBase : 你的应用的文件所在目录,本处如:c:\myapp
      

  3.   

    "把自己的静态页面放在root下,重新启动tomcat,仍然看不到这个静态页面"删除work目录下的所有东西即可.访问路径: http://localhost:8080/静态页面名.扩展名
      

  4.   

    可能跟我的问题一样,同样的静态页,格式为.html就正常(说明虚拟目录设置正常),但格式为.jsp就会提示:HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPNo Java compiler was found to compile the generated source for the JSP. 
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK 
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart. 
    If using an alternate Java compiler, please check its installation and access path. org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:128)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:351)
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:413)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    --------------------------------------------------------------------------------Apache Tomcat/5.0.12谁有遇到,怎么解决?