_*you are deploying a .war file into tomcat, right?*_
Yes.With apache ant you can create a .war file.
_*Has tomcat got the same libraries as your standalone app?*_
Tomcat has got lucene-core-2.4.0,lucene-wordnet-2.4.0,swt.jar,but it
hasn't got libraries like jena,jenatest,commons-logging-1.1.1 because
there are useless.
_* What do the tomcat logs say? Any exceptions?
*_
There are no exceptions.When I run the query a new shell is displayed but with
no result.
_*Are you sure the query is the same?
*_
Yes I'm sure.
_*Are you sure the index is the same - what do IndexReader.maxDoc(), numDocs()
and getVersion() say, standalone
and in tomcat?
*_What do you mean with this question??
P.S: I've followed a getting started topic on lucene web page
http://lucene.apache.org/java/2_4_1/demo.html
But with not satisfaction result.
Marco Lazzara
So you say it isn't really a webapp, and it appears that it isn't a
webstart app either since the index is sitting in a local folder. But
you are deploying a .war file into tomcat, right?
Has tomcat got the same libraries as your standalone app? What do the
tomcat logs say? Any exceptions? Are you sure the query is the same
- what does toString() say? Are you sure the index is the same - what
do IndexReader.maxDoc(), numDocs() and getVersion() say, standalone
and in tomcat?
--
Ian.
On Mon, May 18, 2009 at 6:41 PM, Marco Lazzara <marco.lazz...@gmail.com> wrote:
I've put the index in a folder named
RDFIndexLucene(home/marco/RDFIndexLucene), and when i run the query,(for
example) if I delete the folder Tomcat says :"no segments* file found in
org.apache.lucene.store.FSDirectory@/home/marco/RDFIndexLucene"
It means that Lucene try to search in the index but with no result!
N.B My app isn't a really web app because i create the .war file with
ANT APACHE .
Any ideas?
Il giorno lun, 18/05/2009 alle 19.20 +0200, Uwe Schindler ha scritto:
If it is a webstart app, how do you distribute the index. The webstart app
is downloaded to the user's computer and executed there. The index is not
transferred on webapp download, if it is not included in the JAR file.
Opening indexes from within JAR files (using Class.getResourceAsStream) is
not supported by Lucene. So your application must first download the index
somehow from your server and e.g. store it in a RAMDirectory or a temp
folder.
Uwe
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
-----Original Message-----
From: Marco Lazzara [mailto:marco.lazz...@gmail.com]
Sent: Monday, May 18, 2009 7:13 PM
To: java-user@lucene.apache.org
Subject: Searching index problems with tomcat
Hi everybody,
I've a problem with my searching index.
I've created a stand alone application and it works perfectly.
I've put them on tomcat launching with java web start,but if I run the
query(the same query) I always obtain no results!!!Why??
Obviously My tomcat app is looking at the same index from my standalone
app.
I've tried to put the index everywhere but the result is always the
same.
Please help me!!!
Marco Lazzara
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4085 (20090519) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4086 (20090519) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org