Gingber / j-calais

Automatically exported from code.google.com/p/j-calais
Apache License 2.0
0 stars 1 forks source link

Compatibility with Jackson 2 #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If your project uses the Jackson 2 JSON parser as opposed to Jackson 1, 
run-time errors occur complaining of classes not found.

The solution is to alter two lines of code in 
mx.bigdata.jcalais.rest.CalaisRestClient

Lines 47 and 48 (at time of writing), the Jackson imports should be changed to

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.ObjectMapper;

I've tested this and all seems to run fine.

Note to get Jackson 2 the download page is a bit of a mess I have to say, the 
correct JARs are at

http://wiki.fasterxml.com/JacksonDownload

under 

Downloads, 2.x
-> Latest stable 2.x version
-> Deployable JARS

Original issue reported on code.google.com by oliver.k...@gmail.com on 6 Feb 2014 at 7:51