Spring Boot& WAS 8.5部署

时间:2018-04-09 19:02:29

标签: spring-boot websphere

我正在尝试将Spring启动应用程序部署到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类。

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题,并解决了该问题。您可以查看我的答案here

相关问题