MF Webhook server with Tomcat 10 error
search cancel

MF Webhook server with Tomcat 10 error

book

Article ID: 383561

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Upgraded to CCS Tomcat 10.1.28 and everything works except the webhook server v2.8.12

In the task log:

java.lang.ClassCastException: org.glassfish.jersey.servlet.ServletContainer incompatible with jakarta.servlet.Servlet
     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:758)
     at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:575)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:115)

Environment

Endevor V19

Cause

This issue is caused by adding the new webhook war file to $Tomcat/webapps (this works for CCS Tomcat 8 and 9), for CCS Tomcat 10, the war file should reside in $Tomcat/webapps-javaee - Jakarta EE replaces the Java EE APIs used in earlier versions of Tomcat.

 

Resolution

After apply LU15084 - CCS Tomcat 10 support PTF, the GenericWarIns.sh also gets updated

If WSTOMINS is used to upgrade the MF webhook server, the GenericWarIns.sh will

  • deploy .war file to $Tomcat/webapps-javaee if CCS Tomcat 10 is used.
  • or deploy .war file to $Tomcat/webapps if CCS Tomcat 8 or 9 is used. 

To manually update MF webhook server, make sure the new .war file is copied to $Tomcat/webapps-javaee for CCS Tomcat 10.