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/23 08:59:22 UTC
Is a named XML resource unique in the entire db?
Hi,
I encountered something i consider unusual and i am not sure if this is
a feature or bug in xindice. when i create a named XMLResource e.g.
doc 1 and put this resource in a collection e.g. col1 and later i
wanted to "move" doc1 to a new collection e.g. col2, i simply just do
the following col2.storeResource(doc1). It seems that a named
XMLResource is stored as a key-value paired and thus it wont allow for
duplicate documents i.e. I wont be able to have doc1 in both col1 and
col2. Is this true?
Thanks in advance.
chung-onn
Re: Is a named XML resource unique in the entire db?
Posted by Cheong Chung Onn <ch...@hs-integrating.com>.
Hi all,
I apologize for the false alarm. It seems that i can have a document of
the same name in different collections :)
regards
chung-onn
On 23 Feb 04, at 3:59 PM, Cheong Chung Onn wrote:
> Hi,
>
> I encountered something i consider unusual and i am not sure if this
> is a feature or bug in xindice. when i create a named XMLResource
> e.g. doc 1 and put this resource in a collection e.g. col1 and later i
> wanted to "move" doc1 to a new collection e.g. col2, i simply just do
> the following col2.storeResource(doc1). It seems that a named
> XMLResource is stored as a key-value paired and thus it wont allow for
> duplicate documents i.e. I wont be able to have doc1 in both col1 and
> col2. Is this true?
>
> Thanks in advance.
> chung-onn
>
RE: Is a named XML resource unique in the entire db?
Posted by Chen Longtai <lt...@essex.ac.uk>.
The problem is still the same! No matter what I try, the same problem
occurs again..
Can you send me a step by step guide on how to install Xindice with
tomcat?
Thanks.
-----Original Message-----
From: Cheong Chung Onn [mailto:chungonn@hs-integrating.com]
Sent: Monday, February 23, 2004 12:44 PM
To: Chen Longtai
Cc: xindice-users@xml.apache.org
Subject: Re: Is a named XML resource unique in the entire db?
Hi Longtai
C:\xindice\dist>xindice xmldb:xindice://localhost:9000/DB
I believe the "db" is all lowercase i.e. xindice
xmldb:xindice://localhost:9000/db
Btw, when tomcat is running please validate xindice is running by using
the url http://localhost:9000/xindice , you should see an almost empty
xindice web page. Play around that page, then use the commandline to
access xindice.
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\j2sdk_nb\j2sdk1
/4/2\lib\tools/jar;c:\xindice\java\lib\commons-logging-1/0/3/jar;c:\xind
ice\java
\lib\servlet-2/3/jar;c:\xindice\java\lib\xalan-2/5/2/jar;c:\xindice\java
\lib\xer
ces-2/6/0/jar;c:\xindice\java\lib\xindice/jar;c:\xindice\java\lib\xml-ap
is/jar;c
:\xindice\java\lib\xmldb-api-20021118/jar;c:\xindice\java\lib\xmldb-api-
sdk-2002
1118/jar;c:\xindice\java\lib\xmldb-common/jar;c:\xindice\java\lib\xmldb-
xupdate/
jar;c:\xindice\java\lib\xmlrpc-1/1/jar;;\config
>From you output, i am not sure what was the class that is not found and
your jvm is complaining about. please follow my suggestion describe
above and in my previous response first. you need to ensure that xindice
is setup properly before using the commandline
hope this helps.
chung-onn
Re: Is a named XML resource unique in the entire db?
Posted by Cheong Chung Onn <ch...@hs-integrating.com>.
Hi Longtai
> C:\xindice\dist>xindice xmldb:xindice://localhost:9000/DB
>
I believe the "db" is all lowercase i.e. xindice
xmldb:xindice://localhost:9000/db
Btw, when tomcat is running please validate xindice is running by using
the url http://localhost:9000/xindice , you should see an almost empty
xindice web page. Play around that page, then use the commandline to
access xindice.
> Exception in thread "main" java.lang.NoClassDefFoundError:
> Files\j2sdk_nb\j2sdk1
>
> /4/2\lib\tools/jar;c:\xindice\java\lib\commons-logging-1/0/3/jar;c:
> \xindice\java
>
> \lib\servlet-2/3/jar;c:\xindice\java\lib\xalan-2/5/2/jar;c:
> \xindice\java\lib\xer
>
> ces-2/6/0/jar;c:\xindice\java\lib\xindice/jar;c:\xindice\java\lib\xml-
> apis/jar;c
>
> :\xindice\java\lib\xmldb-api-20021118/jar;c:\xindice\java\lib\xmldb-
> api-sdk-2002
>
> 1118/jar;c:\xindice\java\lib\xmldb-common/jar;c:
> \xindice\java\lib\xmldb-xupdate/
>
> jar;c:\xindice\java\lib\xmlrpc-1/1/jar;;\config
From you output, i am not sure what was the class that is not found and
your jvm is complaining about. please follow my suggestion describe
above and in my previous response first. you need to ensure that
xindice is setup properly before using the commandline
hope this helps.
chung-onn
RE: Is a named XML resource unique in the entire db?
Posted by Chen Longtai <lt...@essex.ac.uk>.
Chung onn and all other users,
I am now using Tomcat 5.0 and using Xindice 1.1b3.
The missing xindice.jar in Xindice 1.1b3 was copied from Xindice 1.0.
I download Xindice 1.1b3 and then execute the build command to make the
Xindice1.1b3.war file.
Then I throw it to Tomcat/webapps and start tomcat......
The Xindice servlet was started.......
My tomcat port is set to 9000.
However when I go to the command line and type the following:
C:\xindice\dist>xindice xmldb:xindice://localhost:9000/DB
Exception in thread "main" java.lang.NoClassDefFoundError:
Files\j2sdk_nb\j2sdk1
/4/2\lib\tools/jar;c:\xindice\java\lib\commons-logging-1/0/3/jar;c:\xind
ice\java
\lib\servlet-2/3/jar;c:\xindice\java\lib\xalan-2/5/2/jar;c:\xindice\java
\lib\xer
ces-2/6/0/jar;c:\xindice\java\lib\xindice/jar;c:\xindice\java\lib\xml-ap
is/jar;c
:\xindice\java\lib\xmldb-api-20021118/jar;c:\xindice\java\lib\xmldb-api-
sdk-2002
1118/jar;c:\xindice\java\lib\xmldb-common/jar;c:\xindice\java\lib\xmldb-
xupdate/
jar;c:\xindice\java\lib\xmlrpc-1/1/jar;;\config
The same error occur again! All my .jar was changed to /jar! I wonder
why?
Please advice.
Regards.
-----Original Message-----
From: Cheong Chung Onn [mailto:chungonn@hs-integrating.com]
Sent: Monday, February 23, 2004 7:59 AM
To: xindice-users@xml.apache.org
Subject: Is a named XML resource unique in the entire db?
Hi,
I encountered something i consider unusual and i am not sure if this is
a feature or bug in xindice. when i create a named XMLResource e.g.
doc 1 and put this resource in a collection e.g. col1 and later i
wanted to "move" doc1 to a new collection e.g. col2, i simply just do
the following col2.storeResource(doc1). It seems that a named
XMLResource is stored as a key-value paired and thus it wont allow for
duplicate documents i.e. I wont be able to have doc1 in both col1 and
col2. Is this true?
Thanks in advance.
chung-onn