Packaging 4.0.0 no class def found
See original GitHub issueAfter trying to upgrade to 4.0.0 I was hit by a few Class not found exceptions:
ClassNotFoundException: io.restassured.path.xml.mapper.factory.JAXBObjectMapperFactory
ClassNotFoundException: io.restassured.path.json.mapper.factory.GsonObjectMapperFactory
java.lang.NoClassDefFoundError: io/restassured/path/json/mapper/factory/JohnzonObjectMapperFactory
cannot access TypeRef
From the wiki I should only need this dependency:
testCompile 'io.rest-assured:rest-assured:4.0.0'
That doesn’t seem to be enough
I’ve made it work with:
testCompile group: 'io.rest-assured', name: 'rest-assured', version: '4.0.0'
testCompile group: 'io.rest-assured', name: 'rest-assured-common', version: '4.0.0'
testCompile group: 'io.rest-assured', name: 'json-path', version: '4.0.0'
testCompile group: 'io.rest-assured', name: 'xml-path', version: '4.0.0'
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:26
Top Results From Across the Web
How can I solve "java.lang.NoClassDefFoundError"?
Looking at your main class, it is not in a package (you would have package graphics; at the top). · You're listing where...
Read more >java.lang.NoClassDefFoundError - DigitalOcean
java.lang.NoClassDefFoundError is runtime error thrown when a required class is not found in the classpath and hence JVM is unable to load it ......
Read more >How to solve java.lang.NoClassDefFoundError - Java67
Problem: I was trying to run a HelloWorld program using Spring Boot when I got this error: Exception in thread "main" java.lang.
Read more >NoClassDefFoundError when running my plugin from FIJI
Apparently this happens when the class is there during compilation but not run time. I do have the apache/commons/csv/CSVPrinter in my pom file:...
Read more >POM Reference - Maven
Introduction. The POM 4.0.0 XSD and descriptor reference documentation ... When no packaging is declared, Maven assumes the packaging is the default: jar...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Might have found the issue:
For some reason xml-path depends on the old version. Need to investigate, but know I have to pick-up kids from Kindergarten 😃