I am trying to take some code that successfully accesses data via Xindice in a standalone Java application, and make it work from within a Java Servlet (using Tomcat 4 as my servlet engine). For some reason, when I attempt to access a collection within my servlet code, I getn an XMLDB exception. The exception message is:
org.xmldb.api.base.XMLDBException: A connection to the Database instance 'db' could not be created. Error: Cannot create resource URL. Please set the openorb.home property. Does anyone know what could cause this problem. Any idea why running from within a servlet would make a difference? I've downloaded the OpenORB source and been able to find that the error happends within the ORB.init() method. Any suggestions would be appreciated. - Tim
