[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-11-05 Thread epbernard
What happens if you replace hibernate-annotations.jar from the jboss lib (and 
add hibernate-commons-annotations.jar) and properly bundle hibernate-search in 
the EAR?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101992#4101992

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101992
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-10-26 Thread chrisky
I have the same problem
JBoss 4.2.1 with Hibernate 3.0.0 without using SEAM(in EJB)


  | org.hibernate.Session origSession = 
(org.hibernate.Session)em.getDelegate();
  | FullTextSession session = 
Search.createFullTextSession(origSession);
  | 
  | 
  | org.hibernate.Query query;
  | if(searchString.length()  0) {
  | try {
  | MultiFieldQueryParser parser = new 
MultiFieldQueryParser(new String[] {name, note}, 
  |   new StandardAnalyzer());
  | 
  | query = 
session.createFullTextQuery(parser.parse(searchString), Task.class);
  | tasks = query.list();
  | } catch (ParseException e) {
  | log.error(e.getLocalizedMessage(), e);
  | tasks = null;
  | }
  | }
  | else {
  | tasks = executeQuery(Task.class, from Task);
  | }
  | 


  | javax.ejb.EJBException: java.lang.RuntimeException: 
java.lang.NoSuchMethodError: 
org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/Query;
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
  | at 
org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099149#4099149

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099149
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-10-26 Thread chrisky
Ok I got it working... 
It happens that you have to copy the hiberaten-search.jar and the dependency 
jars to the jboss lib folder. it wont work if you got it in EAR (even i have 
include the jar in the application.xml)


chrisky wrote : I have the same problem
  | JBoss 4.2.1 with Hibernate 3.0.0 without using SEAM(in EJB)
  | 
  | 
  |   | org.hibernate.Session origSession = 
(org.hibernate.Session)em.getDelegate();
  |   | FullTextSession session = 
Search.createFullTextSession(origSession);
  |   | 
  |   | 
  |   | org.hibernate.Query query;
  |   | if(searchString.length()  0) {
  |   | try {
  |   | MultiFieldQueryParser parser = new 
MultiFieldQueryParser(new String[] {name, note}, 
  |   |   new 
StandardAnalyzer());
  |   | 
  |   | query = 
session.createFullTextQuery(parser.parse(searchString), Task.class);
  |   | tasks = query.list();
  |   | } catch (ParseException e) {
  |   | log.error(e.getLocalizedMessage(), e);
  |   | tasks = null;
  |   | }
  |   | }
  |   | else {
  |   | tasks = executeQuery(Task.class, from Task);
  |   | }
  |   | 
  | 
  | 
  |   | javax.ejb.EJBException: java.lang.RuntimeException: 
java.lang.NoSuchMethodError: 
org.hibernate.search.FullTextSession.createFullTextQuery(Lorg/apache/lucene/search/Query;[Ljava/lang/Class;)Lorg/hibernate/Query;
  |   | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
  |   | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  |   | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
  |   | at 
org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  |   | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |   | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |   | at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
  |   | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |   | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  |   | at 
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
  |   | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
  |   | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
  |   | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
  |   | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099166#4099166

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099166
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-10-26 Thread chrisky
Well, it does not work... Although it fixed the search by copy the jar to jboss 
lib folder, it break the adding index part...


  | javax.ejb.EJBException: java.lang.RuntimeException: 
java.lang.NoSuchMethodError: 
org.apache.lucene.document.Document.add(Lorg/apache/lucene/document/Field;)V
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
  | at 
org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099200#4099200

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-10-26 Thread chrisky
Ok I have got it fixed this time, both searching and indexing give no error. 
Basically you just have to avoid FullTextSession, create FullTextEntityManager 
instead. I will post the code later on tonight


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099221#4099221

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099221
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-09-26 Thread epbernard
mrmimo wrote : This problem is related to hibernate-search dependencies. For 
me it works when I took the libraries from it's lib dir, and replaced 
apropriate jboss libraries with those from hibernate-search. I had to upgrade 
hibernate3.jar to resolve introduced dependencies.
  | 
  | The bottom line is - current hibernate search is not compatible with 
current JBoss AS.

I beg to differ, I would like to reproduce the issue you guys are having but I 
have not been able to do it so far.
Hibernate Search is compatible with JBoss Seam 2.0 and JBoss AS 4.2 (vanilla), 
the DVDStore demo run in this configuration.
If you upgrade Hibernate Annotations / EntityManager to 3.3.x, then you no 
longer need to define the events, 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4089028#4089028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4089028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-09-25 Thread momochone11
Thanks for your reply mrmimo, I will give that a try

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088548#4088548

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088548
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-09-24 Thread mrmimo
This problem is related to hibernate-search dependencies. For me it works when 
I took the libraries from it's lib dir, and replaced apropriate jboss libraries 
with those from hibernate-search. I had to upgrade hibernate3.jar to resolve 
introduced dependencies.

The bottom line is - current hibernate search is not compatible with current 
JBoss AS.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088175#4088175

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088175
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-09-05 Thread momochone11
I have not found a solution yet, but I am working on other parts of my app 
right now.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4081373#4081373

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081373
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-09-04 Thread srpantano
Please momochone11, you resolved the createFullTextQuery() problem, because I 
am with the same problem and I canĀ“t fix it.

thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4081049#4081049

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081049

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-08-21 Thread momochone11
I am using the Seam 2.0 beta that resides on CVS repositoriy, ie. not the 2.0 
beta that is on the homepage, and yes I did try using Hibernate Search that 
comes with Seam 2.0.

The weird problem is that it works in the seam examples but not on my own app. 
That's why I am wondering if anyone else has the same problem

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076294#4076294

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076294
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-08-20 Thread momochone11
did anyone run into the same problem?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075960#4075960

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-08-20 Thread epbernard
Without using the Search.createFullTextSession is the right way to do it, 
regardless of your problem.

What is strange is that it seems FullTextSession.createFullTextQuery() expect 
to return o.h.Query where it should really return 
org.hibernate.search.FullTextQuery.

Which version of Seam are you using? The latest 2.0 release?

Can you give a try with the Hibernate Search version that is bundled with the 
Seam distribution.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4076068#4076068

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4076068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-08-17 Thread momochone11
I also have tried this method

anonymous wrote : public void testSessionWrapper() throws Exception {
  | FullTextSession s = 
Search.createFullTextSession((org.Hibernate.Session)getEntityManager().getDele
  | gate());
  | QueryParser parser = new QueryParser( title, new 
StopAnalyzer() );
  | 
  | Query query = parser.parse( summary:noword );
  | 
  | FullTextQuery hibQuery = s.createFullTextQuery( query, Location.class);
  | }

and still say, no such method.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075386#4075386

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075386
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodFound createFullTextQuery()

2007-08-17 Thread momochone11
Also, I also tried WITHOUT using Search.createFullTextSession() as suggested by 
documentation.. I have another method that looks like this and still end up 
with the same exception.

public List getSearchResults()
  | {
  | if(searchPattern == null)
  | return null;
  | if(.equals(searchPattern))
  | {
  | searchPattern = null;
  | return getEntityManager().createQuery(select be from Location 
be order by date desc).getResultList();
  | }
  | Map boostPerField = new HashMap();
  | boostPerField.put(identifier, 4f);
  | String productFields[] = {
  | identifier
  | };
  | QueryParser parser = new MultiFieldQueryParser(productFields, new 
StandardAnalyzer(), boostPerField);
  | parser.setAllowLeadingWildcard(true);
  | org.apache.lucene.search.Query luceneQuery = null;
  | try
  | {
  | luceneQuery = parser.parse(searchPattern);
  | }
  | catch(Exception e) { }
  | FullTextSession session = 
(FullTextSession)getEntityManager().getDelegate();
  | org.hibernate.Query query = 
session.createFullTextQuery(luceneQuery, Location.class);
  | return query.list();
  | }

I am quite lost, I followed the example, and the jars are being loaded.  I 
don't understand why it keeps on saying NoSuchMethodFound..

any help is appreciated!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4075389#4075389

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4075389
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user