你的WEB.XML可能配置的有问题,导致应用启动出错,所以就访问不到了,你在DOS下用$tomcat_home/bin/startup.bat启动TOMCAT,看看有没有出错信息另外,你的web.xml改成这样试试看
<web-app>
<taglib>
<taglib-uri>/taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/defineVar.tld</taglib-location>
</taglib>
</web-app>
你要保证/WEB-INF/tlds/defineVar.tld文件的存在,并且是正确的
<web-app>
<taglib>
<taglib-uri>/taglib</taglib-uri>
<taglib-location>/WEB-INF/tlds/defineVar.tld</taglib-location>
</taglib>
</web-app>
你要保证/WEB-INF/tlds/defineVar.tld文件的存在,并且是正确的
不对<web-app>
</web-app>上面的东西不能去掉只有
<web-app>
</web-app>
不行