You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2020/09/07 13:25:00 UTC
[openwebbeans] 01/02: OWB-1281 handle UnsatisfiedLinkError
This is an automated email from the ASF dual-hosted git repository.
struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git
commit 8b8c82505a2336bec91e89e2dacb09b2dfd8263b
Author: Mark Struberg <st...@apache.org>
AuthorDate: Mon Sep 7 15:22:36 2020 +0200
OWB-1281 handle UnsatisfiedLinkError
this can happen when classes which need some native libs installed get scanned.
---
.../java/org/apache/webbeans/config/BeansDeployer.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java b/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
index 9271ae2..aec5393 100644
--- a/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
+++ b/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
@@ -458,6 +458,10 @@ public class BeansDeployer
{
logger.info("Skipping deployment of Class " + beanClass + "due to a NoClassDefFoundError: " + ncdfe.getMessage());
}
+ catch (UnsatisfiedLinkError ule)
+ {
+ logger.info("Skipping deployment of Class " + beanClass + "due to a UnsatisfiedLinkError: " + ule.getMessage());
+ }
}
beanAttributesPerBda.put(bdaInfo, bdaBeanAttributes);
@@ -1348,6 +1352,10 @@ public class BeansDeployer
{
logger.info("Skipping deployment of Class " + implClass + "due to a NoClassDefFoundError: " + ncdfe.getMessage());
}
+ catch (UnsatisfiedLinkError ule)
+ {
+ logger.info("Skipping deployment of Class " + implClass + "due to a UnsatisfiedLinkError: " + ule.getMessage());
+ }
}
}
@@ -1518,6 +1526,10 @@ public class BeansDeployer
{
logger.info("Skipping deployment of Class " + key.getJavaClass() + "due to a NoClassDefFoundError: " + ncdfe.getMessage());
}
+ catch (UnsatisfiedLinkError ule)
+ {
+ logger.info("Skipping deployment of Class " + key.getJavaClass() + "due to a UnsatisfiedLinkError: " + ule.getMessage());
+ }
// if the implClass already gets processed as part of the
// standard BDA scanning, then we don't need to 'additionally'
@@ -1563,6 +1575,10 @@ public class BeansDeployer
{
logger.warning("Skipping deployment of Class " + beanClass + " due to a NoClassDefFoundError: " + ncdfe.getMessage());
}
+ catch (UnsatisfiedLinkError ule)
+ {
+ logger.info("Skipping deployment of Class " + beanClass + "due to a UnsatisfiedLinkError: " + ule.getMessage());
+ }
}
}