Forum Discussion

curiousIna's avatar
6 months ago
Solved

Export of Mock Service as WAR File not compatible with latest Tomcat

When trying to run exported war on Tomcat 11, I'm getting:

org.apache.catalina.core.StandardWrapperValve.invoke Allocate exception for servlet [SoapUIMockServlet]
    java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet

With Tomcat 9 everything runs fine. My suspicion that the problem related to jakarta switch in latest Tomcat. Does Soap UI support newer server versions and if yes what should be configured to have proper war created?

Thanks

  • Hi curiousIna​ 

    SoapUI Open Source mock service WAR files are incompatible with Tomcat 10 and 11.

    • To deploy your mock services, you'll need to use Tomcat 9 or an earlier version.
    • Instead, you can run your mock services directly from SoapUI. Currently, SoapUI Open Source does not support generating Jakarta-compatible WAR files. 

    If you need to deploy on newer Tomcat versions, consider exploring alternative mocking solutions that support Jakarta EE 9+.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!
    Warm regards

1 Reply

  • Humashankar's avatar
    Humashankar
    Icon for Champion Level 3 rankChampion Level 3

    Hi curiousIna​ 

    SoapUI Open Source mock service WAR files are incompatible with Tomcat 10 and 11.

    • To deploy your mock services, you'll need to use Tomcat 9 or an earlier version.
    • Instead, you can run your mock services directly from SoapUI. Currently, SoapUI Open Source does not support generating Jakarta-compatible WAR files. 

    If you need to deploy on newer Tomcat versions, consider exploring alternative mocking solutions that support Jakarta EE 9+.

    Hope this helps - Happy to help further!!
    Thank you very much and have a great one!
    Warm regards