httpclient - Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClientBuilder -
i using httpclient components apache following simple program , see below exception:
severe: servlet.service() servlet [dispatcherservlet] in context path [] threw exception [handler processing failed; nested exception java.lang.noclassdeffounderror: org/apache/http/impl/client/httpclientbuilder] root cause java.lang.classnotfoundexception: org.apache.http.impl.client.httpclientbuilder @ java.net.urlclassloader.findclass(urlclassloader.java:381) @ java.lang.classloader.loadclass(classloader.java:424) @ sun.misc.launcher$appclassloader.loadclass(launcher.java:335) @ java.lang.classloader.loadclass(classloader.java:357) @ @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(thread.java:748) my code:
public node maketree(node n, tokenizebydictionary tokenizebydictionary,list<symbolgroup> sglist, hashtable<string, maker> makers) throws ioexception { httpclient client = httpclientbuilder.create().build(); for(symbolgroup s:sglist){ if(s.type.equalsignorecase("symbol")){ pattern(n,s.pattern,s.name, makers.get(s.name)); } else if(s.type.equalsignorecase("heading")) { tokenizewithheadings(n, tokenizebydictionary); } else if(s.type.equalsignorecase("dictionary")) { tokenizewithdictionary(n, tokenizebydictionary); } else if(s.type.equalsignorecase("tags")) { tokenizewithtags(n, tokenizebydictionary); } else if(s.type.equalsignorecase("nlp")) { //httpclient client = new defaulthttpclient(); tokenizeusingnlpoutput(n, client); } } i using
- httpclient-4.5.3 maven dependency
any ideas?
Comments
Post a Comment