Its working now. Thanks. Ryan.
On Thu, Aug 19, 2010 at 2:12 AM, Alex Ott <[email protected]> wrote: > Re all > > Which version of Tika are you using? I saw similar error when I run tika > under Apache Daemon - this was a problem with classloader, that was fixed > by explicit set of system classloader for current thread. This bug was > also fixed in trunk, look to > https://issues.apache.org/jira/browse/TIKA-441 > for details > > > Ryan McV at "Wed, 18 Aug 2010 15:17:20 -0400" wrote: > RM> Yes, I am using the standard tika-parsers.jar. I am using a sun jvm > version 1.6.0_17. The exact stack trace is: > > RM> Exception in thread "Thread-2" sun.misc.ServiceConfigurationError: > org.apache.tika.parser.Parser: Provider > RM> org.apache.tika.parser.asm.ClassParser not found > RM> at sun.misc.Service.fail(Unknown Source) > RM> at sun.misc.Service.access$000(Unknown Source) > RM> at sun.misc.Service$LazyIterator.next(Unknown Source) > RM> at org.apache.tika.config.TikaConfig.<init>(TikaConfig.java:147) > RM> at > org.apache.tika.config.TikaConfig.getDefaultConfig(TikaConfig.java:207) > RM> at > org.apache.tika.parser.AutoDetectParser.<init>(AutoDetectParser.java:46) > RM> at > org.apache.tika.parser.ParsingReader.<init>(ParsingReader.java:104) > RM> at > com.agilemindz.tika.TextExtractor.extractText(TextExtractor.java:60) > RM> at > com.agilemindz.tika.TextExtractor.extractText(TextExtractor.java:46) > RM> at > com.agilemindz.classifier.StandardClassifier.classify(StandardClassifier.java:142) > RM> at > com.agilemindz.listeners.manager.ClassifierManager.gotFile(ClassifierManager.java:53) > RM> at com.agilemindz.listeners.FileListener.run(FileListener.java:62) > RM> at java.lang.Thread.run(Unknown Source) > > > RM> On Wed, Aug 18, 2010 at 5:00 AM, Jukka Zitting < > [email protected]> wrote: > RM> On Tue, Aug 17, 2010 at 11:35 PM, Ryan McV <[email protected]> > wrote: > >> I am using Tika in a Commons Daemon windows service. When I attempt to > >> create a new ParsingReader, I get a ServiceConfigurationError, saying > that > >> the ClassParser cannot be found. If I go into the provider file and > comment > >> out the ClassParser, then the next class in the list generates the > error. > >> In short, I cannot get Tika to load any of the ParserClasses while in a > >> service. However, it works fine in every other environment I've tested. > Any > >> ideas? > RM> > RM> What's the exact ServiceProviderError message (/stacktrace) you > get? > RM> Are you using the standard tika-parsers jar? What JVM version are > you > RM> using? > > > -- > With best wishes, Alex Ott, MBA > http://alexott.blogspot.com/ http://alexott.net > http://alexott-ru.blogspot.com/ >
