在Tomcat中不会工作虚拟目录 [英] Virtual Directory in Tomcat Wont Work

查看:206
本文介绍了在Tomcat中不会工作虚拟目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助!

我想获得一个虚拟目录到Tomcat 6.0工作。

I am trying to get a virtual directory in Tomcat 6.0 to work.

这已工作了多年的比我自己的两个独立的组织域上的两个单独的服务器的虚拟目录连接到共享。

This had been working for years in connecting a virtual directory to a share on two separate servers on two separate org domains than my own.

就在最近,在不同的情况下,此虚拟目录映射停止,具体说:

Just recently, and at different instances, this virtual directory stopped mapping, specifically saying:

java.lang.IllegalArgumentException异常:文档库\\ xxx.xxx.xxx.xxx \\ CFSoft不存在或不是可读目录
    在org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
    在org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4249)
  ...

java.lang.IllegalArgumentException: Document base \xxx.xxx.xxx.xxx\CFSoft does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4249) ...

信息:。集装箱org.apache.catalina.core.ContainerBase [卡塔利娜] [本地主机] [/呼叫中心/柔和/ asho]尚未启动

INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/callcenter/soft/asho] has not been started

看起来它是与用户权限,为我所用能(从Windows)浏览到这些服务器共享匿名,无需验证的意思,现在我不能。我只能在猜测是Tomcat的不能得到这些股票由于环境要求的,但是有些无处域认证(虚拟目录)映射可以指定任何类型的凭据。

It looks like it has something to do with user permissions, as I used to be able to browse (from windows) to these server shares anonymously, meaning without authentication, and now I can't. All I can guess at is that Tomcat can't get to these shares due to some domain authentication required, however nowhere in the context (virtual directory) mapping can you specify any sort of credentials.

我肯定我的语法是正确的映射:

I am certain my syntax is correct on the mapping:

<Context path="/callcenter/soft/aola" docBase="//xxx.xxx.xxx.xxx/CFSoft" privileged="true" debug="0"></Context>

有没有人有什么建议?谢谢你。

Does anyone have any suggestions? Thanks.

推荐答案

尝试这种解决方案:

1)[tomcat_install] / tomcat的/ conf目录/卡塔利娜/本地主机/结果
2)创建XML文件。文件名称是虚拟目录的名称的名称。如果你创建的XML文件名作为posCFC.xml,你的虚拟目录将是的http://本地主机/ posCFC /结果
3)添加以下代码到这个XML文件中。

1) [tomcat_install]/tomcat/conf/Catalina/localhost/
2) create XML file. File name is the name of the virtual directory's name. If you created XML file name as posCFC.xml, your virtual directory will be "http://localhost/posCFC/"
3) add the following coding into this XML file.

查看关于

<Context path="/POS" docBase="E:/Project/POS" debug="0" privileged="true">
</Context>

4)重新启动Tomcat的。 (这是可选的。)

4) Restart your Tomcat. (it's optional.)

参考:的http://www.ppshein.net/index.cfm/2011/6/5/Configure-virtual-directory-on-Tomcat

这篇关于在Tomcat中不会工作虚拟目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆