Hi,

I trying to use Xindice embedded into JBoss. I.e. I've defined it as a JMX 
service and ask it to
start up when JBoss does and shut down together with JBoss. I've packaged the 
necessary jars into a
sar (service archive) and Xindice starts up fine. I set the xindice_home system 
property and pass
the location of the server.xml config file to Kernel when calling the 
constructor.

The problem I have is that I'm unable to get the root collection :
        DatabaseManager.getCollection("xmldb:xindice:///db/");
return the following error:

org.xmldb.api.base.XMLDBException: Collection not found: /db/
        at 
org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.<init>(CollectionImpl.java:140)
        at 
org.apache.xindice.client.xmldb.xmlrpc.DatabaseImpl.getCollection(DatabaseImpl.java:143)
        at 
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:151)
        at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
        at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
        at rpn.db.XmlDbService.startService(Unknown Source)

I guess I need to change my configuration in server.xml but I'm unable to find 
documentation on
this. For the following snippet:

         <service class="org.apache.xindice.server.services.XindiceService" 
name="Xindice">
            <root-collection dbroot="./db/" name="db" security="false">
               <queryengine>
                  <resolver autoindex="false"
class="org.apache.xindice.core.query.XPathQueryResolver" />
                  <resolver 
class="org.apache.xindice.core.xupdate.XUpdateQueryResolver" />
               </queryengine>
            </root-collection>

What is the dbroot attribute and what is the name?

I'm using a CVS sanapshot as of today.


Best regards,
Per


Reply via email to