'java.lang.ClassNotFoundException: javax.sql.rowset.RowSetProvider

I'm running a Gradle project in Docker and when I try to hit an endpoint through Postman I receive the following error. When I run it locally through Gradle it works fine and I can hit the endpoint no problem.

SEVERE: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax.sql.rowset.RowSetProvider] with root cause

java.lang.ClassNotFoundException: javax.sql.rowset.RowSetProvider

I've tried adding the Gradle dependency implementation 'javax.sql:rowset:1.0.1' but had no success as it throws a Gradle build error Could not find javax.sql.rowset:com.springsource.javax.sql.rowset:1.0.1.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source