Author: manaRH
Date: 2013-02-21 07:52:09 -0500 (Thu, 21 Feb 2013)
New Revision: 15419
Modified:
branches/enterprise/WFK-2_1/examples/blog/blog-web/src/main/webapp/WEB-INF/pages.xml
branches/enterprise/WFK-2_1/examples/pom.xml
Log:
bz878006 rolled back previously removed exception handling due Hibernate
search 4.2.0 update
Modified:
branches/enterprise/WFK-2_1/examples/blog/blog-web/src/main/webapp/WEB-INF/pages.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/blog/blog-web/src/main/webapp/WEB-INF/pages.xml 2013-02-21
12:51:55 UTC (rev 15418)
+++
branches/enterprise/WFK-2_1/examples/blog/blog-web/src/main/webapp/WEB-INF/pages.xml 2013-02-21
12:52:09 UTC (rev 15419)
@@ -58,4 +58,9 @@
<action execute="#{blog.hitCount.hit}"/>
</page>
+ <exception class="org.hibernate.search.errors.EmptyQueryException">
+ <redirect view-id="/search.xhtml">
+ <message severity="warn">Given query is too simple. Try
again.</message>
+ </redirect>
+ </exception>
</pages>
Modified: branches/enterprise/WFK-2_1/examples/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/pom.xml 2013-02-21 12:51:55 UTC (rev 15418)
+++ branches/enterprise/WFK-2_1/examples/pom.xml 2013-02-21 12:52:09 UTC (rev 15419)
@@ -43,8 +43,6 @@
</organization>
<properties>
- <!--
<version.org.hibernate.search>4.2.0.Beta1</version.org.hibernate.search>
-->
-
<!-- Excluded TestNG groups (ex: slow annotated tests won't run during
the test phase) -->
<tests.excludedGroups>slow</tests.excludedGroups>
@@ -184,7 +182,7 @@
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
- <version>${version.jbossas7}</version>
+ <version>7.3.Final</version>
<executions>
<execution>
<phase></phase>
@@ -285,32 +283,6 @@
<version>2.0.1</version>
</dependency>
- <!-- Hibernate search version override due to JBSEAM-4984
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search</artifactId>
- <version>${version.org.hibernate.search}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search-analyzers</artifactId>
- <version>${version.org.hibernate.search}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search-engine</artifactId>
- <version>${version.org.hibernate.search}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search-infinispan</artifactId>
- <version>${version.org.hibernate.search}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-search-orm</artifactId>
- <version>${version.org.hibernate.search}</version>
- </dependency>-->
</dependencies>
</dependencyManagement>
Show replies by date