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 Cheong Chung Onn <ch...@hs-integrating.com> on 2004/02/20 17:31:47 UTC
Having trouble setting up xindice
Hi all,
I am a newbie, i downloaded xindice v 1.1b3 (jar version and even the
cvs version) tried almost everything but doesnt seems to be able to
get xindice going. I tried checking the archives and read through FAQs,
Admin, User and Developer Guides but didn't help.
I would appreciate if any one can help to shed some light to get me
going. Thanks in advance.
My environment - OSX 10.3.2, java ver 1.4.2_03, btw i had set up
-Djava.endorsed.dirs=$XINDICE_HOME/java/lib
Chung-Onn
Below are what i have done and the problems i encountered
Case #1 (downloaded xindice v1.1b3-jar)
=======
+ I tried to follow the setup instructions in xindice developer guide
- Preparing the Server For the Examples
xindice lc -c /db
but i go the following error - ERROR :
/users/chungonn/Desktop/xindice-1.1b3-jar/config/commands.xml (No such
file or directory)
I realized that the config directory is missing and i managed to a copy
of "config" from the xindice-src but i encountered a new problem!
Case #2 (download xindice-src and compile)
=======
+ after i have downloaded the src, i ran the "ant" to build xindice,
but once again i encountered a truckload of warning messages about
deprecated classes, below is a sample of the warning message..
[javac] case Types.DOCUMENT:
[javac] ^
[javac]
/Users/chungonn/Desktop/xindice-1.1b3/java/src/org/apache/xindice/core/
data/Variant.java:480: warning: org.apache.xindice.core.data.Types in
org.apache.xindice.core.data has been deprecated
[javac] case Types.DOCUMENTFRAGMENT:
[javac] ^
[javac] 43 warnings
test-build:
[mkdir] Created dir:
/Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
[mkdir] Created dir:
/Users/chungonn/Desktop/xindice-1.1b3/build/test-results
[javac] Compiling 37 source files to
/Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
[javac]
/Users/chungonn/Desktop/xindice-1.1b3/java/tests/src/org/apache/
xindice/StressTests.java:67: warning:
org.apache.xindice.core.filer.HashFiler in
org.apache.xindice.core.filer has been deprecated
[javac] import org.apache.xindice.core.filer.HashFiler;
[javac] ^
[javac]
/Users/chungonn/Desktop/xindice-1.1b3/java/tests/src/org/apache/
xindice/core/filer/HashFilerTest.java:68: warning:
org.apache.xindice.core.filer.HashFiler in
org.apache.xindice.core.filer has been deprecated
[javac] super(name, new HashFiler());
[javac] ^
[javac] 2 warnings
[copy] Copying 40 files to
/Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
jar-release:
[jar] Building jar:
/Users/chungonn/Desktop/xindice-1.1b3/dist/xindice-1.1b3.jar
war-release:
[copy] Copying 1 file to /Users/chungonn/Desktop/xindice-1.1b3/dist
[war] Building war:
/Users/chungonn/Desktop/xindice-1.1b3/dist/xindice-1.1b3.war
Re: Having trouble setting up xindice
Posted by Cheong Chung Onn <ch...@hs-integrating.com>.
After the compiling the source, i tried running the xindice lc -c /db
and i got a bunch of messages which doesn't seems to relate to my
xindice "query". Is that the expected output or behaviour of xindice?
Did i miss something?
alps$ ./xindice lc -c /db
[DEBUG] DatabaseImpl - -Using SAX Driver: 'xerces'
[DEBUG] DatabaseImpl - -Using Service Location: '/xindice/'
[DEBUG] CollectionImpl - -Using URL: 'http://127.0.0.1:8888/xindice/'
XMLDB Exception with code 0
Xindice Command Tools v1.1b3
Format: xindice action [switch] [parameter]
Where: [switch] implements:
-c Collection context (must always be specified),
can be either canonical name of the collection
or complete xmldb URL
-e File extension for multiple documents
-f File path for document retrieval and storage
-n Name
-p Index pattern
-q Query string
-s Semi-colon delimited list of namespaces for query in
the form prefix=namespace-uri
-l Use a local database rather then going over the
network.
Should be combined with -d to specify the
configuration to use.
-d Path to the database configuration to use for the local
database. Only applies if -l is specified.
-t Specify the data type in collection index
-v Verbose
--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
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
xpath Queries a Collection using XPath
xupdate Updates a Collection using XUpdate
export Exports a collection/document from a directory tree
shutdown Shuts down the Xindice Server
Examples:
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 test
xindice xpath -c /db/test -s a=http://somedomain.com/schema.xsd -q
/a:foo
xindice xupdate -c /db/test -f /path/to/xupdate.xml
xindice xupdate -c /db/test -n document-to-update.xml -f
/path/to/xupdate.xml
For more information, please read the Xindice - Tools Reference Guide
On 21 Feb 04, at 12:39 AM, Upayavira wrote:
> Cheong Chung Onn wrote:
>
>> Hi all,
>>
>> I am a newbie, i downloaded xindice v 1.1b3 (jar version and even the
>> cvs version) tried almost everything but doesnt seems to be able to
>> get xindice going. I tried checking the archives and read through
>> FAQs, Admin, User and Developer Guides but didn't help.
>>
>> I would appreciate if any one can help to shed some light to get me
>> going. Thanks in advance.
>>
>> My environment - OSX 10.3.2, java ver 1.4.2_03, btw i had set up
>> -Djava.endorsed.dirs=$XINDICE_HOME/java/lib
>>
>> Chung-Onn
>>
>>
>> Below are what i have done and the problems i encountered
>>
>> Case #1 (downloaded xindice v1.1b3-jar)
>> =======
>> + I tried to follow the setup instructions in xindice developer guide
>> - Preparing the Server For the Examples
>> xindice lc -c /db
>> but i go the following error - ERROR :
>> /users/chungonn/Desktop/xindice-1.1b3-jar/config/commands.xml (No
>> such file or directory)
>>
>> I realized that the config directory is missing and i managed to a
>> copy of "config" from the xindice-src but i encountered a new
>> problem!
>>
>> Case #2 (download xindice-src and compile)
>> =======
>> + after i have downloaded the src, i ran the "ant" to build xindice,
>> but once again i encountered a truckload of warning messages about
>> deprecated classes, below is a sample of the warning message..
>>
>> [javac] case Types.DOCUMENT:
>> [javac] ^
>> [javac]
>> /Users/chungonn/Desktop/xindice-1.1b3/java/src/org/apache/xindice/
>> core/data/Variant.java:480: warning:
>> org.apache.xindice.core.data.Types in org.apache.xindice.core.data
>> has been deprecated
>> [javac] case Types.DOCUMENTFRAGMENT:
>> [javac] ^
>> [javac] 43 warnings
>>
>> test-build:
>> [mkdir] Created dir:
>> /Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
>> [mkdir] Created dir:
>> /Users/chungonn/Desktop/xindice-1.1b3/build/test-results
>> [javac] Compiling 37 source files to
>> /Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
>> [javac]
>> /Users/chungonn/Desktop/xindice-1.1b3/java/tests/src/org/apache/
>> xindice/StressTests.java:67: warning:
>> org.apache.xindice.core.filer.HashFiler in
>> org.apache.xindice.core.filer has been deprecated
>> [javac] import org.apache.xindice.core.filer.HashFiler;
>> [javac] ^
>> [javac]
>> /Users/chungonn/Desktop/xindice-1.1b3/java/tests/src/org/apache/
>> xindice/core/filer/HashFilerTest.java:68: warning:
>> org.apache.xindice.core.filer.HashFiler in
>> org.apache.xindice.core.filer has been deprecated
>> [javac] super(name, new HashFiler());
>> [javac] ^
>> [javac] 2 warnings
>> [copy] Copying 40 files to
>> /Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
>>
>> jar-release:
>> [jar] Building jar:
>> /Users/chungonn/Desktop/xindice-1.1b3/dist/xindice-1.1b3.jar
>>
>> war-release:
>> [copy] Copying 1 file to /Users/chungonn/Desktop/xindice-1.1b3/dist
>> [war] Building war:
>> /Users/chungonn/Desktop/xindice-1.1b3/dist/xindice-1.1b3.war
>>
>>
> I don't see your problem. The build has succeeded. It just gave you a
> couple of depracation warnings. But were you able to use the war file,
> for example?
>
> Upayavira
>
Re: Having trouble setting up xindice
Posted by Upayavira <uv...@upaya.co.uk>.
Cheong Chung Onn wrote:
> Hi all,
>
> I am a newbie, i downloaded xindice v 1.1b3 (jar version and even the
> cvs version) tried almost everything but doesnt seems to be able to
> get xindice going. I tried checking the archives and read through
> FAQs, Admin, User and Developer Guides but didn't help.
>
> I would appreciate if any one can help to shed some light to get me
> going. Thanks in advance.
>
> My environment - OSX 10.3.2, java ver 1.4.2_03, btw i had set up
> -Djava.endorsed.dirs=$XINDICE_HOME/java/lib
>
> Chung-Onn
>
>
> Below are what i have done and the problems i encountered
>
> Case #1 (downloaded xindice v1.1b3-jar)
> =======
> + I tried to follow the setup instructions in xindice developer guide
> - Preparing the Server For the Examples
> xindice lc -c /db
> but i go the following error - ERROR :
> /users/chungonn/Desktop/xindice-1.1b3-jar/config/commands.xml (No such
> file or directory)
>
> I realized that the config directory is missing and i managed to a
> copy of "config" from the xindice-src but i encountered a new problem!
>
> Case #2 (download xindice-src and compile)
> =======
> + after i have downloaded the src, i ran the "ant" to build xindice,
> but once again i encountered a truckload of warning messages about
> deprecated classes, below is a sample of the warning message..
>
> [javac] case Types.DOCUMENT:
> [javac] ^
> [javac]
> /Users/chungonn/Desktop/xindice-1.1b3/java/src/org/apache/xindice/core/data/Variant.java:480:
> warning: org.apache.xindice.core.data.Types in
> org.apache.xindice.core.data has been deprecated
> [javac] case Types.DOCUMENTFRAGMENT:
> [javac] ^
> [javac] 43 warnings
>
> test-build:
> [mkdir] Created dir:
> /Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
> [mkdir] Created dir:
> /Users/chungonn/Desktop/xindice-1.1b3/build/test-results
> [javac] Compiling 37 source files to
> /Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
> [javac]
> /Users/chungonn/Desktop/xindice-1.1b3/java/tests/src/org/apache/xindice/StressTests.java:67:
> warning: org.apache.xindice.core.filer.HashFiler in
> org.apache.xindice.core.filer has been deprecated
> [javac] import org.apache.xindice.core.filer.HashFiler;
> [javac] ^
> [javac]
> /Users/chungonn/Desktop/xindice-1.1b3/java/tests/src/org/apache/xindice/core/filer/HashFilerTest.java:68:
> warning: org.apache.xindice.core.filer.HashFiler in
> org.apache.xindice.core.filer has been deprecated
> [javac] super(name, new HashFiler());
> [javac] ^
> [javac] 2 warnings
> [copy] Copying 40 files to
> /Users/chungonn/Desktop/xindice-1.1b3/build/classes-tests
>
> jar-release:
> [jar] Building jar:
> /Users/chungonn/Desktop/xindice-1.1b3/dist/xindice-1.1b3.jar
>
> war-release:
> [copy] Copying 1 file to /Users/chungonn/Desktop/xindice-1.1b3/dist
> [war] Building war:
> /Users/chungonn/Desktop/xindice-1.1b3/dist/xindice-1.1b3.war
>
>
I don't see your problem. The build has succeeded. It just gave you a
couple of depracation warnings. But were you able to use the war file,
for example?
Upayavira