What are the steps for using SearchBlox with OC4J Standalone (9.0.4)?

  1. Create a new directory named searchblox in the $OC4J-HOME/j2ee/home/applications folder.
  2. Extract searchblox.war into the /searchblox directory using, for example, the Java jar tool or a regular unzip command. For Windows, applications like WinZip work as well.
  3. Edit the file $OC4J-HOME/j2ee/home/config/application.xml  and add the following descriptor within the <orion-application> element:

    <web-module id=”searchblox” path=”../../home/applications/searchblox”/>
  4. Edit the fle $OC4J-HOME/j2ee/home/config/http-web-site.xml and add the following descriptor within the <web-site> element:

    <web-app load-on-startup=”true” application=”default” name=”searchblox” root=”/searchblox”/>

    Place a copy of the file $OC4J-HOME/j2ee/home/applications/searchblox/WEB-INF/lib/dom4j.jar in the directory $OC4J-HOME/j2ee/home/applib.

  5. Edit the file $OC4J-HOME/j2ee/home/applications/searchblox/WEB-INF/web.xml so that the element <security-constraint> contains only the elements shown below:

    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Forbidden</web-resource-name>
    <url-pattern>/conἀg.xml</url-pattern>
    <url-pattern>/license.xml</url-pattern>
    <url-pattern>/index/*</url-pattern>
    <url-pattern>/docs/*</url-pattern>
    <url-pattern>/ext/*</url-pattern>
    <url-pattern>/publish/*</url-pattern>
    <url-pattern>/stylesheets/*</url-pattern>
    <url-pattern>/stopwords/*</url-pattern>
    <url-pattern>/logs/*</url-pattern><auth-constraint />
    </web-resource-collection>
    </security-constraint>
  6. Start OC4J.
  7. Go to http://yourhost/searchblox/admin/main.jsp and log in using usernameadmin | passwordadmin.
  8. Go to the Collections tab and click on Add Collection to create a new collection
  9. Choose whether it is an HTTP or FileSystem-based collection, assign a unique name and choose the language for this collection. And click Add to finish creating the collection.
  10. Go to the Root sub-tab, and type in RootURL / Filepath and click OK.
  11. Go to the Indexer sub-tab and click the Index button to start indexing.
  12. Click on the DashBoard sub-tab under collections to view indexing status.
  13. Go to http://yourhost/searchblox/search.jsp to start searching.
Have more questions? Submit a request

Comments