Hi Betsey, Are you sure it’s picking up your GrobidExtractor.properties and not the default one that ships with the code? I usually try to make sure the .properties file comes before the jar file for tika-parsers in the classpath.
Cheers, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Chief Architect Instrument Software and Science Data Systems Section (398) NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 168-519, Mailstop: 168-527 Email: [email protected] WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Director, Information Retrieval and Data Science Group (IRDS) Adjunct Associate Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA WWW: http://irds.usc.edu/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On 5/11/16, 8:21 AM, "Betsey Benagh" <[email protected]> wrote: >(X-posted from StackOverflow) >up > vote >down > votefavorite > <http://stackoverflow.com/questions/37166732/passing-grobidextractor-properties-to-tika-in-java#> > >I'm trying to write a Java application that uses the JournalParser to extract >authors, citations, etc. from journal articles. The documentation for the >GrobidJournalParser gives instructions > for the command line app and for TikaServer. I need to point to Grobid > running somewhere other than localhost:8080. I have a > GrobidExtractor.properties file containing the correct URL on my classpath, > but it doesn't seem to get found - I get an error because > it's trying to access Grobid on localhost:8080. > WARNING: Interceptor for > {http://localhost:8080/processHeaderDocument}WebClient has thrown exception, > unwinding now >org.apache.cxf.interceptor.Fault: No message body writer has been found for >class org.apache.cxf.jaxrs.ext.multipart.MultipartBody, ContentType: >multipart/form-data > at > org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1220)Is > there some other way to tell Tika or the JournalParser where to find Grobid? > The Javadocs were not helpful in this regard. > > > > >
