Topic: tomcat虚拟目录的怪异问题!有没有人遇到过类似的?

  Print this page

1.tomcat虚拟目录的怪异问题!有没有人遇到过类似的? Copy to clipboard
Posted by: junsansi
Posted on: 2005-12-29 09:18

我在tomcat中给站点增加了一个虚拟目录,但是遇到了一个非常奇怪的问题!
如例:
<Context path="/test" docBase="F:\webpage\" crossContext="true" debug="0"/>
<Context path="/test2" docBase="Z:\ROOT\" crossContext="true" debug="0"/>

test指向的是我本地硬盘的目录,访问一切正常
test2指向的是我映射的网络中的共享路径,但是在tomcat启动过程中就报错: Document base Z:\ROOT\ does not exist or is not a readable directory!
但是Z:\ROOT\通过我的电脑访问读写都很正常,是不是tomcat不支持将虚拟目录设置为网络映射的盘符?

但是我必须将虚拟目录指向到网络中的映射地址,怎么办?

2.Re:tomcat虚拟目录的怪异问题!有没有人遇到过类似的? [Re: junsansi] Copy to clipboard
Posted by: junsansi
Posted on: 2005-12-29 10:11

尝试了用\\192.168.0.2\ROOT\也不行,难道tomcat不支持任何形式的网络路径?

3.Re:tomcat虚拟目录的怪异问题!有没有人遇到过类似的? [Re: junsansi] Copy to clipboard
Posted by: why
Posted on: 2005-12-29 10:36

Do you run Tomcat as a service?
A service usually uses the Local System account, which may not have access privilege to those mapped or network folders.
You may try changing that to a regular user account.

BTW, you should have specified the version of Tomcat and Windows you are using?

4.Re:tomcat虚拟目录的怪异问题!有没有人遇到过类似的? [Re: junsansi] Copy to clipboard
Posted by: junsansi
Posted on: 2005-12-29 11:42

why,我英文不好,不知道我理解的是不是你要表达的~~

我描述一下我所做的操作
tomcat做为服务已经被运行
并且我确认共享路径是有读写操作权限的,因为我用[我的电脑]操作它非常的正常。

最后,我用的是tomcat5.5,操作系统是windows2003

5.Re:tomcat虚拟目录的怪异问题!有没有人遇到过类似的? [Re: junsansi] Copy to clipboard
Posted by: junsansi
Posted on: 2005-12-29 13:08

我尝试了用dos模式启动就可以访问到网络路径了~~~

在windows模式下应该怎么配置才可以啊


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923