You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jl...@apache.org on 2020/07/24 09:15:40 UTC

[tomee] branch master updated: Another exception when it's extension

This is an automated email from the ASF dual-hosted git repository.

jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new 8f6bd83  Another exception when it's extension
8f6bd83 is described below

commit 8f6bd834a37a8745331c6580c458813e713db92c
Author: Jean-Louis Monteiro <je...@gmail.com>
AuthorDate: Fri Jul 24 11:15:26 2020 +0200

    Another exception when it's extension
---
 .../security/servlet/TomEESecurityServletContainerInitializer.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tomee/tomee-security/src/main/java/org/apache/tomee/security/servlet/TomEESecurityServletContainerInitializer.java b/tomee/tomee-security/src/main/java/org/apache/tomee/security/servlet/TomEESecurityServletContainerInitializer.java
index 3f5e840..704ee51 100644
--- a/tomee/tomee-security/src/main/java/org/apache/tomee/security/servlet/TomEESecurityServletContainerInitializer.java
+++ b/tomee/tomee-security/src/main/java/org/apache/tomee/security/servlet/TomEESecurityServletContainerInitializer.java
@@ -39,7 +39,12 @@ public class TomEESecurityServletContainerInitializer implements ServletContaine
 
         } catch (final IllegalStateException e) {
 
-            // CDI not enabled? Extension not available?
+            // CDI not enabled?
+            return;
+
+        } catch (final IllegalArgumentException e) {
+
+            // Extension not available?
             return;
         }