Bug 1011671

Summary: "java.lang.NoClassDefFoundError: org/hibernate/search/Search" when performing topic search.
Product: [Community] PressGang CCMS Reporter: Stephen Gordon <sgordon>
Component: CCMS-CoreAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.1CC: lnewson, mcaspers
Target Milestone: ---   
Target Release: 1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 23:49:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1013825    

Description Stephen Gordon 2013-09-24 19:12:06 UTC
Description of problem:

When performing a topic search for topics in the RHOS 3.0 release containing the text "align" I receive this message via a dialog box when I click "Topic Search:"

An error occurred on the server. Please try again and if this problem persists, please log a bug.

java.lang.NoClassDefFoundError: org/hibernate/search/Search

The "Search Results" window displays with the progress ticker looping infinitely, no results are returned.

Version-Release number of selected component (if applicable):

Production.

Comment 1 Lee Newson 2013-09-26 02:38:04 UTC
Fixed in 1.2-SNAPSHOT build 20130926-1221

This was caused by a dependency issue with the Hibernate Search dependency (we were telling it to use the one provided by the Application Server, however it didn't exist).

Workaround: For your case the workaround is to use the "Topic Contents" field instead, as the Free Text Search was primarily meant for more complicated searching using Lucene query syntax (see: http://lucene.apache.org/core/2_9_4/queryparsersyntax.html)

Note: This version currently isn't live anywhere, so I'll update it with a place to verify it once its uploaded.