This mail may be a little messy but that's because I'm very confused since the 1.1 dist's are all messed up. I was a minute away of
moving everything to eXist!
I don't intend this message as a flame!! I know it's in beta, but I want some help understanding what's going on and what I should fix where.
I'm doing a project with a friend using Cocoon 2.0.4 and Xindice 1.0.
We were doing our first tests, where we have a collection with 3 documents and wanted to return the 3 of them with a simple query.
We found that we sometimes got the 3 of them, sometimes 2, etc.. very inconsistent.
Searching into the archives of the list we did some tests by looking at Tomcat's debug log and found a NullPointerException in the cases when the output would be incomplete.
By the way, we're using Tomcat 4.1.18 and J2SE 1.4.1
So we were baffled.. and thought about trying Xindice 1.1b.
Since the documentation is not clear and incomplete we downloaded the
3 distributions: namely, src, jar, and war.
But there are files missing fmor the 3 of them, for example the config/*.xml files
This will make the building to fail saying "Could not find file /devel/xindice-1.1b1/config/xindice.xml to copy."
Some of the .xml files can be downloaded from cvs...
Then there's the question about making 1.1b actually work within Cocoon.
We copied the war file form the war distribution into Tomcat's webapps dir. Tomcat opened it and deployed it fine. But we coudlnt make it work
with our old pipelines which used an url of the type:
xmldb:xindice://localhost:4080/db....
There's no process listening on port 4080 anymore!! I guess now everything works through Tomcat but we're not 100% sure how. (We kinda made it work in the end but we still ahve so many doubts!)
There's also the question about the command line tool. It's in the jar distribution but it doesnt work out of the box. The script looks for
$XINDICE_HOME/dist/xindice*.jar to add to the classpath
but the only distribution with a "dist" directory is the "war" distribution which only has the .war file and not anything like xindice*.jar
It's also missing the config/*.xml files like commands.xml and such
so it won't start!! The only way I found to get a copy of those files was through CVS.
We also replaced Cocoon's libs with the equivalent versions that came with xindice 1.1b.. still wouldnt work, plus we still didnt know what to make of our xmldb:xindice URL...
We tried xindice-embed versions of the URL, previously fixing cocoon.xconf to resolve the resource to the new URL..
No luck there...
We found in the archives of the mailing list, one message stating that
the war file should be renamed to Xindice since xindice expects it to be that way.
Finally after all these changes we made it work with an URL of the type
xmldb:xindice://localhost:8080/db.... and changing the servlet name to Xindice
I think that's what we did because it was 5am and I didnt understand much anymore.
So, in sum: There no single packaging of the many versions of xindice that really works. You have to solve the puzzle of getting some files from the war dist, some files from the jar dist, some files from the src dist, some files form cvs, etc..
Which defeats the purpose of having packaged tar.gz's in the first place!
On the happy side of the story, 1.1b didn't have 1.0's problems and we got the full set of results on our queries!! Yes!!! :-)
Anyone else has had these problems? Anyone wanting to share their stories of Cocoon+Xindice? Did I miss or not understand anything and that's why I got into all this trouble?