日期:2014-05-17  浏览次数:20611 次

java web开发中Tomecat问题
刚开始学习web开发,写了一个小案例----
myweb:1.WEB-INF 1.1.web.xml 1.2.classes 1.3.lib  
  2.PAGES 2.1.index.html  
然后将其打包 jar cvf myweb.jar .
接着将压缩包部署到Tomecat的webapps文件夹下
启动Tomecat
在浏览器中输入:http://localhost:8080/myweb/PAGES/index.html
报出了如下错误,该怎么解决?

HTTP Status 404 - /myweb/PAGES/index.html

--------------------------------------------

type Status report

message /myweb/PAGES/index.html

description The requested resource (/myweb/PAGES/index.html) is not available.


--------------------------------------------

Apache Tomcat/7.0.26

------解决方案--------------------
web项目是war,而不是jar