You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Andy Putnins <pu...@lett.com> on 2008/12/08 04:05:12 UTC
"no filer" error
I've installed xindice-1.1 on an Ubuntu 8.10 (Intrepid) system running it's stock
tomcat6 by putting the war file, named xinice.war, into tomcat's webapps directory.
I also installed the addressbook application, with the mods described in this forum's
thread "re: install xindice into tomcat6.0" by Natalia Shilenkova.
When I browse to http://andy:8888/db, I get the "ugly debug tool" and can
navigate to db/system/SysConfig, etc. without error.
However, I get the following error whenever I try to use the command line tool:
/usr/local/java/xml-xindice-1.1/bin$ ./xindice li -c xmldb:xindice://andy:8888/db
trying to register database
XMLDB Exception 1: org.apache.xmlrpc.XmlRpcException: Collection 'db' cannot store resources (no filer)
I can browse to http://andy:8888/addressbook, and I see the application, but when I
try the "List Contacts" link, I get "An ERROR has occured!!!" with no additional
information. Likewise when I try to add a contact.
The tomcat logs have no xindice-related information, other than frequent entries
like the following in the catalina log:
Dec 7, 2008 8:36:06 PM org.apache.xindice.core.DatabaseChangeObserver$FlushTask run
INFO: Successfully flushed 0 collections out of 0
The first step here is to get some useful loggin going here, but I can't figure out
how to configure it.
Any advice on how to proceed would be greatly appreciated!
- Andy
Re: "no filer" error
Posted by Natalia Shilenkova <ns...@gmail.com>.
On Mon, Dec 8, 2008 at 10:49 AM, Andy Putnins <pu...@lett.com> wrote:
> Natalia - thanks for enlightening me :-).
You're welcome :)
> How about logging - how can I configure xindice/tomcat6 for finer logging to
> a separate (xindice) log file?
You can try this configuration:
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = xindice.
org.apache.xindice.level=DEBUG
org.apache.xindice.handlers=org.apache.juli.FileHandler
These settings should be in the file called logging.properties under
webapps/xindice/WEB-INF/classes directory.
This will put all Xindice messages in a separate file. The addressbook
app uses System.err for printing its error messages and exceptions so
they should end up in tomcat logs directory in catalina.out file. For
addressbook diagnostic messages to appear in separate log file, it has
to use commons-logging and have logging.properties file similar to the
one above.
Natalia
>
> - Andy
Re: "no filer" error
Posted by Natalia Shilenkova <ns...@gmail.com>.
Hi Andy,
It looks like the addressbook app complains because it cannot find the
collection "addressbook" that is used by it to store contacts. To
create the collection, please try the following command:
bin/xindice ac -c xmldb:xindice://localhost:8888/db -n addressbook
You need to restart the addressbook application after the collection
has been created.
As for "no filer" message - this is legitimate. Only collections with
filers can have indexers (li command stands for "list indexers"). /db
is the top level collection, also known as database, has no filer and
can only store other collections, but not documents. However, it is
possible to list collection in /db:
bin/xindice lc -c xmldb:xindice://localhost:8888/db
or list indexers in the collection addressbook if it is created already:
bin/xindice li -c xmldb:xindice://localhost:8888/db/addressbook
Natalia
On Sun, Dec 7, 2008 at 10:05 PM, Andy Putnins <pu...@lett.com> wrote:
> I've installed xindice-1.1 on an Ubuntu 8.10 (Intrepid) system running it's stock
> tomcat6 by putting the war file, named xinice.war, into tomcat's webapps directory.
> I also installed the addressbook application, with the mods described in this forum's
> thread "re: install xindice into tomcat6.0" by Natalia Shilenkova.
>
> When I browse to http://andy:8888/db, I get the "ugly debug tool" and can
> navigate to db/system/SysConfig, etc. without error.
>
> However, I get the following error whenever I try to use the command line tool:
> /usr/local/java/xml-xindice-1.1/bin$ ./xindice li -c xmldb:xindice://andy:8888/db
> trying to register database
> XMLDB Exception 1: org.apache.xmlrpc.XmlRpcException: Collection 'db' cannot store resources (no filer)
>
> I can browse to http://andy:8888/addressbook, and I see the application, but when I
> try the "List Contacts" link, I get "An ERROR has occured!!!" with no additional
> information. Likewise when I try to add a contact.
>
> The tomcat logs have no xindice-related information, other than frequent entries
> like the following in the catalina log:
> Dec 7, 2008 8:36:06 PM org.apache.xindice.core.DatabaseChangeObserver$FlushTask run
> INFO: Successfully flushed 0 collections out of 0
>
> The first step here is to get some useful loggin going here, but I can't figure out
> how to configure it.
>
> Any advice on how to proceed would be greatly appreciated!
>
> - Andy
>
>