Vadim, Your experience is what I expect. I assume that I have somehow changed my environment such that, either xindice ignores the xindice.db.home property, or it tries it and fails, and then falls back to using the db.home property. I had some difficulty following the code but there seems to be some code which matches this. However, I failed to understand what might trigger the behaviour. Something straightforward, no doubt.
I am using the b3 source code (from the windows source zip file). I edited the xindice.bat file to suppress the debug output as I have done in the following - which was originally extracted from an echo of xindice.bat. I pasted and edited the trace to add the use of a configuration file in the first instance. The second command is without it. This indicates that an explicit configuration file will override the undesirable behaviour I am seeing. As I mentioned before, the - supposedly - identical command works from the eclipse debugger. So, I will just work around the problem until I realise how I have managed shoot my foot. Thanks, /Neil C:\Temp>java -Xms16m -Xmx128m -Dxindice.configuration=c:\Docume~1\cook\MyDoc u~1\ eclips~1\xml-xindice\config\config.xml -Dxindice.home=c:\Docume~1\cook\MyDoc u~1\ eclips~1\xml-xindice -Dxindice.db.home=c:\Docume~1\AllUse~1\Applic~1\DGL -Do rg.a pache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.ap ache .commons.logging.simplelog.defaultlog= -Dcmd.home=c:\Docume~1\cook\MyDocu~1\ ecli ps~1\xml-xindice\bin -classpath C:\tools\java\j2sdk1.4.2_03\lib\tools.jar;c:\Doc ume~1\cook\MyDocu~1\eclips~1\xml-xindice\java\lib\xmlrpc-1.1.jar;c:\Docume~1 \coo k\MyDocu~1\eclips~1\xml-xindice\java\lib\xmldb-xupdate.jar;c:\Docume~1\cook\ MyDo cu~1\eclips~1\xml-xindice\java\lib\xmldb-common.jar;c:\Docume~1\cook\MyDocu~ 1\ec lips~1\xml-xindice\java\lib\xmldb-api-sdk-20021118.jar;c:\Docume~1\cook\MyDo cu~1 \eclips~1\xml-xindice\java\lib\xmldb-api-20021118.jar;c:\Docume~1\cook\MyDoc u~1\ eclips~1\xml-xindice\java\lib\xml-apis.jar;c:\Docume~1\cook\MyDocu~1\eclips~ 1\xm l-xindice\java\lib\xerces-2.6.0.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-x indi ce\java\lib\xalan-2.5.2.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\j ava\ lib\servlet-2.3.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\java\lib\ comm ons-logging-1.0.3.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\dist\xi ndic e-1.1b2.jar;\config org.apache.xindice.tools.XMLTools lc -l -c /db/golf/MGL -v" [INFO] embed - -Specified configuration file: 'c:\Docume~1\cook\MyDocu~1\eclips~ 1\xml-xindice\config\config.xml' [INFO] core - -Database points to c:\Docume~1\AllUse~1\Applic~1\DGL\db [INFO] embed - -Database name: 'db' ERROR : Collection not found! C:\Temp>java -Xms16m -Xmx128m -Dxindice.home=c:\Docume~1\cook\MyDocu~1\eclip s~1\ xml-xindice -Dxindice.db.home=c:\Docume~1\AllUse~1\Applic~1\DGL -Dorg.apache .com mons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.comm ons. logging.simplelog.defaultlog= -Dcmd.home=c:\Docume~1\cook\MyDocu~1\eclips~1\ xml- xindice\bin -classpath C:\tools\java\j2sdk1.4.2_03\lib\tools.jar;c:\Docume~1\coo k\MyDocu~1\eclips~1\xml-xindice\java\lib\xmlrpc-1.1.jar;c:\Docume~1\cook\MyD ocu~ 1\eclips~1\xml-xindice\java\lib\xmldb-xupdate.jar;c:\Docume~1\cook\MyDocu~1\ ecli ps~1\xml-xindice\java\lib\xmldb-common.jar;c:\Docume~1\cook\MyDocu~1\eclips~ 1\xm l-xindice\java\lib\xmldb-api-sdk-20021118.jar;c:\Docume~1\cook\MyDocu~1\ecli ps~1 \xml-xindice\java\lib\xmldb-api-20021118.jar;c:\Docume~1\cook\MyDocu~1\eclip s~1\ xml-xindice\java\lib\xml-apis.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xin dice \java\lib\xerces-2.6.0.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\ja va\l ib\xalan-2.5.2.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\java\lib\s ervl et-2.3.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\java\lib\commons-l oggi ng-1.0.3.jar;c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice\dist\xindice-1.1 b2.j ar;\config org.apache.xindice.tools.XMLTools lc -l -c /db/golf/MGL -v" [INFO] embed - -No configuration file specified, going with the default configur ation [INFO] core - -Database points to c:\Docume~1\cook\MyDocu~1\eclips~1\xml-xindice \.\db [INFO] embed - -Database name: 'db' Total collections: 0 -----Original Message----- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 8:09 PM To: [email protected] Subject: Re: xindice.db.home property [Re-Send] Neil Cook wrote: >When I do not have a configuration file, but set the property >xindice.db.home, the embedded driver seems to ignore it. Neil, I tried: set XINDICE_DB_HOME=C:\Temp\XDB set XINDICE_HOME=C:\Work\xml-xindice xindice.bat lc -l -c /db -v and it worked out just fine: [INFO] DatabaseImpl - -No configuration file specified, going with the default configurati on [DEBUG] Collection - -[main] '/db' setConfig: Compressed, Inline metadata DISABLED [INFO] Database - -Database points to C:\Temp\XDB\db [DEBUG] Collection - -[main] '/db/system' setConfig: Root=<C:\Temp\XDB\db\system> ... Note, that it also printed some DEBUG information, which is missing in your screen dump. What xindice version do you use, why debug is missing? Vadim
