Fix restconf-nb websocket initialization failure on karaf 03/104403/5
authorRuslan Kashapov <ruslan.kashapov@pantheon.tech>
Wed, 15 Feb 2023 13:58:40 +0000 (15:58 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 26 Feb 2023 13:41:14 +0000 (13:41 +0000)
Websocket servlet is initialized using indirect dependency on
server bundle (string class name in code, dynamic-import in
manifest). This dependency require to be set explicitly. Then
required bundle will be installed with odl-restconf-nb feature
and missing artifacts will be available for restcong-nb
class loader.

JIRA: NETCONF-953
Change-Id: I82e9133af1aeb98518f97a14a3574b82573f92dc
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
restconf/restconf-nb/pom.xml

index fa10e4b85e16657b2f99aa733c8a6d8c2f3e6ab8..6301d1f70f0cfa27e312beea47251bc0b3fb25a9 100644 (file)
       <groupId>org.eclipse.jetty.websocket</groupId>
       <artifactId>websocket-servlet</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.eclipse.jetty.websocket</groupId>
+      <artifactId>websocket-server</artifactId>
+    </dependency>
 
     <!-- Testing Dependencies -->
     <dependency>
         <configuration>
           <instructions>
             <Bundle-Name>MD SAL Restconf Connector</Bundle-Name>
+            <Import-Package>org.eclipse.jetty.websocket.server, *</Import-Package>
           </instructions>
         </configuration>
       </plugin>