swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

ClassLoader issue with fge's json-schema-validator v.2.1.8 #316

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include newest (com.github.fge) json-schema-validator v.2.1.8 in compile 
scope.
2. Include (com.jayway.restassured) json-schema-validator v.2.3.0 in test scope.

What is the expected output? What do you see instead?
Expected normal functioning (as with 2.1.7). Instead see:
java.lang.NoClassDefFoundError: 
Lcom/github/fge/jsonschema/report/ProcessingReport;
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Unknown Source)
    at java.lang.Class.getDeclaredFields(Unknown Source)
        etc...

The problem is that package structure in v.2.1.8 has been changed 
(com/github/fge/jsonschema/report/ProcessingReport changed to
com/github/fge/jsonschema/core/report/ProcessingReport).

Please, update your json-schema-validator.
Regards,
Vitalii.

Original issue reported on code.google.com by nema.nik...@gmail.com on 4 Mar 2014 at 10:51

GoogleCodeExporter commented 9 years ago
Seems quite strange to change package structure in a minor release. I've 
updated to 2.1.8 now and pushed to master.

Original comment by johan.ha...@gmail.com on 4 Mar 2014 at 3:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
And what is the newest version? Nothing changed with same 2.3.0.
I've removed library in my local maven repository before experimenting.

Original comment by nema.nik...@gmail.com on 4 Mar 2014 at 3:27

GoogleCodeExporter commented 9 years ago
What do you mean? I've pushed the fix to the master branch at github, I haven't 
created a new release.

Original comment by johan.ha...@gmail.com on 4 Mar 2014 at 5:59

GoogleCodeExporter commented 9 years ago
Ok, thanks a lot.

Original comment by nema.nik...@gmail.com on 4 Mar 2014 at 9:36

GoogleCodeExporter commented 9 years ago
If you want to try it out you need to depend on version 2.3.1-SNAPSHOT after 
having added the following Maven repo:

<repositories>
        <repository>
            <id>sonatype</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            <snapshots />
        </repository>
</repositories>

Original comment by johan.ha...@gmail.com on 5 Mar 2014 at 7:19