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. > > >

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 wrote: Hi Guys, I'm seeing the following exception in my logs when I try to start my app. It appears to be random and only

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
what it means. Could 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 * * @return */ @Scope(ScopeConstants.PERTHREAD

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-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-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 Hibern

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. -

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; } publi

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

2011-06-01 Thread Mark
haus.org > > > > > > 2011/6/1 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 >> e

Re: Hibernate-Search

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

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.

Re: tapestry-hibernate conflicts hibernate-search

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

Re: tapestry-hibernate conflicts hibernate-search

2007-11-05 Thread Ted Steen
make a per thread service with the session inside, get it from that service. then it will work for hibernate-search. > > public static SessionFactory buildSessionFactory(){ > SessionFactory sessionFactory=null; > try { >

Re: tapestry-hibernate conflicts hibernate-search

2007-11-04 Thread T. Papke
ionFactory ){ return sessionFactory.openSession(); } I have looked into the code of FullTextSessionImpl in hibernate-search. Do you know why they are casting between org.hibernate.Session to org.hibernate.classic.Session? Thanks a lot, Thomas Ted Steen schrieb: This happens because t

Re: tapestry-hibernate conflicts hibernate-search

2007-11-03 Thread Ted Steen
; 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

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