|
|
我的server.xml有这么一句,
<Host name="localhost" debug="0" appBase="/home/tomcatweb"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
没有<Context></Context>
然后我在/home/tomcatweb下建了一个工程,目录为blog。也就是机器里的/home/tomcatweb/blog,还有一个文件夹/home/tomcatweb/blog/WEB-INF
总的路径是:
/home/tomcatweb/
---------------------+/WEB-INF
---------------------+/index.html
---------------------+/blog
---------------------+/blog/index.jsp
---------------------+/blog/WEB-INF
然后我在浏览器中输入:http://localhost:8080,能访问。
再输入http://localhost:8080/blog,不能访问。提示
----type Status report
----message /blog/
----description The requested resource (/blog/) is not available.
Apache Tomcat/5.0.25
把blog/WEB-INF删除,http://localhost:8080/blog,能访问。可是我的class都不能用了,编绎出错。
谁能帮帮我,多谢了!急! |
|