Tapestry-hibernate / hibernate-search java.lang.Object is not an indexed entity or a subclass of an indexed entity

2014-02-12 Thread George Christman
this be an order of operation causing this? I'm not sure if it's something I have configured wrong in Tapestry or if it's a hibernate-search bug. Thanks /** * * @param sessionManager * p/ * @return */ @Scope(ScopeConstants.PERTHREAD) public static

Re: Tapestry-hibernate / hibernate-search java.lang.Object is not an indexed entity or a subclass of an indexed entity

2014-02-12 Thread Thiago H de Paula Figueiredo
I'd check the Hibernate Search part. The stack trace doesn't look like a Tapestry issue to me. On Wed, 12 Feb 2014 15:02:32 -0200, George Christman gchrist...@cardaddy.com wrote: Hi Guys, I'm seeing the following exception in my logs when I try to start my app. It appears to be random

Re: Tapestry-hibernate / hibernate-search java.lang.Object is not an indexed entity or a subclass of an indexed entity

2014-02-12 Thread George Christman
Thanks Thiago, I'll run it by the hibernate-search team next. On Wed, Feb 12, 2014 at 12:59 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: I'd check the Hibernate Search part. The stack trace doesn't look like a Tapestry issue to me. On Wed, 12 Feb 2014 15:02:32 -0200, George

Re: Hibernate Search Fix

2013-10-11 Thread Lance Java
Seems like it's caused by your jvm's security and accessing a private class. This should work (less verbose too): public static FullTextSession buildFullTextSession( final HibernateSessionManager sessionManager, PropertyShadowBuilder propertyShadowBuilder) {

Re: Hibernate Search Fix

2013-10-11 Thread Lance Java
This would also work (and would only happen at most once per request: @Scope(ScopeConstants.PERTHREAD) public static FullTextSession buildFullTextSession(HibernateSessionManager sessionManager) { return Search.getFullTextSession(sessionManager.getSession()); }

Re: Hibernate Search Fix

2013-10-10 Thread George Christman
Hi, Lance Java offered the following snippet of code back in http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-td5669885.html -- You could add this to your app module: private static class LazyFullTextSession { private

Hibernate Search Fix

2012-04-27 Thread netdawg
Yep. That was it...Tapestry Hibernate Session needs work to play nice within FullTextSession. Workaround is in thread below: http://tapestry.1045711.n5.nabble.com/Hibernate-Search-td4446040.html Also, JIRA already open... https://issues.apache.org/jira/browse/TAP5-1178 I would add 1

Re: Hibernate Search Fix

2012-04-27 Thread Lance Java
You could add this to your app module: private static class LazyFullTextSession { private HibernateSessionManager sessionManager; public LazyFullTextSession(HibernateSessionManager sessionManager) { this.sessionManager = sessionManager; }

Re: Hibernate Search Fix

2012-04-27 Thread netdawg
Interesting...thanks, Lance. Probably improves performance in search results page loading. -- View this message in context: http://tapestry.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-tp5669885p5671534.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Hibernate-Search

2011-06-01 Thread Mark
I'm working on a project where I want to user Hibernate-Search (uses lucene queries and analyzers for stemming, etc.). However, it appears that the session I'm getting from tapestry-hibernate is different enough that I can't use it to create a FullTextSearch. https://issues.apache.org/jira

Re: Hibernate-Search

2011-06-01 Thread Sven Homburg
(sessionManager.getSession()); } with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2011/6/1 Mark mark-li...@xeric.net: I'm working on a project where I want to user Hibernate-Search (uses lucene queries and analyzers for stemming, etc.).  However

Re: Hibernate-Search

2011-06-01 Thread Mark
Hibernate-Search (uses lucene queries and analyzers for stemming, etc.).  However, it appears that the session I'm getting from tapestry-hibernate is different enough that I can't use it to create a FullTextSearch. https://issues.apache.org/jira/browse/TAP5-1178 Seems to indicate

Re: tapestry-hibernate conflicts hibernate-search

2008-02-18 Thread Josh Canfield
https://mail.google.com/I ran into this problem over the weekend. FullTextSessionImplhttp://fisheye.jboss.com/browse/Hibernate/search/trunk/src/java/org/hibernate/search/impl/FullTextSessionImpl.java?r=12806casts the passed session to SessionImplementorhttp://fisheye.jboss.com/browse/Hibernate

Re: tapestry-hibernate conflicts hibernate-search

2007-11-05 Thread Ted Steen
it from that service. then it will work for hibernate-search. public static SessionFactory buildSessionFactory(){ SessionFactory sessionFactory=null; try { sessionFactory = new AnnotationConfiguration().configure() .buildSessionFactory

tapestry-hibernate conflicts hibernate-search

2007-11-03 Thread T. Papke
Hi, in my project, i currently use hibernate 3.2.5 (and hibernate-search 3.0.0) together with tapestry 5.0.6 (and tapestry-hibernate module). The normal Hiberate works as excpeted, but the hibernate fulltext-search runs against an exception - i think because of wrong init of the hibernate

Re: tapestry-hibernate conflicts hibernate-search

2007-11-03 Thread Ted Steen
currently use hibernate 3.2.5 (and hibernate-search 3.0.0) together with tapestry 5.0.6 (and tapestry-hibernate module). The normal Hiberate works as excpeted, but the hibernate fulltext-search runs against an exception - i think because of wrong init of the hibernate session inside the tapestry