You are here

Configuring Solr with JBoss running on Alfresco

This section describes how to configure Solr to communicate with Alfresco deployed on JBoss. The steps describe how to allow Solr to communicate with Alfresco deployed on JBoss 5.1 EAP.

Solr must be deployed on a separate Tomcat instance.

Ensure that Alfresco is installed on JBoss using the instructions described in the section Installing Alfresco on JBoss .

These steps assume that you know the path of the JBoss directory, which is represented as <JBOSS_HOME>.
  1. Create a file called tomcat-users.xml in the <JBOSS_HOME>/server/default/conf directory.
  2. Enter the following content in the tomcat-users.xml file:

    <?xml version='1.0' encoding='utf-8'?>
      Licensed to the Apache Software Foundation (ASF) under one or more
      contributor license agreements.  See the NOTICE file distributed with
      this work for additional information regarding copyright ownership.
      The ASF licenses this file to You under the Apache License, Version 2.0
      (the "License"); you may not use this file except in compliance with
      the License.  You may obtain a copy of the License at

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      <user username="CN=Alfresco Repository Client, OU=Unknown, O=Alfresco Software Ltd., L=Maidenhead, ST=UK, C=GB" roles="repoclient" password="null"/>
  3. Create a folder called <JBOSS_HOME>/server/default/keystore and then copy all of the files from<alfresco.war>/WEB-INF/classes/alfresco/keystore to the new folder.
  4. Configure the SSL connector by adding the following to the <JBOSS_HOME>/server/default/deploy/jbossweb.sar/server.xml file (should be a child of the <Service> tag):

       <Connector port="8443"
            protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https"    
            keystorePass="kT9X6oe68t" keystoreType="JCEKS" secure="true"
            connectionTimeout="240000" clientAuth="false" sslProtocol="TLS"
            truststorePass="kT9X6oe68t" truststoreType="JCEKS"
  5. Configure the JBoss realm by adding the following to the <JBOSS_HOME>/server/default/deploy/jbossweb.sar/server.xml file (should be a child of the <Host> tag):

    <Realm className="org.apache.catalina.realm.MemoryRealm" 
           pathname="<JBOSS_HOME>/server/default/conf/tomcat-users.xml" />
  6. Edit the <JBOSS_HOME>/server/default/conf/ file by adding following properties:

  7. Start the Alfresco server.
You may see a message on the JBoss console similar to the following:
12:23:15,713 WARN  [JSSESocketFactory] SSL renegotiation is disabled, closing connection

You may find that Solr search and/or the Solr tracking is not working.

In this situation, use the following steps:

  • Add the allowUnsafeLegacyRenegotiation="true" option to the JBoss SSL connector.
  • Add the option to JAVA_OPTS.