Hi, we have found that some of the jars (like stax-api-xxx.jar, stax-utils.jar, stax-xxx-dev.jar, commons-codec-xxx.jar) were missing in our application's lib directory, by adding these libraries the mentioned exception resolved.
On Tue, May 27, 2008 at 12:56 PM, Akeel <[EMAIL PROTECTED]> wrote: > yes i have all the jar files (dependencies) in my classpath as there is not > compile time exception neither there is any NoCalssDefExceptionError but > there is *NoSuchMethodError* as shown below. > > > On Tue, May 27, 2008 at 11:11 AM, Shalin Shekhar Mangar < > [EMAIL PROTECTED]> wrote: > >> Make sure that you've included all dependencies for SolrJ in your >> classpath. You can find all the dependencies inside dist/solrj-lib >> folder in the binary distribution. >> >> On Mon, May 26, 2008 at 7:28 PM, Akeel <[EMAIL PROTECTED]> wrote: >> > Following exception occurred while executing the line from within my >> > application: >> > *CommonsHttpSolrServer server = new CommonsHttpSolrServer(" >> > http://192.168.1.34:8983/solr/"); >> > *(The class CommonsHttpSolrServer is defined in the solrj client)* >> > * >> > java.lang.NoSuchMethodError: >> > >> org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams; >> > at >> > >> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.setDefaultMaxConnectionsPerHost(CommonsHttpSolrServer.java:420) >> > at >> > >> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<init>(CommonsHttpSolrServer.java:123) >> > at >> > >> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<init>(CommonsHttpSolrServer.java:103) >> > at >> > >> org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.<init>(CommonsHttpSolrServer.java:79) >> > >> > Note: I am using nighlty build of 05-21-08 (because of solrj) >> > Someone help me >> > >> > -- >> > Thanks and Regards, >> > Akeel ur Rehman Faridee >> > http://riseofpakistan.blogspot.com >> > cell: 0321-4714151 >> > ==================================================== >> > When there is injustice in society, then everyone will go to politics >> > Except the two kinds: those who are timid and those who are materialist >> > (Aristotle) >> > ==================================================== >> > >> >> >> >> -- >> Regards, >> Shalin Shekhar Mangar. >> > > > > -- > Thanks and Regards, > Akeel ur Rehman Faridee > http://riseofpakistan.blogspot.com > cell: 0321-4714151 > ==================================================== > When there is injustice in society, then everyone will go to politics > Except the two kinds: those who are timid and those who are materialist > (Aristotle) > ==================================================== >