lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Isakson" <>
Subject RE: Lucene 1.4 RC 3 issue with temp directory
Date Mon, 17 May 2004 21:04:30 GMT
Your catalina.bat script is guessing your CATALINA_HOME environment variable since you don't
have one set and is setting based on that guess. You could work around this
by setting a CATALINA_HOME environment variable or setting the system property org.apache.lucene.lockdir.
That doesn't solve the problem for Lucene locks when is set to a relative path
that does not exist though.


-----Original Message-----
From: Grant Ingersoll [] 
Sent: Monday, May 17, 2004 2:15 PM
Subject: Lucene 1.4 RC 3 issue with temp directory

Hi All,

I just upgraded to 1.4 RC 3 and am now unable to open my index.

I am getting: The system cannot find the path specified
        at Method)

I _have_ reindexed using the new lucene jar.  I am positive the path is correct as I can open
an index in the same directory with the old Lucene with no problems.  I notice that the problem
only occurs when I am deployed inside of Tomcat.  If I run searches on the command line or
through JUnit everything functions correctly.  

When I print out the lockDir location that is trying to be obtained above, it looks like:
C:\ENG\index\LDC\trec-ar-dar\..\temp which is the directory my index resides in, except ..\temp
does not exist.  When I create the directory, it works.  I suppose I could create the temp
directory for every index, but I didn't know that was a requirement.  I do notice that Tomcat
has a temp directory at the top, so it is probably setting some system property (""????)
variable to "..\temp" that is being picked up by Lucene?  The question is, what changed in
RC 3 that would cause this to be used when it wasn't before? 

On a side note, would it be useful to create the lock directory if it doesn't exist?  If the
developers think so, I can submit the patch for it.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message