Re: Lucene and JSP

2008-11-09 Thread Noble Paul നോബിള്‍ नोब्ळ्
You can use a ContextListener in a servlet engine (like Tomcat) . ContextListener has callback methods for init an destroy. You may open an IndexSearcher in the init and store it in the ServletContext by a name and every servlet can use that. When the app is stopped you get a calllback and you can

Re: Lucene and JSP

2008-11-08 Thread Rafael Cunha de Almeida
On Sat, 8 Nov 2008 10:53:43 + "Mindaugas Žakšauskas" <[EMAIL PROTECTED]> wrote: > > How do I keep only one IndexSearcher open for all the searches on my > > website? > > In order to keep your IndexSearcher open, simply do not close it and > serve the reference to the same object instance for

Re: Lucene and JSP

2008-11-08 Thread Mindaugas Žakšauskas
> How do I keep only one IndexSearcher open for all the searches on my > website? In order to keep your IndexSearcher open, simply do not close it and serve the reference to the same object instance for different HTTP request clients. This can easily be achieved using Singleton wrapper around Ind

Lucene and JSP

2008-11-07 Thread Rafael Cunha de Almeida
Hello, I'm writing my first JSP application, so this may be too much of a newbie question, in which case I hope you can refer me to documentation which can help me out. How do I keep only one IndexSearcher open for all the searches on my website? -

Re: lucene and jsp

2005-11-06 Thread Manoj Kr. Sheoran
You should check your logs on server side(on tomcat). I am sure some exception is generated over there. --Manoj - Original Message - From: "Gaston" <[EMAIL PROTECTED]> To: Sent: Saturday, November 05, 2005 10:51 PM Subject: lucene and jsp > Hallo, > > I know

Re: lucene and jsp

2005-11-06 Thread Valerio Schiavoni
it seems like the problem is from here: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.lucene.writeLockTimeout read) try to use this properly: System.setProperty("disableLuceneLocks", "true"); 2005/11/5, Gaston <[EMAIL PROTECTED]>: > > Hallo, > > I

lucene and jsp

2005-11-05 Thread Gaston
Hallo, I know my topic is a little bit out of topic. but I am trying and trying to do something without no effort. I have a very simple application.I tested this application on my homepc with tomcat 3.3.2 and it worked. But on the the server off my webhosting agency it does not work. I putted