Hi list, Any one know the how-to integration solr with netbeans?
The reasons I want to have solr in netbeans: + to avoid the long classpath configuration in the environment variables + avoid complicated steps (especially when starting and restarting the glassfish server), + help with debugging the app. *=* *It simply integrate all the processes.* So far, it is ok. I have netbeans run the app in the browser, view the admin pages, but got error when submit the search button. Here is the error message: HTTP Status 400 - Missing solr core name in path I found the glassfish' log file reporting: [#|2012-10-11T23:19:51.468+0700|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|..........Setting urlScheme to: http://|#] This happened since I put the solr/home folder into the netbeans project and hardcode solr/home path in solr.xml file. This is what I have done to fix "Setting urlScheme to: http://" : add in the solrconfig.xml file this configuration <requestHandler name="standard" class="solr.SearchHandler" default="true" startup="lazy"> <shardHandlerFactory class="HttpShardHandlerFactory"> <int name="socketTimeout">1000</int> <int name="connTimeout">5000</int> <str name="urlScheme">http://127.0.0.1:8080/SolrRedo</str> </shardHandlerFactory> </requestHandler> Results: The glassfish log file indicate this progress [#|2012-10-11T23:19:51.796+0700|INFO|glassfish3.1.2|org.apache.solr.handler.component.HttpShardHandlerFactory|_ThreadID=68;_ThreadName=Thread-2;|Setting urlScheme to: http://127.0.0.1:8080/SolrRedo|#] However, the problem still happened (HTTP Status 400 - Missing solr core name in path). Can anyone help? Many thanks before. Kind regards, Hanjoyo