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 Llerta amat <ll...@yahoo.es> on 2003/01/30 11:59:47 UTC
Installing xindice from cvs ( Tom Dyson )
Please, I am installing xindice1.1 from cvs, Could anybody tell me what it's happening?
My configuration is as follows:
xml-xindice from cvs (fresh download 1/29/03)
Tomcat version 4.1.18
Java JDK version j2sdk1.4.1_01
Thanks for any help,
Installation steps:
1. Login to Apache public CVS:
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
password: anoncvs
OK
2. Checkout Xindice from CVS
cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout xml-xindice
OK
3. Change to the xml-xindice directory which you've just checked out
cd xml-xindice/
OK
4. Build Xindice with ant
bin/ant
bash-2.05$ bin/ant
dirname bin
/var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
/servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
/java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
/lib/tools.jar
security properties not found. using defaults.
Buildfile: build.xml
init:
can't open /usr/java1.3/lib/tzmappings
src-build:
test-build:
jar-release:
war-release:
release:
BUILD SUCCESSFUL
Total time: 9 seconds
5. Build the Xindice.war file
bin/ant war
bash-2.05$ bin/ant war
dirname bin
/var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
/servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
/java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
/lib/tools.jar
security properties not found. using defaults.
Buildfile: build.xml
BUILD FAILED
Target `war' does not exist in this project.
Total time: 4 seconds
6. Copy Xindice.war into Tomcat's webapps directory
cp Xindice.war [Tomcat home]/webapps/
OK
7. Restart Tomcat
OK
8. Change to the bin directory of your Xindice installation
cd [path to xml-xindice]/bin
OK
9. Test your installation by adding a new Xindice collection
./xindice ac -c /db -n test
bash-2.05$ ./xindice ac -c /db -n test
ERROR : Collection not found!
10. Add a document to the collection
./xindice ad -c /db/test -f test.xml -n test
11. And query it
./xindice xpath -c /db/test -q "//page_title[@id='99:1']"
Notes:
1. You'll see an error if you point your browser to the Xindice servlet, which currently is only designed for XML-RPC access. Work is in progress to provide a browser interface.
2. xindice lc -l -c /db accesses the database locally (-l) and looks into the XINDICE_HOME directory for the db.
xindice lc -c /db accesses the database via XML-RPC and looks into where you started your Tomcat server: [Tomcat home] or [Tomcat home]/bin for the db.
Since Xindice still automatically creates a db, you'll have 2 dbs if you use the local and XML-RPC versions.
3. General questions and offers of support should be directed to the Xindice mailing list.
---------------------------------
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito
Re: Installing xindice from cvs ( Tom Dyson )
Posted by "Vladimir R. Bossicard" <vl...@apache.org>.
>> 4. Build Xindice with ant
>> bin/ant
>>
>> bash-2.05$ bin/ant
>> dirname bin
>> /var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
>> /servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
>> n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
>> /java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
>> b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
>> 4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
>> a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
>> ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
>> /lib/tools.jar
>> security properties not found. using defaults.
>> Buildfile: build.xml
>>
>> init:
>> can't open /usr/java1.3/lib/tzmappings
Removing the build.sh/build.bat/ant.jar and fixing the build.xml file to
properly handle jdk1.4 would certainly solve many problems...
-Vladimir
--
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice
Re: (hopefully not too stupid) newbie question
Posted by Simon Farrow <s....@umist.ac.uk>.
In that case I have no clue sorry I can't be of more help.
> i don't think xindiceadmin exists anymore. the guides supplied are all for
> version 0.6.2, so a few tings no longer apply. if i am incorrect, please let
> me know, but my build did not produce an xindiceadmin
>
> thanks.
> john
>
> ----- Original Message -----
> From: "Simon Farrow" <s....@umist.ac.uk>
> To: <xi...@xml.apache.org>
> Sent: Wednesday, February 12, 2003 11:38 AM
> Subject: Re: (hopefully not too stupid) newbie question
>
>
> > you should be using the xindiceadmin command as opposed to xindice
> > something like:
> >
> > xindiceadmin add_collection -c /db -n tess
> >
> > try ac instead of add_collection first and see what happens though ;-)
> > The line above was taken from the Administrators guide section of the
> > manual.
> >
> >
> > > well, i am stuck at the starting gate here. i've downloaded xindice-1.1b
> > > from cvs (this morning). i built it and installed the war-file into
> tomcat.
> > > restarted tomcat, and looking at http://localhost:8080/xindice-1.1b does
> > > indeed list a few uninteresting things out.
> > >
> > > but when i try to create a collection, i get an error that the
> collection is
> > > not found. that's true, of course, i am trying to create it. so what am
> i
> > > missing here.
> > >
> > > # pwd
> > > /usr/local/jakarta/xindice/bin
> > > # echo $XINDICE_HOME
> > > /usr/local/jakarta/xindice
> > > # ./xindice ac -c /db -n tess
> > > ERROR : Collection not found!
> > >
> > > ---
> > > john guthrie
> > >
> > >
> >
>
Re: (hopefully not too stupid) newbie question
Posted by John Guthrie <jg...@psynapsetech.net>.
i don't think xindiceadmin exists anymore. the guides supplied are all for
version 0.6.2, so a few tings no longer apply. if i am incorrect, please let
me know, but my build did not produce an xindiceadmin
thanks.
john
----- Original Message -----
From: "Simon Farrow" <s....@umist.ac.uk>
To: <xi...@xml.apache.org>
Sent: Wednesday, February 12, 2003 11:38 AM
Subject: Re: (hopefully not too stupid) newbie question
> you should be using the xindiceadmin command as opposed to xindice
> something like:
>
> xindiceadmin add_collection -c /db -n tess
>
> try ac instead of add_collection first and see what happens though ;-)
> The line above was taken from the Administrators guide section of the
> manual.
>
>
> > well, i am stuck at the starting gate here. i've downloaded xindice-1.1b
> > from cvs (this morning). i built it and installed the war-file into
tomcat.
> > restarted tomcat, and looking at http://localhost:8080/xindice-1.1b does
> > indeed list a few uninteresting things out.
> >
> > but when i try to create a collection, i get an error that the
collection is
> > not found. that's true, of course, i am trying to create it. so what am
i
> > missing here.
> >
> > # pwd
> > /usr/local/jakarta/xindice/bin
> > # echo $XINDICE_HOME
> > /usr/local/jakarta/xindice
> > # ./xindice ac -c /db -n tess
> > ERROR : Collection not found!
> >
> > ---
> > john guthrie
> >
> >
>
Re: (hopefully not too stupid) newbie question
Posted by Simon Farrow <s....@umist.ac.uk>.
you should be using the xindiceadmin command as opposed to xindice
something like:
xindiceadmin add_collection -c /db -n tess
try ac instead of add_collection first and see what happens though ;-)
The line above was taken from the Administrators guide section of the
manual.
> well, i am stuck at the starting gate here. i've downloaded xindice-1.1b
> from cvs (this morning). i built it and installed the war-file into tomcat.
> restarted tomcat, and looking at http://localhost:8080/xindice-1.1b does
> indeed list a few uninteresting things out.
>
> but when i try to create a collection, i get an error that the collection is
> not found. that's true, of course, i am trying to create it. so what am i
> missing here.
>
> # pwd
> /usr/local/jakarta/xindice/bin
> # echo $XINDICE_HOME
> /usr/local/jakarta/xindice
> # ./xindice ac -c /db -n tess
> ERROR : Collection not found!
>
> ---
> john guthrie
>
>
Failure to build war file under XP
Posted by Richard Light <ri...@light.demon.co.uk>.
Hi,
I've downloaded Xindice (version 1.0 - the official release). (What's
with this "1.1b", by the way? Is there a later version that is hidden
away somewhere?) I've followed the instructions to build it, and I've
got it running on its own account. So far, so good.
However, I want to use Xindice as a data source under Cocoon, so I think
that I need to build a war file. The build instructions at:
http://xml.apache.org/xindice/community/howto/compilation/windows.html
imply that setting JAVA_HOME and running build.bat will do this for me.
At least, the log printed on that page has a "war-release:" in it.
When I run build, I don't get this message. In fact, my version of
build doesn't do anything more than to create or update the xindice.jar
file itself.
Is this because:
- I'm starting with the wrong download
- there is some environment variable I ought to have set besides
JAVA_HOME
- some other reason ?
I notice that the contents of my unzipped download directory
(xml-xindice-1.0) are different from the example quoted in the how-to
guide. It contains 7 files and 9 directories, whereas the how-to has 15
files and 12 directories. This lends weight to my suspicion that I have
the wrong version.
Any pointers appreciated!
Richard Light
--
Richard Light
SGML/XML and Museum Information Consultancy
richard@light.demon.co.uk
Re: (hopefully not too stupid) newbie question
Posted by John Guthrie <jg...@psynapsetech.net>.
thanks, renaming the war-file worked.
woo hoo!
john
----- Original Message -----
From: "Gianugo Rabellino" <gi...@apache.org>
To: <xi...@xml.apache.org>
Sent: Wednesday, February 12, 2003 12:45 PM
Subject: Re: (hopefully not too stupid) newbie question
> John Guthrie wrote:
> > well, i am stuck at the starting gate here. i've downloaded xindice-1.1b
> > from cvs (this morning). i built it and installed the war-file into
tomcat.
> > restarted tomcat, and looking at http://localhost:8080/xindice-1.1b does
> > indeed list a few uninteresting things out.
> >
> > but when i try to create a collection, i get an error that the
collection is
> > not found. that's true, of course, i am trying to create it. so what am
i
> > missing here.
> >
> > # pwd
> > /usr/local/jakarta/xindice/bin
> > # echo $XINDICE_HOME
> > /usr/local/jakarta/xindice
> > # ./xindice ac -c /db -n tess
> > ERROR : Collection not found!
> >
>
> Either rename the war to Xindice.war or copy under Tomcat or copy
> dist/xindice-1.1b.xml to your webapps directory. Xindice expects to find
> himself at /Xindice (yes, I know, it's ugly).
>
> Ciao,
>
>
> --
> Gianugo Rabellino
> CTO
> Pro-netics s.r.l.
> http://www.pro-netics.com
>
Re: (hopefully not too stupid) newbie question
Posted by Gianugo Rabellino <gi...@apache.org>.
John Guthrie wrote:
> well, i am stuck at the starting gate here. i've downloaded xindice-1.1b
> from cvs (this morning). i built it and installed the war-file into tomcat.
> restarted tomcat, and looking at http://localhost:8080/xindice-1.1b does
> indeed list a few uninteresting things out.
>
> but when i try to create a collection, i get an error that the collection is
> not found. that's true, of course, i am trying to create it. so what am i
> missing here.
>
> # pwd
> /usr/local/jakarta/xindice/bin
> # echo $XINDICE_HOME
> /usr/local/jakarta/xindice
> # ./xindice ac -c /db -n tess
> ERROR : Collection not found!
>
Either rename the war to Xindice.war or copy under Tomcat or copy
dist/xindice-1.1b.xml to your webapps directory. Xindice expects to find
himself at /Xindice (yes, I know, it's ugly).
Ciao,
--
Gianugo Rabellino
CTO
Pro-netics s.r.l.
http://www.pro-netics.com
(hopefully not too stupid) newbie question
Posted by John Guthrie <jg...@psynapsetech.net>.
well, i am stuck at the starting gate here. i've downloaded xindice-1.1b
from cvs (this morning). i built it and installed the war-file into tomcat.
restarted tomcat, and looking at http://localhost:8080/xindice-1.1b does
indeed list a few uninteresting things out.
but when i try to create a collection, i get an error that the collection is
not found. that's true, of course, i am trying to create it. so what am i
missing here.
# pwd
/usr/local/jakarta/xindice/bin
# echo $XINDICE_HOME
/usr/local/jakarta/xindice
# ./xindice ac -c /db -n tess
ERROR : Collection not found!
---
john guthrie
Re: Changing location of the database in Xindice 1.1
Posted by "Mark J. Stang" <ma...@earthlink.net>.
> 1) How do I specify to the command-line "xindice" which directory to
use
> for "db"?
> It seems to be using $XINDICE_HOME...
>
* ---------- *
* Local Mode *
* ---------- *
To change the default root directory, you will need to create/modify
'dbroot' attribute of 'root-collection' in your own db configuration
file (you can use $XINDICE_HOME/config/system.xml as the template).
Done? The linux command to use it will resemble:
$XINDICE_HOME/bin/xindice lc -v -l -d /my/config/dir/system.xml -c /db
win:
%XINDICE_HOME%\bin\xindice {...etc}
N.B.
- dbroot = a relative path? => path will be relative to XINDICE_HOME
- dbroot = an absolute path? (recommended!) ensure u can write to it
* 'Serv-er/let' Mode *
The 'build' db location is specified in WEB-INF/system.xml. you may
also
use a web-engine-specific .xml config file, but you will have to write
it
yourself :-]
> 2) Same as 1, but from within my application?
> It seems to be using where I am starting the app from...
>
Again, you can override the default db location using system.xml ...
At the *moment*, it appears embedded mode will attempt to use the
db config info in the following order:
1) Xindice.PROP_XINDICE_CONFIGURATION (i.e. 'xindice.configuration')
2) if prev property not set, uses Xindice.DEFAULT_CONFIGURATION
(hard-coded ... uncanny similarity to out-of-the-box system.xml :-)
And here's a coding suggestion from
http://marc.theaimsgroup.com/?l=xindice-users&m=103407719205206&w=2
(Tankut Koray):
System.setProperty( "xindice.home", "path/to/xindice");
new Kernel("path/to/config/system.xml");
(I haven't tried last one ... let us know... 'config' *is* the
arg to _init ... but i imagine you could just as easily do
System.setProperty( "xindice.configuration",
"/where/u/put/it/system.xml");)
if you want to whip up your own config string, try cut-n-paste of
DEFAULT_CONFIGURATION string in Xindice.java ...
------------
Servlet Mode
------------
In servlet mode, setting db path only really presents a problem if
you are trying to run app as .WAR. No joy. You'll have to unpack
the .war and edit the server.xml in the WEB-INF dir
NOTE
Logic for determining/overriding default db path is still being
hashed out now and again on the dev list if you're interested ...
Frank Burough wrote:
> Hi--
>
> Here is the question: How do you specifiy the location of the database
> to Xindice1.1? I want to be able to put the database in a directory
> different from the one from which the application which embeds xindice
> will run.
>
> Is this possible?
>
> Thanks for your help,
>
> Frank
>
--
Mark J Stang
System Architect
Cybershop Systems
Changing location of the database in Xindice 1.1
Posted by Frank Burough <fb...@elixirpharm.com>.
Hi--
Here is the question: How do you specifiy the location of the database
to Xindice1.1? I want to be able to put the database in a directory
different from the one from which the application which embeds xindice
will run.
Is this possible?
Thanks for your help,
Frank
Re: Installing xindice from cvs ( Tom Dyson )
Posted by Llerta amat <ll...@yahoo.es>.
Thank you Frank
In step 4, my environment is pointing to jdk1.3. I
haven't jdk1.4.1. I wrote an error. All my system is
pointing to jdk1.3, I haven't tzmappings in
/usr/java1.3/lib/.
In step 5, what you told me worked ok. Thanks. But I
am with the problem in step 9.
Could anybody help me? Thanks in advance.
--- Frank Burough <fb...@elixirpharm.com>
escribió: > Hi-
>
> In step 4, your output shows the line: "can't open
> /usr/java1.3/lib/tzmappings". Looks like something
> in your environment
> is still pointing to jdk1.3.
>
> In step 5 it looks like you issue the command
> 'bin/ant war'. I think you
> should just '/bin/ant release' to build the war
> files.
>
> Frank
>
>
>
> On Thu, 2003-01-30 at 05:59, Llerta amat wrote:
>
> > Please, I am installing xindice1.1 from cvs, Could
> anybody tell me
> > what it's happening?
> >
> > My configuration is as follows:
> >
> > xml-xindice from cvs (fresh download 1/29/03)
> > Tomcat version 4.1.18
> > Java JDK version j2sdk1.4.1_01
> >
> > Thanks for any help,Shell
> >
> >
> > Installation steps:
> > 1. Login to Apache public CVS:
> > cvs -d
> :pserver:anoncvs@cvs.apache.org:/home/cvspublic
> login
> > password: anoncvs
> >
> > OK
> >
> > 2. Checkout Xindice from CVS
> > cvs -d
> :pserver:anoncvs@cvs.apache.org:/home/cvspublic
> checkout
> > xml-xindice
> >
> > OK
> >
> > 3. Change to the xml-xindice directory which
> you've just checked out
> > cd xml-xindice/
> >
> > OK
> >
> > 4. Build Xindice with ant
> > bin/ant
> >
> > bash-2.05$ bin/ant
> > dirname bin
> >
>
/var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
> >
>
/servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
> >
>
n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
> >
>
/java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
> >
>
b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
> >
>
4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
> >
>
a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
> >
>
ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
> > /lib/tools.jar
> > security properties not found. using defaults.
> > Buildfile: build.xml
> >
> > init:
> > can't open /usr/java1.3/lib/tzmappings
> >
> > src-build:
> >
> > test-build:
> >
> > jar-release:
> >
> > war-release:
> >
> > release:
> >
> > BUILD SUCCESSFUL
> > Total time: 9 seconds
> >
> > 5. Build the Xindice.war file
> > bin/ant war
> >
> > bash-2.05$ bin/ant war
> > dirname bin
> >
>
/var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
> >
>
/servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
> >
>
n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
> >
>
/java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
> >
>
b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
> >
>
4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
> >
>
a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
> >
>
ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
> > /lib/tools.jar
> > security properties not found. using defaults.
> > Buildfile: build.xml
> >
> > BUILD FAILED
> > Target `war' does not exist in this project.
> >
> > Total time: 4 seconds
> >
> >
> > 6. Copy Xindice.war into Tomcat's webapps
> directory
> > cp Xindice.war [Tomcat home]/webapps/
> >
> > OK
> > 7. Restart Tomcat
> >
> > OK
> > 8. Change to the bin directory of your Xindice
> installation
> > cd [path to xml-xindice]/bin
> >
> > OK
> > 9. Test your installation by adding a new Xindice
> collection
> > ./xindice ac -c /db -n test
> >
> > bash-2.05$ ./xindice ac -c /db -n test
> > ERROR : Collection not found!
> >
> >
> > 10. Add a document to the collection
> > ./xindice ad -c /db/test -f test.xml -n test
> > 11. And query it
> > ./xindice xpath -c /db/test -q
> "//page_title[@id='99:1']"
> >
> >
> >
> >
> >
> >
> > Notes:
> >
> >
> > 1. You'll see an error if you point your browser
> to the Xindice
> > servlet, which currently is only designed for
> XML-RPC access. Work is
> > in progress to provide a browser interface.
> > 2. xindice lc -l -c /db accesses the database
> locally (-l) and looks
> > into the XINDICE_HOME directory for the db.
> > xindice lc -c /db accesses the database via
> XML-RPC and looks into
> > where you started your Tomcat server: [Tomcat
> home] or [Tomcat
> > home]/bin for the db.
> > Since Xindice still automatically creates a db,
> you'll have 2 dbs if
> > you use the local and XML-RPC versions.
> > 3. General questions and offers of support should
> be directed to the
> > Xindice mailing list.
> >
> >
> >
> >
>
______________________________________________________________________
> > Yahoo! Móviles
> > Personaliza tu móvil con tu logo y melodía
> favorito
>
___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito
en http://moviles.yahoo.es
Re: Installing xindice from cvs ( Tom Dyson )
Posted by Frank Burough <fb...@elixirpharm.com>.
Hi-
In step 4, your output shows the line: "can't open
/usr/java1.3/lib/tzmappings". Looks like something in your environment
is still pointing to jdk1.3.
In step 5 it looks like you issue the command 'bin/ant war'. I think you
should just '/bin/ant release' to build the war files.
Frank
On Thu, 2003-01-30 at 05:59, Llerta amat wrote:
> Please, I am installing xindice1.1 from cvs, Could anybody tell me
> what it's happening?
>
> My configuration is as follows:
>
> xml-xindice from cvs (fresh download 1/29/03)
> Tomcat version 4.1.18
> Java JDK version j2sdk1.4.1_01
>
> Thanks for any help,Shell
>
>
> Installation steps:
> 1. Login to Apache public CVS:
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> password: anoncvs
>
> OK
>
> 2. Checkout Xindice from CVS
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout
> xml-xindice
>
> OK
>
> 3. Change to the xml-xindice directory which you've just checked out
> cd xml-xindice/
>
> OK
>
> 4. Build Xindice with ant
> bin/ant
>
> bash-2.05$ bin/ant
> dirname bin
> /var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
> /servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
> n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
> /java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
> b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
> 4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
> a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
> ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
> /lib/tools.jar
> security properties not found. using defaults.
> Buildfile: build.xml
>
> init:
> can't open /usr/java1.3/lib/tzmappings
>
> src-build:
>
> test-build:
>
> jar-release:
>
> war-release:
>
> release:
>
> BUILD SUCCESSFUL
> Total time: 9 seconds
>
> 5. Build the Xindice.war file
> bin/ant war
>
> bash-2.05$ bin/ant war
> dirname bin
> /var/home/xindiceadm/xindice/xindice_cvs/tomcat/jakarta-tomcat-4.1.18/lib/common
> /servlet.jar:bin/../java/lib/xmlrpc-1.1.jar:bin/../java/lib/xmldb-xupdate.jar:bi
> n/../java/lib/xmldb-common.jar:bin/../java/lib/xmldb-api-sdk-20021118.jar:bin/..
> /java/lib/xmldb-api-20021118.jar:bin/../java/lib/xml-apis-1.1.jar:bin/../java/li
> b/xercesImpl-2.1.0.jar:bin/../java/lib/xerces-2.2.1.jar:bin/../java/lib/xalan-2.
> 4.0.jar:bin/../java/lib/servlet.jar:bin/../java/lib/junitperf-1.8.jar:bin/../jav
> a/lib/junit-addons-1.1.jar:bin/../java/lib/junit-3.8.1.jar:bin/../java/lib/commo
> ns-logging-1.0.1.jar:bin/../java/lib/ant-1.5.1.jar:bin/../lib/*.jar:/usr/java1.3
> /lib/tools.jar
> security properties not found. using defaults.
> Buildfile: build.xml
>
> BUILD FAILED
> Target `war' does not exist in this project.
>
> Total time: 4 seconds
>
>
> 6. Copy Xindice.war into Tomcat's webapps directory
> cp Xindice.war [Tomcat home]/webapps/
>
> OK
> 7. Restart Tomcat
>
> OK
> 8. Change to the bin directory of your Xindice installation
> cd [path to xml-xindice]/bin
>
> OK
> 9. Test your installation by adding a new Xindice collection
> ./xindice ac -c /db -n test
>
> bash-2.05$ ./xindice ac -c /db -n test
> ERROR : Collection not found!
>
>
> 10. Add a document to the collection
> ./xindice ad -c /db/test -f test.xml -n test
> 11. And query it
> ./xindice xpath -c /db/test -q "//page_title[@id='99:1']"
>
>
>
>
>
>
> Notes:
>
>
> 1. You'll see an error if you point your browser to the Xindice
> servlet, which currently is only designed for XML-RPC access. Work is
> in progress to provide a browser interface.
> 2. xindice lc -l -c /db accesses the database locally (-l) and looks
> into the XINDICE_HOME directory for the db.
> xindice lc -c /db accesses the database via XML-RPC and looks into
> where you started your Tomcat server: [Tomcat home] or [Tomcat
> home]/bin for the db.
> Since Xindice still automatically creates a db, you'll have 2 dbs if
> you use the local and XML-RPC versions.
> 3. General questions and offers of support should be directed to the
> Xindice mailing list.
>
>
>
> ______________________________________________________________________
> Yahoo! Móviles
> Personaliza tu móvil con tu logo y melodía favorito