Mark,
Thanks for the response, but I have set the path to my config file via a JVM -D variable in catalina.sh. Also, when I request the pages and/or add the collection, the log indicates my classes are accessing the same db location as the cocoon psuedo protocol. Finally, after I restart and recreate the collection, the documents that were in that specific collection previously are still there (I never deleted them, I left documents in the collection and restarted Tomcat). I know little of the internals of Xindice, but it seems strange that the documents would still be in a collection that after restart was unavailable. Other than this issue, I am able to add, delete, and edit documents via my app. Any other ideas as to what this could be? I truly appreciate your invaluable input.
-Julian
"Mark J. Stang" <[EMAIL PROTECTED]> wrote:
Julian,
I believe the issue is that when Xindice starts up, it finds
its db files based on environment variables. Or if those
are not set correctly, then it defaults to where you
started the "app" from. From the command-line
Xindice is using XINDICE_HOME. From Tomcat,
it isn't the same. So, you may have more than one
set of db files. Take a look around...
regards,
Mark
"_| |_| |_ ][ /-\\ |\\|" wrote:
> 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
--
Mark J Stang
System Architect
Cybershop Systems
begin:vcard
n:Stang;Mark
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Mark Stang
end:vcard
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more