别的JSP文件能访问,index.jsp不能访问,出现如下错误:
如果把index.jsp改成index1.jsp则能正常访问!
系统是win2003!

解决方案 »

  1.   

    index.jsp中有些需要的变量没有从上页传过来。
    请检查你的index.jsp文件中是否有需要接收变量的语句。
    或者你把代码贴上来看看
      

  2.   

    另外,你的TOMCAT安装完毕后自己没做修改。
    系统自动默认的去寻找刚刚安装完的那个index.jsp(即TOMCAT自带的)
    请修改WEB.XML
      

  3.   

    就是要打开那个TOMCAT自带的那个主页啊,是解压完就应该能打开的啊!
      

  4.   

    换一个tomcat版本
    看看行不行
    我有一次发现tomcat5.0.28
    居然不好用!!!!!!!!!!!!
    换一个tomcat5,0,27就好了
      

  5.   

    你的TOMCAT安装完毕后自己没做修改?你没有修改相关配置文件下的东西,还是index.jsp有冲突
      

  6.   

    换过几个版本了,都一样,servlets-examples和jsp-examples都可以用,自己做的JSP也都可以用,就是http://127.0.0.1:8080打不开,出现上面所说的错误!
      

  7.   

    唉...5.0.*的tomcat中ROOT/WEB-INF/web.xml,你看一下就明白了,他把这个index.jsp给mapping了,其实用的servlet .
      

  8.   

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
      Copyright 2004 The Apache Software Foundation  Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
    --><web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">  <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
    <!-- JSPC servlet mappings start -->    <servlet>
            <servlet-name>org.apache.jsp.index_jsp</servlet-name>
            <servlet-class>org.apache.jsp.index_jsp</servlet-class>
        </servlet>    <servlet-mapping>
            <servlet-name>org.apache.jsp.index_jsp</servlet-name>
            <url-pattern>/index.jsp</url-pattern>
        </servlet-mapping><!-- JSPC servlet mappings end --></web-app>
      

  9.   

    是不是win2003的问题?
    我在2003下resin就运行不起来!
      

  10.   

    可能是你使用了JSP TAG
    比如<jsp:forward path="" />
    和<jsp:forward path="" ></jsp:forward>
    这两种写法结果不一样
    有的时候是有问题的,我以前遇到过一次
      

  11.   

    是不是用了servlet,觉得是web.xml中配置问题
      

  12.   

    把classpath环境变量清空,sdk删除重装!