On 12/11/2013 8:54 PM, Varun Krishna Parthasarathy wrote: > I am trying to install solr 4.6.0 under glassfish 3.1.2.2, and have > followed the instructions given at > http://wiki.apache.org/solr/SolrGlassfish and > http://solrwithglassfish.blogspot.in/ > But either of the two does not seem to work for me. I am getting the http > status 404 the requested resource is not available. > > Can you please help me configuring solr4.6.0 with glassfish 3.1.2.2.
There are two main hurdles with any servlet container other than the included Jetty. One is getting it to extract and start the .war file, the other (if using Solr 4.3 or later) is the logging jars and the logging config (log4j.properties), which are no longer included in the .war file. For best results, the logging jars must be made available to the servlet container before Solr is loaded. Solr will not start if the SLF4J jars cannot be properly loaded. http://wiki.apache.org/solr/SolrLogging#Solr_4.3_and_above One option, if you can't figure out how to get external logging jars in the proper location, is to add the logging jars to the war file, under WEB-INF/lib, which is how Solr was packaged before version 4.3. I know nothing about Glassfish. The Jetty included in the example is the only container that's actually tested, and it's strongly recommended that you use that instead of any other container choice. It is a production quality container. It would not be included if it were only good enough for proof of concept installs. Also, a number of large-scale public-facing systems use Jetty. http://www.infoq.com/news/2009/08/google-chose-jetty Beyond what I've said here, you may need help from Glassfish support resources. Thanks, Shawn