You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Raivo Rebane <ra...@r-systems.ee> on 2020/12/09 19:25:07 UTC

Problem with HttpSolrClient.Builder on Windows with tomcat

Hello

I have problem with HttpSolrClient.Builder on Windows with tomcat

I have follwing code lines in my programm:
System.out.println("Trying HttpSolrClient = " + url );
LibraryServlet.solrClientClient = new 
HttpSolrClient.Builder(url).withConnectionTimeout(5000).withSocketTimeout(3000).build();
System.out.println("Trying HttpSolrClient sucessfull ");

and project WEB-INF/lib contains following jars:
commons-codec-1.15.jar*
commons-httpclient-3.1.jar*
commons-io-1.4.jar*
httpclient5-5.0.3.jar
slf4j-api-1.8.0-beta4.jar
slf4j-log4j12.jar*
solr-solrj-8.6.3.jar*

On Ubuntu I have following tomcat output
Trying HttpSolrClient = http://localhost:8983/solr/clients
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 
prior to 1.8.
SLF4J: Ignoring binding found at 
[jar:file:/home/hydra/Librarian/target/Librarian/WEB-INF/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Ignoring binding found at 
[jar:file:/opt/tomcat/apache-tomcat-9.0.38/lib/nlog4j-1.2.19.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Ignoring binding found at 
[jar:file:/opt/tomcat/apache-tomcat-9.0.38/lib/logback-classic-1.1.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#ignoredBindings for an 
explanation.
Trying HttpSolrClient sucessfull

But on Windows tomcat I have only one line:
Trying HttpSolrClient = http://localhost:8983/solr/clients

and it's hangs !!!

What is the reason ?

Regards
Raivo