AAI-2958 Fix data-router in crash loopback state when there is no internet access 85/111685/1
authorPrudence Au <prudence.au@bell.com>
Tue, 25 Aug 2020 12:48:18 +0000 (08:48 -0400)
committerPrudence Au <prudence.au@amdocs.com>
Tue, 25 Aug 2020 12:59:45 +0000 (08:59 -0400)
The problem is due to the fact in the data-router-oxm.xml file was referencing spring-context-4.2.xsd but it's not part of the spring-context-<xxx>.jar.  Therefore, it needs to reach out to the internet to download the internet.

And in spring 5, it started to use versionless spring-context.xsd and it's part of spring-context-5.1.13.jar (which is packaged in data-router 1.6.2).

The fix is to update data-router-oxm.xml to use the versionless spring-context.xsd (and it's only accessible via https).

Change-Id: Icf62978b73ae097fc3bcbaf3e96a8f63706dc4fc
Signed-off-by: Prudence Au <prudence.au@amdocs.com>
Issue-ID: AAI-2958

components/aai-data-router/resources/dynamic/conf/data-router-oxm.xml

index f564797..2e3361d 100644 (file)
@@ -1,9 +1,9 @@
 <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
         xmlns:task="http://www.springframework.org/schema/task"
-        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-                http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
-                http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
+        xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
+                http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd
+                http://www.springframework.org/schema/task https://www.springframework.org/schema/task/spring-task.xsd">
 
   <context:property-placeholder
         location="file:${CONFIG_HOME}/schemaIngest.properties"