Are you sure that these versions use same configuration file format, and same file format? Do you have config.xml similar to what is in xindice 1.1?

(sorry for asking you questions - I have not worked with 1.0)



On 1.0 I don't have any config.xml and I must admit that I didn't think about checking its content
on 1.1. But since I'm now fighting against 1.1 for several days, blocking my work, and just recognized,
that xpath expressions of my application ([EMAIL PROTECTED]>=..] ) which worked on 1.0 don't work
anymore, I decided to stay with 1.0 until 1.1 is a little easier to use. I'm kind of frustrated :-(



Are you sure that you have latest version, and you have endorsed libs issue resolved correctly?
If yes, then you have to submit a bug report. You can easily do so by modifying test case XPathQueryResolverTest and running it.


It came to me also, that if binary format is not compatible, then you should be able to export from 1.0 and import content into 1.1 using command line tools.

Vadim

Hi again,
yes I use the version from cvs. But the xpath problem was a problem in my code.
But the problem with the disappearing collections remains.


I just tried to do everything from scratch. Maybe I did something wrong or forgot something:

I set the XINDICE_HOME to be my cvs working directory I checked out to.
I set my JAVA_ENDORSED_DIRS to %JAVA_HOME%\jre\lib\endorsed where I put
xalan-2.5.2.jar, xerces-2.6.0.jar and xml-apis.jar.

I checked out the latest version from cvs and executed the tomcat-deploy task. A directory
${TOMCAT_HOME}\webapps has been created with a war and an xml file in it (obviously
my TOMCAT_HOME has not been recognized although set as environment variable).


I copied both files to the webapps directory and started tomcat. Two contexts are now running:
xindice and xindice-1.1b3-dev. I reckon it's both the same just with an alias, since there is no
xindice directory in my webapps directory?


I used the command line tool to create a collection:
xindice ac -c xmldb:xindice://localhost:8080/db -n MonA
which says: Collection created.

I started my application with those two arguments, where ../lib is my application's lib dir containing the
3 jars above and some more.
<jvmarg value="-Djavax.xml.parser.SAXParserFactory org.apache.xerces.jaxp.SAXParserFactory" />
<jvmarg value="-Djava.endorsed.dirs ../lib" />
and it seems to work, since according to logging the parser's classname, xerces is used.


My application creates the collections like this (for example):
col = DatabaseManager.getCollection(rootCollection);
service = (CollectionManager)col.getService("CollectionManager", "1.0");
collectionConfig =
"<collection compressed=\"true\" name=\"" + domain + "\">" +
" <filer class=\"org.apache.xindice.core.filer.BTreeFiler\" gzip=\"true\"/>" +
"</collection>";
service.createCollection(domain, DOMParser.toDocument(collectionConfig));
with rootCollection = xmldb:xindice://localhost:8080/db/MonA
domain = textile


The command line tool as well as my application display all created collection's and documents correctly,
but when I restart the database, everything is gone, although the collections are yet in the filesystem. No
difference whether created via command line tool or my own code.
The WEB-INF directory contains MonA/textile/documents with each of those directories containing a
.tbl file and nothing more.


   Did I make any obvious mistake?

            Thanks,
               David






Reply via email to