日期:2014-05-18  浏览次数:20641 次

Tomcat5.5虚拟目录设定
Tomcat5.5虚拟目录设定:
我的代码在   d:\www\shikong


D:\Tomcat   5.5\conf\Catalina\localhost下新加一shikong.xml
内容如下:
<Context   path= "/shikong "   docBase= "D:\www "   reloadable= "true "   crossContext= "true "   debug= "0 "   >
</Context>

ie输入http://localhost:8080/shikong/

出现

HTTP   Status   404   -   /shikong/

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

type   Status   report

message   /shikong/

description   The   requested   resource   (/shikong/)   is   not   available.


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

Apache   Tomcat/5.5.23


请问我那里设置错了?

------解决方案--------------------
有这样的用法啊,没试过,我每次都把解析好的文件都部署到Tomcat中的webapp目录下才运行的,回去试试看。
------解决方案--------------------
<Context path= "/shikong " docBase= "D:\www\shikong " reloadable= "true " crossContext= "true " debug= "0 " >
</Context>
正解