为什么 tomcat 不提供新创建的文件?

发布于 2024-10-18 04:41:59 字数 227 浏览 1 评论 0原文

更新网络应用程序后,我注意到 tomcat (5.5.23) 不会提供任何新上传/创建的文件,即使应用程序创建并存储它们。在尝试查看文件时,我收到 404 错误,其中列出了文件的正确路径名。不过,我可以浏览到该文件并打开它。我重新部署了该应用程序,然后注意到它提供旧版本,但我不知道它所提供的版本位于哪里,并且我进行了搜索。这就像它将版本缓存在某个不可见的地方,并且只会提供该版本,就像上下文根被更改到其他地方一样。我完全不明白这是为什么。

After updating a webapp I noticed that tomcat (5.5.23) won't serve any newly uploaded/created files even though the application creates and stores them. On trying to view the files I get a 404 error with the correct path name to the file listed. I however can browse to the file and open it. I redployed the app and then noticed that it serves an older version but I have no idea where the version it is serving is located and I have searched. It's like it's cached the version somewhere invisible and will only serve that version, like the context root is being changed to somewhere else. I am completely stumped as to why this is.

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

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

发布评论

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

评论(2

姜生凉生 2024-10-25 04:41:59

可能是错误地尝试替换不可覆盖的系统代码文件,或者只有在开发会话结束后才能访问该文件,或者环境已接受您的文件,但可能尚未将它们写入磁盘服务器尚未更新文件存储或目录,或者文件名拼写错误。

Could be the erroneous attempt to replace a system file of code that is not overwritable, or the file cannot be accessed during your development session only after it is ended, or the environment has accepted your files and it may not have written them to disk at the server yet and updated the filestore or catalog, or there is a misspell of the filename.

慢慢从新开始 2024-10-25 04:41:59

问题发生的原因尚未确定,但解决方案是 此处

The reason for the occurrence of the problem was not identified but the solution is here.

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