From 765a34291ad3a27aff06234350596b8e7e8a3b69 Mon Sep 17 00:00:00 2001 From: aka4rKO Date: Thu, 10 Oct 2024 10:38:06 +0530 Subject: [PATCH] fixes analytics no class def found issue --- .../pom.xml | 6 +++++- .../data/publisher/common/DataPublisherFactory.java | 6 +++--- .../data/publisher/common/DataPublisherPool.java | 6 +++--- .../publisher/common/internal/OBAnalyticsDataHolder.java | 2 +- pom.xml | 6 ++++++ 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/pom.xml b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/pom.xml index a6ef7182..b7275c2c 100644 --- a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/pom.xml +++ b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/pom.xml @@ -38,6 +38,10 @@ com.wso2.openbanking.accelerator com.wso2.openbanking.accelerator.common + + org.apache.commons + commons-pool2 + com.github.spotbugs spotbugs-annotations @@ -84,7 +88,7 @@ org.wso2.carbon.databridge.agent.*; version="${carbon.analytics.common.version.range}", org.wso2.carbon.databridge.commons.*; version="${carbon.analytics.common.version.range}", com.wso2.openbanking.accelerator.common.*; version="${project.version}", - org.apache.tomcat.dbcp.pool2.*; version="${tomcat.catalina.version}" + org.apache.commons.pool2.*; version="${commons-pool2.version}" !com.wso2.openbanking.accelerator.data.publisher.common.internal, diff --git a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherFactory.java b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherFactory.java index d7b17ed2..507523f3 100644 --- a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherFactory.java +++ b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherFactory.java @@ -18,9 +18,9 @@ package com.wso2.openbanking.accelerator.data.publisher.common; -import org.apache.tomcat.dbcp.pool2.BasePooledObjectFactory; -import org.apache.tomcat.dbcp.pool2.PooledObject; -import org.apache.tomcat.dbcp.pool2.impl.DefaultPooledObject; +import org.apache.commons.pool2.BasePooledObjectFactory; +import org.apache.commons.pool2.PooledObject; +import org.apache.commons.pool2.impl.DefaultPooledObject; /** * Data Publisher Factory class. diff --git a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherPool.java b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherPool.java index ade99f3a..8b79aa54 100644 --- a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherPool.java +++ b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/DataPublisherPool.java @@ -18,9 +18,9 @@ package com.wso2.openbanking.accelerator.data.publisher.common; -import org.apache.tomcat.dbcp.pool2.PooledObjectFactory; -import org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool; -import org.apache.tomcat.dbcp.pool2.impl.GenericObjectPoolConfig; +import org.apache.commons.pool2.PooledObjectFactory; +import org.apache.commons.pool2.impl.GenericObjectPool; +import org.apache.commons.pool2.impl.GenericObjectPoolConfig; /** * Data Publisher Pool class. diff --git a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/internal/OBAnalyticsDataHolder.java b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/internal/OBAnalyticsDataHolder.java index 84bb2373..6fd8b114 100644 --- a/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/internal/OBAnalyticsDataHolder.java +++ b/open-banking-accelerator/components/com.wso2.openbanking.accelerator.data.publisher/com.wso2.openbanking.accelerator.data.publisher.common/src/main/java/com/wso2/openbanking/accelerator/data/publisher/common/internal/OBAnalyticsDataHolder.java @@ -25,7 +25,7 @@ import com.wso2.openbanking.accelerator.data.publisher.common.EventQueue; import com.wso2.openbanking.accelerator.data.publisher.common.OpenBankingDataPublisher; import com.wso2.openbanking.accelerator.data.publisher.common.constants.DataPublishingConstants; -import org.apache.tomcat.dbcp.pool2.impl.GenericObjectPoolConfig; +import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import java.util.Map; diff --git a/pom.xml b/pom.xml index 027bdb8f..b64f7243 100644 --- a/pom.xml +++ b/pom.xml @@ -454,6 +454,11 @@ commons-lang3 ${commons-lang.version} + + org.apache.commons + commons-pool2 + ${commons-pool2.version} + commons-dbcp commons-dbcp @@ -755,6 +760,7 @@ 1.2.11-wso2v16 1.2 3.4 + 2.8.0 1.4 1.9.3 3.2.0