技术文章 - CS324807

在 Windchill PDMLink 中无法访问 Windchill 应用程序,HTTP 响应代码为 403 错误

已修改: 23-Sep-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill PDMLink 11.0 to 13.1

说明

  • CPS 更新后无法访问 Windchill 应用程序, HTTP 响应代码为 403错误
The server understood the request but refuses to authorize it
图像.png
  • Windchill wt.auth.Authentication命令失败并出现以下错误
DEBUG [main] wt.httpgw.HTTPLogin - Opening URL connection to https://<servername.domain>/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
DEBUG [main] wt.httpgw.HTTPLogin - Unexpected content type: text/html;charset=utf-8
DEBUG [main] wt.httpgw.HTTPLogin - Failed to get input stream from connection
java.io.IOException: Server returned HTTP response code: 403 for URL: https://<servername.domain>/Windchill/servlet/WindchillAuthGW/wt.httpgw.HTTPAuthentication/login
  • 升级后服务器无法通过远程 Web 服务器连接
  • 重新托管场景后,无法访问 Windchill
  • 关键补丁集 (CPS) 更新后,无法访问 Windchill UI
  • 方法服务器错误
ERROR [wt.intersvrcom.SiteMonitor.pinger] wt.intersvrcom.SiteMonitor  - Names=[Site_Asheville], URL=https://<hostname>/Windchill/servlet/WindchillGWQA, Status=SITE NOT RESPONDING, ResponseSeconds=0.006, TimeOfPing=xxxx-xx-xx  xx:xx:xx.xxx -0400

ERROR [wt.intersvrcom.SiteMonitor.pinger] wt.intersvrcom.SiteMonitor  - Names=[master], URL=https://<hostname>/Windchill/servlet/WindchillGW, Status=SERVLET ENGINE NOT RESPONDING, ResponseSeconds=0.269, TimeOfPing=xxxx-xx-xx xx:xx:xx.xxx -0400
  • 在 Access.log 中看到错误
127.0.0.1 - - [xx/xx/xxxx:xx:xx:xx +0000] "GET /Windchill/servlet/WindchillGW/wt.httpgw.HTTPServer/ping HTTP/1.1" 403 618 2468
127.0.0.1 - - [xx/xx/xxxx xx:xx:xx +0000] "GET /Windchill/wtcore/test/dynAnon.jsp HTTP/1.1" 403 618 1630
  • 升级期间 UpdateContainerTemplates 任务失败,升级日志抛出以下日志
2023-09-06T12:42:49,215 ERROR [main] com.ptc.windchill.upgrade.statemachine.state.PhaseEventUpgradeState - Upgrade execution failed with the exception:
wt.util.WTException: (com.ptc.windchill.upgrade.util.utilResource/12) wt.util.WTException: Unable to complete startup of all Windchill Service
  • 在 Windchill 单点登录 (SSO) 配置的服务器上,无法登录 Windchill,并出现以下浏览器错误
 https://<Windchill_hostname>/Windchill/sso/shibboleth/sessionHook?return=https%3A%2F%2F<Windchill_hostname>%2FShibboleth.sso%2FSAML2%2FPOST%3Fhook%3D1%26target%3Dss%253Amem%253Aa2990408f0626e8c92e550f02c06e46a7db4c5ac7bdefaf3a1f42c21d8bbf80d&target=https%3A%2F%2F<Windchill_hostname>%2FWindchill%2Fapp%2F
HTTP Status 403 – Forbidden
Type Status Report
Description The server understood the request but refuses to authorize it
这是文章 324807 的 PDF 版本,可能已过期。最新版本 CS324807