-----Original Message-----
From: Schramm, Rich [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 11, 2002 12:56 AM
To: '[email protected]'
Subject: RE: Unable to run commandI had similar problems last week as a newbie. My case it turned out I didnt have my JAVA_HOME set correctly. (see the windows installation doc for directions.) My symptoms were identical, I kept getting the usage message displayed with no specific error message - as if the command line wasnt being parsed correctly. I debugged by adding several 'echo' statements into the xindiceadmin.bat file to print to the screen what finaly gets set to java as the command, I was able to determine there that it was failing at the step of checking for that environment variable. (This bat file needs some work - known problem....)Hopefully this will get you further along towards running....Once I could add documents, the next tripping point for me was that the commands for xpath queries on windows platforms needs to have quotes that dont appear in the documentation (I found this in previously posted msgs to this list )...Users Guide example says something like: xindice xpath -c /db/data/products -q /[EMAIL PROTECTED]"120320"]on windows this needs to be...xindice xpath -c /db/data/products -q "/[EMAIL PROTECTED]'120320']"-----Original Message-----
From: Xie Xin Hong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 10, 2002 4:09 AM
To: [email protected]
Subject: Unable to run command
hi , all,
I am Xindice newbie. I installed Xindice on Win NT 4.0. Installation was successful and message seems correct when started Xindice. I am also able to read docs through brower by using url: http://localhost:4080/.
the problem is i am not able to run any xindice command even the the simple command like: "xindiceadmin shutdown". Every time I got the help message displayed on screen. following are messages , please help. Thanks in advance.
------- command and messages -------
D:\xml-xindice-1.0\bin>xindiceadmin ac -c /db -n addressbook
Xindice Command Tools v1.0
Format: xindice action [switch] [parameter]
Where: [switch] implements:
-c Collection context (must always be specified)
-e File extension for multiple documents
-f File path for document retrieval and storage
-i Implementing Class for XMLObjects
-n Name
-o URI String for invocation of XMLObject
-p Index pattern
-q Query string
-u Database URI
-y Force Deletion process
-t Specify the data type in collection index
--pagesize Page size for file pages (default: 4096)
--maxkeysize The maximum size for file keys (default: 0=none)
Actions:
xindice [parameter], etc...
ac Adds a collection/nested collection
dc Deletes a collection/Nested collection
import Creates a collection/document from a directory tree
ao Adds an XMLObject to the collection
do Deletes an XMLObject from a collection
li Retrieves a list of Indexers on a Collection
ad Adds a document
addmultiple Adds multiple documents
dd Deletes a document
lc Retrieves a collection/nested collection list
rd Retrieves a document for storage elsewhere
ld Retrieves a list of documents in a particular collection
invoke Invokes an XML Object on a collection
lo Retrieves an XMLObject list from a collection
xpath Queries a Collection using XPath
export Exports a collection/document from a directory tree
shutdown Shuts down the Xindice ServerExamples:
xindice ad -c /db/test -f /tmp/xmldocument -n myxmldocument
xindice dd -c /db/test -n myxmldocument
xindice rd -c /db/test/ocs -f a:\file.xml -n file.xml
xindice xpath -c /db/test/ocs -q testFor more information, please read the Xindice - Tools Reference Guide
-------------- end of message ---------best regards
xin hong
Title: Unable to run command
Schramm, Mark,
thanks for all
your reply.
Schramm, just like what
you said: I didn't set JAVA_HOME properly. Now my Xindice is working! thanks a
lot for your help. I kept thinking it's a command syntax problem. By the way,
what you guys use Xindice for? Now I am using it to develop a prototype for a
XML-Based online technical manual system. I intend to use Xindice as
a manual repository and use Cocoon for converting XML into various
format such as HTML , WML... .
Best
regards
Xin
Hong
- Unable to run command Xie Xin Hong
- Re: Unable to run command Mark J. Stang
- RE: Unable to run command Schramm, Rich
- Re: Unable to run command Xie Xin Hong
- Re: Unable to run command Mark J. Stang
