Hi,
I have been running Xindice 1.0 for a while now and
decided to migrate to 1.1b. However after restarting
Tomcat, all the collections I made disappear. On the
other hand, when I use the command line interface,
thge collections do not disappear. Finally, my
collections still seem to have a file folder and *.tbl
file in the db directory.
I am running red hat 8, jsdk 1.41, and running Xindice
1.1 CVS (4/7/03) with the db root set outside Tomcat.
Any help regarding the destruction of my data would be
greatly appreciated.
-Julian
p.s. here is my code to create collections w/o try
catches:
Collection col =
DatabaseManager.getCollection(xmldbDriver + "/" +
dbName + "/");
CollectionManager service =
(CollectionManager)
col.getService("CollectionManager", "1.0");
// Build up the Collection XML
configuration.
DocumentImpl doc = new DocumentImpl();
Element colEle =
doc.createElement("collection");
colEle.setAttribute("compressed",
String.valueOf(compression));
colEle.setAttribute("name",
tmpCollectionName);
doc.appendChild(colEle);
Element filEle =
doc.createElement("filer");
filEle.setAttribute("class",
"org.apache.xindice.core.filer.BTreeFiler");
colEle.appendChild(filEle);
service.createCollection(tmpCollectionName, doc);
col.close()
=====
Live simply so others may simply live.
�
-Ghandi
�
Pluralitas non est ponenda sine neccesitate.
"Entities should not be multiplied unneccesarily"
�
-William of Occam
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com