On Dec 14, 2009, at 9:07 PM, Martin Haye wrote:
>
> I'm considering this to be "experimental", so I'd like feedback from
> Steve
> Majewsky and John Bewley. Do you two feel comfortable grabbing XTF
> from CVS
> and building it from source? That would be preferable but if not I
> can build
> an xtf.jar for you to try.
>
I did a 'cvs update' and 'ant dist' (in WEB-INF directory) and copied
dist/xtf-20091215.war
to my tomcat webapps directory. [ I didn't rename it as I waned to
keep the previous xtf
webapp and compare. I had downloaded sources from CVS earlier to get
that patch for escaping
special chars in the facets. ]
Initially, after tomcat unpacked it, I tried linking my data directory
to webapps/xtf-20091215/data,
and ran the textIndexer, but it exited with the following message:
./bin/textIndexer -index default
TextIndexer v2.2
Purging Incomplete Documents From Indexes:
Index: [/usr/local/tomcat6/webapps/xtf-20091215/index-new/]
No Incomplete Documents Found.
Done.
Indexing New/Updated Documents:
Index: "default"
Cloning Data Directories.
*** Error: class java.io.IOException
java.io.IOException: External command 'perl' exited with status 18.
Output from stderr:
Died at - line 1.
at org.cdlib.xtf.util.DirSync.flushLinks(DirSync.java:230)
at org.cdlib.xtf.util.DirSync.syncDirs(DirSync.java:80)
at org.cdlib.xtf.textIndexer.TextIndexer.doIndexing(TextIndexer.java:
499)
at org.cdlib.xtf.textIndexer.TextIndexer.main(TextIndexer.java:336)
Indexing Process Aborted.
I removed the link to my data files, and instead unpacked the sample
data into the webapp directory.
This time, textIndexer gets quite a bit further before also exiting
with an error:
[ ... ]
Optimizing Index:
Index: [/usr/local/tomcat6/webapps/xtf-20091215/index-new/] ...
Done.
Done.
Updating Spellcheck Dictionary:
Index: [/usr/local/tomcat6/webapps/xtf-20091215/index-new/] ...
[ 0%] Reading word files.
[ 28%] Processed 54281 words.
[ 32%] Building word map.
[ 98%] Read 88423 pairs.
[ 99%] Writing pair data.
[100%] Done.
Done.
Done.
*** Error: class java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError: javax/servlet/ServletException
at
org.cdlib.xtf.textIndexer.TextIndexer.doValidation(TextIndexer.java:688)
at org.cdlib.xtf.textIndexer.TextIndexer.main(TextIndexer.java:396)
Indexing Process Aborted.