-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help on SOLR 4.4 Conversion #8
Comments
Unpack the WAR file, replace all the JAR files. If you're not familiar with this, consider it an opportunity to learn (everyone needs to have a basic understanding of Java concepts). |
during port, i got my 27MB dll, but there are tons of class definition not found errors were there. Is it normal behavior ikvmc -out:solr.dll -target:library hadoop-annotations-2.0.5-alpha.jar commons-cli-1.2.jar commons-codec-1.7.jar commons-configuration-1.6.jar commons-fileupload-1.2.1.jar commons-io-2.1.jar commons-lang-2.6.jar concurrentlinkedhashmap-lru-1.2.jar guava-14.0.1.jar hadoop-auth-2.0.5-alpha.jar hadoop-common-2.0.5-alpha.jar hadoop-hdfs-2.0.5-alpha.jar httpclient-4.2.3.jar httpcore-4.2.2.jar httpmime-4.2.3.jar joda-time-2.2.jar lucene-analyzers-common-4.4.0.jar lucene-analyzers-kuromoji-4.4.0.jar lucene-analyzers-phonetic-4.4.0.jar lucene-codecs-4.4.0.jar lucene-core-4.4.0.jar lucene-grouping-4.4.0.jar lucene-highlighter-4.4.0.jar lucene-memory-4.4.0.jar lucene-misc-4.4.0.jar lucene-queries-4.4.0.jar lucene-queryparser-4.4.0.jar lucene-spatial-4.4.0.jar lucene-suggest-4.4.0.jar noggit-0.5.jar org.restlet.ext.servlet-2.1.1.jar org.restlet-2.1.1.jar protobuf-java-2.4.0a.jar solr-core-4.4.0.jar solr-solrj-4.4.0.jar spatial4j-0.3.jar wstx-asl-3.2.7.jar zookeeper-3.4.5.jar Errors: === i am copying only few errors=== similar to this== there are 100s of these errors
erConfigurationFactory") |
That is an alarming number of warnings, but I wouldn't worry about them at first. What's more important is that Solr seems to have dropped/replaced many of the classes used in the .NET side of the code here, so it doesn't compile. For example, SolrDispatchFilter was dropped (see https://issues.apache.org/jira/browse/SOLR-5091 ). Servlets were replaced with Restlets, so all classes mapping servlets to ASP.NET (i.e. all classes using javax.servlet) must be rewritten. |
i am getting following error while pinging SOLR from asp.net app {"Object reference not set to an instance of an object."} |
As I said in the last message, SolrDispatchFilter was dropped, so I'm not sure what you're running there... |
but i still see this class in 4.4 documentation. http://lucene.apache.org/solr/4_4_0/solr-core/org/apache/solr/servlet/SolrDispatchFilter.html. i will check further on servelet related classes |
i tried to add new document today using following code SolrServer solr = new HttpSolrServer(solrUrl); [RemoteSolrException: Unexpected EOF in prolog Code from HttpSolrServer.Request from line 405 to 424 String charset = EntityUtils.getContentCharSet(response.getEntity()); //405 Pls let me know if you have any insight. |
Were you able to replace the servlet adapters, etc and compile SolrIKVM? Could you push that to your fork of the repository? |
About SolrDispatchFilter, you're right, it's still there, I can see it in solr-core-4.4.0.jar . But it doesn't get compiled to the .NET DLL because of this: Since it's deprecated and will be removed soon anyway, and it depends on servlet, which we need to remove as well, I'd say we ignore it and pretend it's not there anymore... |
Ping! Could you make any progress on this? |
I am looking for asp.net mode. i checked .bat file on github, but mentioned files are not available in solr4.4, there is no solr.jar. only a war file. so my prime question is what all JARS should i convert and what other changes needs to done on asp.net code to trigger & use the SOLR.
The text was updated successfully, but these errors were encountered: