Jackson + Tomcat - java.lang.VerifyError: Cannot inherit from final class Jackson + Tomcat - java.lang.VerifyError: Cannot inherit from final class json json

Jackson + Tomcat - java.lang.VerifyError: Cannot inherit from final class


I also had the same issue with Apache Lucene. I had lucene-core-3.6.0.jar and lucene-core-3.5.0.jar in my /WEB-INF/lib folder. Removing one or the other also fixed my problem. It must be a versioning issue.


I had the same issue with Apache Solr, and it was resolved by deleting my ~/.m2 cache.

This issue was also caused by specifying the wrong version of a dependency in my pom.xml file, where another package was automatically downloading another version.

Maven really should have some sort of conflicting versions of dependency resolution scheme...


The same for me - my ejb3 application uses jackson-all-1.9.4 - and my glassfish container (v2.1) contains a lib/jackson-asl-0.9.4.jar:

java.lang.VerifyError: Cannot inherit from final class 

Now, I have replaced jackson-all with gson.

Thanks,

Danny