访问映射网络驱动器时出现问题

发布于 2024-07-18 12:08:24 字数 335 浏览 9 评论 0原文

我们在访问映射网络驱动器上的内容时遇到问题。

我们有一个在 (Windows 2000 NT) 上的 weblogic 8.1 上运行的 Web 应用程序。

该应用程序从映射的网络驱动器检索图像并显示。

现在,我们将应用程序移至 Weblogic 10.3 上托管的虚拟机 (Windows 2003 SP1) 上。

但在这个新设置中,即使网络驱动器已映射并在计算机上可用,应用程序也无法访问它。

在虚拟机上映射网络驱动器是否有任何特定设置?

有什么帮助吗? 真的很震惊。

提前致谢。

贾尼。

We have a problem in accessing content on a mapped network drive.

We have a web application running on weblogic 8.1 on (Windows 2000 NT).

The application retreives images from a mapped network drive and displays.

Now we are moving our application onto a virtual machine (Windows 2003 SP1) hosted on Weblogic 10.3.

But on this new set up even though the network drive is mapped and available on the machine, the application can't access it.

Are there any specific settings for mapping network drives on virtual machines?

Any help? Really struck with this.

Thanks in advance.

Jani.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

没有伤那来痛 2024-07-25 12:08:24

建议您通过确保 Web 应用程序进程具有访问网络共享的必要权限来开始故障排除。

也许您需要将运行 Web 应用程序的帐户更改为 Windows 域用户? 也许该应用程序现在作为 LOCALSYSTEM 运行(仅具有本地权限)。

如果无法在域用户帐户下运行 Web 应用程序,则可以尝试传递身份验证:在 Web 应用程序服务器上创建一个本地用户,其用户名和密码与可以访问网络共享的帐户完全相同。 在此本地帐户下运行应用程序。

编辑

如果 Web 应用程序配置为使用驱动器映射连接到网络共享,请尝试改用 UNC 路径。 例如将 m:\directory 更改为 \\server\share\directory

Suggest you start troubleshooting by making sure that the web application process has the necessary permissions to access the network share.

Perhaps you need to change the account that the web application is running under to a Windows domain user? Perhaps the app is now running as LOCALSYSTEM (which only has local privileges).

If you cannot run the web app under a domain user account, you could try pass-through authentication: Create a local user on the web application server with the exact same user name and password as an account that can access the network share. Run the app under this local account.

Edit:

If the web app is configured to connect to the network share using drive mappings, try using UNC paths instead. For instance change m:\directory to \\server\share\directory

深者入戏 2024-07-25 12:08:24

另一个问题(除了需要让您的服务使用域帐户之外)是,并非 Windows 服务器上的所有应用程序都能看到同一组网络驱动器映射。 如果您登录服务器并手动设置驱动器映射,您的网络应用程序可能不会注意到它。

出现此行为的原因是 Windows 服务器上的驱动器映射是在每个会话的基础上完成的; Windows 为服务器进程分配一个或多个会话 ID,并为每次交互式登录分配一个不同的会话 ID。

最安全的方法是:

  • 在代码中建立驱动器映射。 我对 Weblogic 一无所知,但您需要找到与 Windows WNetAddConnection2 调用。
  • 或者,切换到使用 UNC 路径名,从而避免驱动器映射。

The other gotcha -- apart from needing to have your service use a domain account -- is the fact that not all apps on a Windows server see the same set of network drive mappings. If you log into your server and set up a drive mapping by hand, your web app probably isn't going to notice it.

The reason for this behaviour is that drive mappings on a Windows server are done on a per-session basis; Windows assigns one or more session IDs to server processes, and a different session ID to each interactive logon.

The safest way to do this would be to either:

  • Establish the drive mapping in code. I don't know anything about Weblogic, but you need to find the equivalent of the Windows WNetAddConnection2 call.
  • Or, switch to using UNC path names, thereby avoiding drive mappings.
情魔剑神 2024-07-25 12:08:24

对于虚拟机和物理机来说,映射网络驱动器的过程是相同的。 我怀疑您遇到的问题与将应用程序从 Windows 2k/WebLogic 8.1 移植到 Windows 2k3/WebLogic 10.3 有关。 虚拟部分可能与此无关。 如需更多帮助,我们需要了解有关您所看到的错误以及如何配置应用程序以查找您的资源的更多详细信息。

The procedure for mapping network drives is the same for virtual and physical machines. I would suspect that the issue your are having has more to do with porting your application from Windows 2k/WebLogic 8.1 to Windows 2k3/WebLogic 10.3. The virtual part probably has little to do with it. For more help, we would need to know more details about the error you are seeing and how the application is configured to find your resources.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文