【发布时间】:2018-04-09 19:02:28
【问题描述】:
我正在尝试将 Spring Boot 应用程序部署到 WAS 8.5,但遇到了一些问题。该应用程序在 tomcat 中运行良好并成功运行。在 Websphere 8.5 中,它已成功部署但无法正常工作。 但是在点击肥皂服务端点时:
***`[4/9/18 14:36:40:012 EDT] 000000c4 SystemOut O 09-04-2018 14:36:40.011 [WebContainer : 1] ERROR o.s.boot.web.support.ErrorPageFilter.deliverOrBuffer - Cannot forward to error page for request [/customerinfo/soap] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false.`***
服务器启动后,我看到下面的应用程序成功启动日志:
[4/9/18 14:36:07:160 EDT] 00000048 SystemOut O 09-04-2018 14:36:07.159 [Default : 1] INFO c.a.a.s.CustInfoServiceApplication.deliverOrBuffer - Started CustInfoServiceApplication in 32.202 seconds (JVM running for 557.392)
[4/9/18 14:36:07:282 EDT] 00000048 SystemOut O 09-04-2018 14:36:07.282 [Default : 1] INFO o.s.web.servlet.DispatcherServlet.deliverOrBuffer - FrameworkServlet 'dispatcherServlet': initialization started
[4/9/18 14:36:07:353 EDT] 00000048 SystemOut O 09-04-2018 14:36:07.352 [Default : 1] INFO o.s.web.servlet.DispatcherServlet.deliverOrBuffer - FrameworkServlet 'dispatcherServlet': initialization completed in 69 ms
[4/9/18 14:36:07:443 EDT] 00000048 SystemOut O 09-04-2018 14:36:07.443 [Default : 1] WARN c.i.w.r.component.ApplicationMgrImpl.logToJSR47Logger - WSVR0221I: Application started: cust-info-ear
遇到任何类似问题的人或可以提供指导的人都会有所帮助。
编辑 1: - 我发现的不同之处在于,在 Tomcat 上它正在访问 MessageDispatcherServlet 类,而在 WAS 8.5 上它正在访问 DispatcherServlet 类。
【问题讨论】:
-
If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false.你试过了吗? -
是的,我试过了,它没有提供记录器,而是出现“此应用程序没有 /error 的显式映射,因此您将此视为后备。”在 SOAP 上。
标签: spring-boot websphere