这肯定是servlet或filter写的有错啊,可能是个是不对,可能是servlet规范不匹配。你的把具体的error msg贴出来啊。有些问题是很奇怪的,可能在这台机器上能用,放到别的地方就不能用了,得看详细msg

解决方案 »

  1.   

    log里没有错误啊只有消息,就是什么时间启动了****,但没显示成功或失败
      

  2.   

    另外tomcat访问需要身份验证应该怎么做的?用户名密码以后要修改的话怎么修改呢?
      

  3.   

    web.xml文件如下:///////////////////
    <?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">
    <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>LoginServlet</servlet-name>
    <servlet-class>servlets.LoginServlet</servlet-class>
    </servlet>
    <filter>
    <filter-name>TomcatFormFilter</filter-name>
    <filter-class>filters.TomcatFormFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>TomcatFormFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/login.aspx</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
      

  4.   

    好像
    <servlet-mapping> 
    <servlet-name>LoginServlet </servlet-name> 
    <url-pattern>/login.aspx </url-pattern> 
    </servlet-mapping> 

    <filter> 之前吧
    具体看下web.xml的DTD中的各个标签顺序
      

  5.   

    Tomcat 5.0/confconf/tomcat-users.xml
    可以在这个文件里修改