From 259d388b86a1040a4d837e51e408c861a52d611c Mon Sep 17 00:00:00 2001 From: "alerant.appngin" Date: Fri, 11 Sep 2015 16:00:19 +0200 Subject: [PATCH] Fixing Bug caused by "IllegalStateException: UT000048: No request is currently active" error while webapp serving static contents Fixing issue described in: https://github.com/Mobicents/sip-servlets/pull/67#issuecomment-139281953 --- .../jboss-as-mobicents/pom.xml | 22 +--- containers/sip-servlets-as8/pom.xml | 24 ++-- .../ConvergedInMemorySessionManager.java | 67 +++++++---- .../core/ConvergedDeploymentManagerImpl.java | 1 + .../core/ConvergedSessionListenerBridge.java | 4 +- .../servlet/core/SecurityActions.java | 36 +++++- ...ervletRequestContextThreadSetupAction.java | 54 +++++++++ .../ConvergedServletInitialHandler.java | 113 +++++++++--------- .../ConvergedServletRequestContext.java | 4 +- .../ConvergedSessionRestoringHandler.java | 3 + .../ConvergedHttpServletRequestFacade.java | 18 ++- .../ConvergedHttpServletResponseFacade.java | 11 +- .../spec/ConvergedHttpSessionFacade.java | 5 + 13 files changed, 239 insertions(+), 123 deletions(-) create mode 100644 containers/sip-servlets-as8/src/main/java/org/mobicents/io/undertow/servlet/core/ServletRequestContextThreadSetupAction.java diff --git a/containers/sip-servlets-as8-drop-in/jboss-as-mobicents/pom.xml b/containers/sip-servlets-as8-drop-in/jboss-as-mobicents/pom.xml index bd12a788a4..15d8c9e069 100644 --- a/containers/sip-servlets-as8-drop-in/jboss-as-mobicents/pom.xml +++ b/containers/sip-servlets-as8-drop-in/jboss-as-mobicents/pom.xml @@ -106,46 +106,36 @@ org.wildfly wildfly-undertow - 8.2.0.Final + 8.2.1.Final provided - org.wildfly wildfly-naming - 8.2.0.Final + 8.2.1.Final provided org.wildfly wildfly-web - 8.2.0.Final + 8.2.1.Final provided org.wildfly wildfly-web-common - 8.2.0.Final + 8.2.1.Final provided io.undertow undertow-core - 1.1.0.FINAL + 1.1.8.Final io.undertow undertow-servlet - 1.1.0.FINAL + 1.1.8.Final diff --git a/containers/sip-servlets-as8/pom.xml b/containers/sip-servlets-as8/pom.xml index 8acedcdc73..836f31fd60 100644 --- a/containers/sip-servlets-as8/pom.xml +++ b/containers/sip-servlets-as8/pom.xml @@ -21,40 +21,30 @@ org.wildfly wildfly-undertow - 8.2.0.Final + 8.2.1.Final provided - org.wildfly wildfly-web - 8.2.0.Final + 8.2.1.Final provided org.wildfly wildfly-web-common - 8.2.0.Final + 8.2.1.Final provided io.undertow undertow-core - 1.1.0.FinaL + 1.1.8.Final io.undertow undertow-servlet - 1.1.0.FinaL + 1.1.8.Final