Forum Discussion

arunbharath's avatar
arunbharath
Contributor
6 years ago

Getting Error : java.lang.NoClassDefFoundError: com/jayway/jsonpath/spi/JsonProvider

Hi All,

  I'm trying to run soapUI through java , while running property transfer test step I'm getting below exception.

 


[ResultMap map={}]
.473 s <<< FAILURE!
java.lang.NoClassDefFoundError: com/jayway/jsonpath/spi/JsonProvider
at com.interac.api.emt.test.SoapRunner.soapRunner(SoapRunner.java:325)
Caused by: java.lang.ClassNotFoundException: com.jayway.jsonpath.spi.JsonProvider
at com.interac.api.emt.test.SoapRunner.soapRunner(SoapRunner.java:325)

 

I'm using  Json path 2.4.0  version

<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.4.0</version>
</dependency>

In the latest version, JsonProvider class is moved to the dub-directory called "Json",  But still soapUI is looking for com.jayway.jsonpath.spi.JsonProvider which is very old one.

 

I'm Using SOAPUI 5.1.0 version.

<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui-maven-plugin</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>com.smartbear.soapui</groupId>
<artifactId>soapui</artifactId>
<version>5.1.0</version>
</dependency>

 

Any help here is much apprecitated 

 

 

  • avidCoder's avatar
    avidCoder
    Super Contributor

    Try adding the json-path-2.0.0 jar file into SOAPUI HOME/ext folder and restart soapui and again check whether it works fine or not.