Help with SDC Vagrant Deployment - Mockito cannot mock this class: interface javax.ws.rs.container.ContainerResponseContext.

jonnygeemail@...
 

Hi All - apologies if this is not the correct place to post this request. I'm trying to get sdc running in a vagrant environment as per the instructions at 

https://wiki.onap.org/display/DW/Using+Vagrant-Onap+for+local+deployment+of+SDC+project

I'm currently up to the point where I'm trying to install the dockers to the vagrant environment ie step 2 where I issue the following cmd.

mvn clean install -P docker

Build fails with the following error

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project openecomp-sdc-logging-api: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/jong/sdc/openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-api/target/surefire-reports for the individual test results.

Checking the surefire test log as suggested reveals the following error.

Can anyone advise how to proceed from here please.

Mockito cannot mock this class: interface javax.ws.rs.container.ContainerResponseContext.
 
Mockito can only mock non-private & non-final classes.
If you're not sure why you're getting this error, please report to the mailing list.
 
 
Java               : 11
JVM vendor name    : Oracle Corporation
JVM vendor version : 11.0.3+4
JVM name           : OpenJDK 64-Bit Server VM
JVM version        : 11.0.3+4
JVM info           : mixed mode
OS name            : Linux
OS version         : 5.0.7-arch1-1-ARCH
 
 
Underlying exception : java.lang.IllegalStateException: Error invoking java.lang.reflect.Method#getAnnotatedReturnType
at org.openecomp.sdc.logging.servlet.jaxrs.LoggingResponseFilterTest.noExceptionsWhenTrackerNotPassed(LoggingResponseFilterTest.
java:42)
Caused by: java.lang.IllegalStateException: Error invoking java.lang.reflect.Method#getAnnotatedReturnType
at org.openecomp.sdc.logging.servlet.jaxrs.LoggingResponseFilterTest.noExceptionsWhenTrackerNotPassed(LoggingResponseFilterTest.
java:42)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/adapters/XmlAdapter
at org.openecomp.sdc.logging.servlet.jaxrs.LoggingResponseFilterTest.noExceptionsWhenTrackerNotPassed(LoggingResponseFilterTest.
java:42)
 

Join onap-sdc@lists.onap.org to automatically receive all group messages.