我的jdk是1.6
tomcat是6.0
我安装后输入http://localhost:8080/
能现实正确的例子内容
我写的简单的jsp也能运行但我写的servlet就不能,总是出现the full stack trace of the root cause is  availavle in the Apache tomcat/6.0.16 logs
和the server encountered an internal error() that prevented it from fulfilling this request.大家帮忙分析一下,是配置问题吗?
谢谢!

解决方案 »

  1.   

    那是不是可以在本地上运行tomcat自带的那个例子文件夹里的东西就算是配置成功了呢?
      

  2.   

    应该是配置问题,仔细看下web.xml的配置
      

  3.   

    1 你的配置没问题,因为错误显示,你的servlet 运行了
    2 你的servlet 抛出了异常,比如空指针
    3 你为何不去看看错误日志呢? tomcat/logs/ 最新的一个.out文件,
      

  4.   

    看tomcat目录下log目录下的日志才能知道具体错误。实在搞不定,不如先看我们对servlet的教程咯http://family168.com/tutorial/jsp/html/jsp-ch-06.html
      

  5.   

    搞明白了,谢谢各位指点
    我的web-xml确实有问题
    再次谢谢各位了