lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrGlassfish" by UweSchindler
Date Sun, 06 Jan 2013 15:23:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrGlassfish" page has been changed by UweSchindler:
http://wiki.apache.org/solr/SolrGlassfish?action=diff&rev1=5&rev2=6

Comment:
Update the docs because Solr 4.1 no longer needs crazy Glassfish configuration changes

  Check the logs directory ($GLASSFISHHOME/glassfishv3/domains/''domainname''/logs) and you
should see the Solr start up including it finding the solr.solr.home and solr.data.dir parameters.
 Goto http://'servername':8080/apache-solr-1.4.0/  to confirm successful installation.
  
  
- == Glassfish and UTF-8 ==
+ == Glassfish and UTF-8 (only needed before Solr 4.1) ==
  
- Solr and Glassfish appear to have a problem similar to Tomcat with UTF-8 [[http://wiki.apache.org/solr/SolrTomcat|SolrTomcat]]
and using GET to make the requests.  Glassfish accepts the URL to contain UTF-8, but seems
to fail with the query parameters.  This is how I handled this problem, I am sure there is
a better way.  
+ <!> [[Solr4.1]] Solr now parses request parameters (in URL or sent with POST using
+ content-type application/x-www-form-urlencoded) in its dispatcher code. It no
+ longer relies on special configuration settings in Tomcat or other web containers
+ to enable UTF-8 encoding, which is mandatory for correct Solr behaviour.
+ 
+ Solr now works out of the box with e.g. Tomcat, JBoss,...
+ 
+ In older Solr versions (before [[Solr4.1]]), you have to revisit this: Solr and Glassfish
appear to have a problem similar to Tomcat with UTF-8 [[http://wiki.apache.org/solr/SolrTomcat|SolrTomcat]]
and using GET to make the requests.
+ 
+ Glassfish accepts the URL to contain UTF-8, but seems to fail with the query parameters.
 This is how I handled this problem, I am sure there is a better way.  
  
  Here is how the problem shows itself:
  
@@ -42, +51 @@

  
  Note the '''METHOD.POST''' which obviously POSTs the data as parameters which Glassfish
does seem to support.  That bypasses the issue of running a non-Embedded Solr instance on
Glassfish with UTF-8 queries under Solrj.
  
- === UTF-8 and sun-web.xml ===
+ === UTF-8 and sun-web.xml (only needed before Solr 4.1) ===
  You can also create sun-web.xml inside $GLASSFISHHOME/glassfishv3/domains/domainname/applications/<solr-directory>/WEB-INF
with the following content:
  {{{
  <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet
2.5//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">

Mime
View raw message