You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/02/07 10:23:27 UTC

DO NOT REPLY [Bug 26456] - First Xindice DB is created in current directory (instead of WEB-INF?)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26456

First Xindice DB is created in current directory (instead of WEB-INF?)

bdelacretaz@codeconsult.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DB directory is created on  |First Xindice DB is created
                   |startup                     |in current directory
                   |                            |(instead of WEB-INF?)



------- Additional Comments From bdelacretaz@codeconsult.ch  2004-02-07 09:23 -------
The notice comes twice because the Xindice driver is loaded twice (or two
drivers are loaded) in cocoon.xconf.

According to CVS (cvs annotate src/blocks/xmldb/conf/xmldb.xconf) the second
instance was added by joerg when resurrecting the XMLDB samples.

I also noticed that two db directories are created:

$ rm -rf ./build/webapp/WEB-INF/db ./db
$ ./cocoon.sh servlet

says:

- No configuration file specified, going with the default configuration
- The database configuration file is not specified and there was no
xindice.db.home property set, so Xindice was unable to determine a database
location. Database will be created relative to the current directory.
- Database points to /Users/bert/workspace/apache/cocoon-2.1/db
- [main] '/db/system/SysSymbols' Set object system_SysConfig
- [main] '/db/system/SysConfig' Set document database.xml

- No configuration file specified, going with the default configuration
- The database configuration file is not specified and there was no
xindice.db.home property set, so Xindice was unable to determine a database
location. Database will be created relative to the current directory.
server.properties not found, using command line or default properties
Opening database:
/Users/bert/workspace/apache/cocoon-2.1/build/webapp/WEB-INF/db/cocoondb

So it looks like the configuration of the first Xindice database is missing,
which causes the DB to be created in the current directory.

Do the samples really need two databases?