简体   繁体   English

通过与IIS 8.5连接的TomCat管理器进行部署时出现404错误

[英]404 error when deploying through TomCat manager connected with IIS 8.5

We are having issues with our deployment. 我们的部署存在问题。 We need to deploy to a remote TomCat-container which is accessed through IIS 8.5 with the TomCat Connector from Apache. 我们需要部署到远程TomCat容器,该容器可通过IIS 8.5通过Apache的TomCat连接器通过IIS 8.5进行访问。 We followed the guide at the following resources when we installed the connector: 安装连接器时,我们在以下资源中遵循了指南:

Of what we can see, the .war file gets uploaded but when it should be deployed, we are returned a 404 page, telling us that the page doesnt exist and the application is not deployed. 我们可以看到,.war文件已上传,但是当应将其部署时,将返回404页面,告诉我们该页面不存在并且未部署应用程序。

Things we have checked and double checked is the configuration for: 我们检查并再次检查的是以下配置:

  • File size limits in TomCat configuration (the file is not too big for TomCat) TomCat配置中的文件大小限制(该文件对于TomCat来说不是太大)
  • Security Access for the TomCat service user (NETWORK SERVICES), so that TomCat has access to the folders it needs for unpacking the .war etc. TomCat服务用户的安全访问权限(网络服务),以便TomCat可以访问解压缩.war等所需的文件夹。
  • Alot of other things while we were grasping for some answer 我们在寻找答案时还有很多其他事情

The logs of TomCat and IIS doesnt give a clue to why this issue exists, we can see that we accessed the manager and performed a PUT operation, nothing else... we have set the log level to FINE, still no clue. TomCat和IIS的日志无法提供有关此问题存在的线索,我们可以看到我们访问了管理器并执行了PUT操作,没有别的...我们已将日志级别设置为FINE,仍然没有任何线索。 Logs of IIS does also not give any clues to what the issue is. IIS的日志也没有提供有关此问题的任何线索。

We are thinking that the issue lies within IIS 8.5 and the connector but we cant find it. 我们认为问题出在IIS 8.5和连接器之内,但我们找不到它。

Thankful for anything that you might think could be a potential issue. 感谢您可能会认为是潜在问题的任何事情。 Are there any other connectors for TomCat 7.0.55 / IIS 8.5 that might be better? 还有其他适用于TomCat 7.0.55 / IIS 8.5的连接器吗?

Thanks / David 谢谢/大卫

Hmm, the issue was really related to max upload-sizes in IIS 8.5 嗯,问题确实与IIS 8.5中的最大上传大小有关

We read in the documentation that IIS 8.5 has 2gb as upload limits but as I posted the question above I thought that I just had to double check it. 我们在文档中看到IIS 8.5的上传限制为2gb,但是当我在上面发布问题时,我认为我只需要仔细检查一下。 It was set to 30mb... Its always some trivial answer... Im leaving this here in case someone else gets the same issue 它设置为30mb。。。它总是有些琐碎的答案。。。如果有人遇到同样的问题,我就把它留在这里。

Had the same problem, deploying from maven using tomcat plugin was returning 404 ( [ERROR] Tomcat return http status error: 404, Reason Phrase: Not Found ). 遇到相同的问题, 使用tomcat插件maven进行部署时返回404[错误] Tomcat返回http状态错误:404,原因:未找到 )。 Indeed, the problem was the "Maximum allowed content length", that was ~30MB. 确实,问题出在“最大允许内容长度”,即〜30MB。 This value can by changed on: The site > Request Filtering > [Actions Panel] > Edit Feature Settings. 可以在以下位置更改此值:站点>请求筛选> [操作面板]>编辑功能设置。

I'm sharing because almost 3 years have passed and this question brought some light to my problem 我正在分享,因为已经过去了将近3年,这个问题为我的问题带来了启示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM