Exception when deploying to Payara

I am getting the exception below when deploying from IntelliJ to the Payara server. When I copy the same WAR into the Payara hot deploy directory, the project deploys. The missing class is from a library included in the POM. I have unzipped the WAR file and the missing class is present. Please assist.

[2023-04-14T10:37:11.372+0200] [Payara 6.2023.3] [SEVERE] [AS-WEB-CORE-00108] [jakarta.enterprise.web.core] [tid: _ThreadID=1039 _ThreadName=admin-thread-pool::admin-listener(3)] [timeMillis: 1681461431372] [levelValue: 1000] [[
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: za.co.barizmagroup.saps.library.Response
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5772)
at com.sun.enterprise.web.WebModule.start(WebModule.java:619)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:958)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:941)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1813)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1565)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:123)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)
at org.glassfish.jersey.server.model.IntrospectionModeller.createResourceBuilder(IntrospectionModeller.java:88)
at org.glassfish.jersey.server.model.Resource.from(Resource.java:781)
at org.glassfish.jersey.server.ResourceBagConfigurator.init(ResourceBagConfigurator.java:55)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:348)
at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:310)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232)
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:309)
at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:274)
at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:338)
at jakarta.servlet.GenericServlet.init(GenericServlet.java:178)
at jakarta.servlet.http.HttpServlet.init(HttpServlet.java:107)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1462)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1276)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5514)
… 47 more
]]