从 tomcat 服务器上的 jsp 访问 xml 尝试访问 .keystore 时抛出 FileNotFoundException?

发布于 2024-08-24 09:27:30 字数 227 浏览 4 评论 0原文

我正在尝试从 Tomcat 服务器上的 JSP 访问 XML 文件。该错误来自 Catalina 的协议处理程序,异常是 java.io.FileNotFoundException 尝试访问我的登录用户(使用管理员,但不是安装服务器的用户)的“文档和设置”文件夹中的 .keystore。

如果这有帮助的话,我可以提供堆栈跟踪...但我的问题更基本的是关于文件的安全访问以及 Windows 安装上的密钥库在哪里配置/使用?

I am trying to access an XML file from JSP on my Tomcat server. The error is from Catalina's protocol handler and the exception is java.io.FileNotFoundException trying to access my .keystore in the 'documents and settings' folder for my signed-on user (with admin, but not the user that installed the server).

I can provide the stacktrace if that would help ... but my question is more fundamental about secure access to files and where is the keystore configured / used on a Window's install?

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

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

发布评论

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

评论(1

执手闯天涯 2024-08-31 09:27:30

哦,天哪......这不是 .keystore (我尝试修复刚刚改变错误的那个)。这是我的 httpd.conf 文件中的 JkMount 语句。我没有通过*.xml。

我想我用一种解决方案解决了两个问题。

Oh my goodness ... it wasn't the .keystore (I tried fixing that which just changed the error). It was the JkMount statements in my httpd.conf file. I did not pass *.xml.

I think I killed two issues with one solution.

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