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 Srikanth Buddha <co...@yahoo.com> on 2003/02/20 23:04:25 UTC
Compile Problems
Hey guyz,
I am new to this whole native XML DB stuff. I have heard a lot about this Xindice db.
But unfortunately, I do not seem to be able to compile it on my machine.
My machine is Win XP. (I dunno if you need it, but it is a P4 2.56GHz machine with 512 MB RAM). I have jsdk on my machine.
The following is one of my effort, I would really appreciate any help on this.
-Srik
============================================================
C:\Program Files\xindice>echo %JAVA_HOME%
C:\j2sdk1.4.1_01
C:\Program Files\xindice>build
'build' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\xindice>dir
Volume in drive C has no label.
Volume Serial Number is E483-4D10
Directory of C:\Program Files\xindice
02/20/2003 04:42 PM <DIR> .
02/20/2003 04:42 PM <DIR> ..
02/20/2003 04:42 PM <DIR> xml-xindice-1.0
0 File(s) 0 bytes
3 Dir(s) 46,059,716,608 bytes free
C:\Program Files\xindice>cd xml-xindice-1.0
C:\Program Files\xindice\xml-xindice-1.0>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\xindice\xml-xindice-1.0>dir
Volume in drive C has no label.
Volume Serial Number is E483-4D10
Directory of C:\Program Files\xindice\xml-xindice-1.0
02/20/2003 04:42 PM <DIR> .
02/20/2003 04:42 PM <DIR> ..
02/20/2003 04:42 PM <DIR> bin
03/13/2002 11:47 PM 822 build.bat
03/15/2002 03:46 PM 14,280 build.xml
02/20/2003 04:42 PM <DIR> config
02/20/2003 04:42 PM <DIR> docs
02/20/2003 04:42 PM <DIR> icons
02/20/2003 04:42 PM <DIR> idl
02/20/2003 04:42 PM <DIR> java
03/13/2002 11:47 PM 2,687 LICENSE
02/20/2003 04:42 PM <DIR> logs
03/13/2002 11:47 PM 227 README
03/13/2002 11:47 PM 1,644 start
03/13/2002 11:47 PM 1,802 startup.bat
03/13/2002 11:47 PM 1,350 xindice.server
7 File(s) 22,812 bytes
9 Dir(s) 46,059,716,608 bytes free
C:\Program Files\xindice\xml-xindice-1.0>build
Xindice Build System
--------------------
Building with classpath C:\j2sdk1.4.1_01\lib\tools.jar;.\java\lib\ant-1.4.1.jar;
.\java\lib\examples.jar;.\java\lib\infozone-tools.jar;.\java\lib\openorb-1.2.0.j
ar;.\java\lib\openorb_tools-1.2.0.jar;.\java\lib\xalan-2.0.1.jar;.\java\lib\xerc
es-1.4.3.jar;.\java\lib\xindice.jar;.\java\lib\xml-apis-1.0.jar;.\java\lib\xmldb
-sdk.jar;.\java\lib\xmldb-xupdate.jar;.\java\lib\xmldb.jar
Starting Ant...
Buildfile: build.xml
init:
idl:
prepare:
[mkdir] Created dir: C:\Program Files\xindice\xml-xindice-1.0\java\classes
clean-jar:
[delete] Deleting: C:\Program Files\xindice\xml-xindice-1.0\java\lib\xindice.
jar
[delete] Unable to delete file C:\Program Files\xindice\xml-xindice-1.0\java\
lib\xindice.jar
src:
[echo] Compiling Source
[javac] Compiling 324 source files to C:\Program Files\xindice\xml-xindice-1
.0\java\classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
bin-jar:
[jar] Building jar: C:\Program Files\xindice\xml-xindice-1.0\java\lib\xind
ice.jar
compile:
main:
BUILD SUCCESSFUL
Total time: 9 seconds
C:\Program Files\xindice\xml-xindice-1.0>cd dist
The system cannot find the path specified.
============================================================
---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
Re: Compile Problems
Posted by Richard Light <ri...@light.demon.co.uk>.
In message <3E...@apache.org>, Gianugo Rabellino
<gi...@apache.org> writes
>Richard Light wrote:
>> This is
>> what I want to do (surely nothing unusual):
>> - use Cocoon as my XML-XSLT-capable middleware;
>> - use Xindice as my native XML database sitting in the background;
>> - use XSLT to accomplish as much as possible of my system logic
>> First off, I couldn't find a way to install Xindice within Cocoon
>> without building a WAR file. Is there a way to do this?
>
>All you need is
>http://www.cocooncenter.org/cc/documents/resources/xindice/index.html
Yes, I've read this document. However, it appears to be out of date.
In particular it refers to Cocoon 2.0.1, whereas I downloaded 2.0.4.
The "shortly to be deprecated" xmldb code in Cocoon's sitemap.xmap is no
longer present, which makes it hard to work out what one should do. I
tried adding the protocol and driver information to cocoon.xconf as
directed, but this only had the effect of preventing Cocoon from
starting at all.
I did pick out the code to run "xmldb" in my sitemap from this document,
but I'm afraid it wasn't at all obvious that it's "all I need".
I've just tried following the instructions again, and installing Tomcat
without the Xindice WAR file, and it doesn't seem to be working any
better.
>But be careful here:
>
>In theory you should be able to use the document() function in your
>stylesheet with the XML:DB pseudo protocol right away. But using
>document() in Cocoon is seriously deprecated, for architectural and
>caching issues: there are better ways of doing it.
>
>Why an Xinclude transformation in the pipeline wouldn't work?
Well, one example would be where my database contains lots of individual
entries describing a single concept in a thesaurus or Topic Map, and I
want to recursively "fetch" all the concepts which are linked to the
concept I am starting from.
Richard Light
--
Richard Light
SGML/XML and Museum Information Consultancy
richard@light.demon.co.uk
Re: Compile Problems
Posted by Gianugo Rabellino <gi...@apache.org>.
Richard Light wrote:
> This is
> what I want to do (surely nothing unusual):
>
> - use Cocoon as my XML-XSLT-capable middleware;
> - use Xindice as my native XML database sitting in the background;
> - use XSLT to accomplish as much as possible of my system logic
>
> First off, I couldn't find a way to install Xindice within Cocoon
> without building a WAR file. Is there a way to do this?
All you need is
http://www.cocooncenter.org/cc/documents/resources/xindice/index.html
But be careful here:
> I would be happy to describe how I managed to set up Xindice so I can
> use it through the document() function in my XSLT stylesheets, if that
> really is worth doing (i.e. hasn't already been done before).
In theory you should be able to use the document() function in your
stylesheet with the XML:DB pseudo protocol right away. But using
document() in Cocoon is seriously deprecated, for architectural and
caching issues: there are better ways of doing it.
Why an Xinclude transformation in the pipeline wouldn't work?
Ciao,
--
Gianugo Rabellino
CTO
Pro-netics s.r.l.
http://www.pro-netics.com
Re: Compile Problems
Posted by Richard Light <ri...@light.demon.co.uk>.
In message <3E...@bossicard.com>, Vladimir R. Bossicard
<vl...@bossicard.com> writes
>> If you want to create a WAR file, so as to include Xindice within
>>Cocoon, for example, then you need to do something entirely different,
>>which is not described anywhere on the site that I could find.
>
>The problem is that we have currently two versions:
>- 1.0: official version; for end-users
>- 1.1b: development version; for developers
Vladimir,
I appreciate the distinction you are making here. However, although I
see myself as an end-user, I failed to find a way to do what I want to
do without getting into the CVS and source compilation thing. This is
what I want to do (surely nothing unusual):
- use Cocoon as my XML-XSLT-capable middleware;
- use Xindice as my native XML database sitting in the background;
- use XSLT to accomplish as much as possible of my system logic
First off, I couldn't find a way to install Xindice within Cocoon
without building a WAR file. Is there a way to do this?
Second, I want to call up data from Xindice from within my XSLT
stylesheets. I have managed (after a great deal of trial and error) to
set up my Cocoon environment so that it will return XML from Xindice in
response to an XPath query. However, I can't do much with this because
I have found no documentation on the query parameters that you can use
in an HTTP request through port 4080. My expressions with an XPath
obviously get converted to an HTTP request of the form:
http://localhost:4080/db/object/ceramics#//BRIEF-DESCRIPTION
where /object/ceramics is the collection and //BRIEF-DESCRIPTION is the
XPath expression, but else can you do? Am I only able to do this at all
because I have installed the Xindice-http-0.8 add-on?
>And if he has an interest in seeing the project moving forward, he can:
>- write some documentation (we have a wiki-page [1] so that _everyone_
>can contribute)
I would be happy to describe how I managed to set up Xindice so I can
use it through the document() function in my XSLT stylesheets, if that
really is worth doing (i.e. hasn't already been done before).
Best wishes,
Richard Light
--
Richard Light
SGML/XML and Museum Information Consultancy
richard@light.demon.co.uk
Re: Compile Problems
Posted by "Vladimir R. Bossicard" <vl...@bossicard.com>.
> If you want to create a WAR file, so as to include Xindice within
> Cocoon, for example, then you need to do something entirely different,
> which is not described anywhere on the site that I could find.
The problem is that we have currently two versions:
- 1.0: official version; for end-users
- 1.1b: development version; for developers
Many end-users are not developers but still want to use a version that
is not targetted to them. That's where the gap (and frustration) is.
To use a development version, you should know how to :
- use CVS
- build with Ant
- install without an accurate documentation (and fix it)
- survive a constantly moving code
- deal with/fix bugs
if an end-user can't deal with these issues, he should stick with the
official release. And if he has an interest in seeing the project
moving forward, he can:
- learn the skills to use the development version
- write some documentation (we have a wiki-page [1] so that _everyone_
can contribute)
- sponsor a bug/feature
- ...
Regards,
-Vladimir
[1] <http://nagoya.apache.org/wiki/apachewiki.cgi?XindiceProjectPages>
--
Vladimir R. Bossicard
www.bossicard.com
Re: Compile Problems
Posted by "Mark J. Stang" <ma...@earthlink.net>.
There is a build that compiles, is the current release and is stable.
That is 1.0. The .jar that is there
hasn't been released. CVS contains the unstable and un-released
version.
Mark
Srikanth Buddha wrote:
> Richard Light <ri...@light.demon.co.uk> wrote:
>
> I was faced with the same problem, and spent a long time not
> getting
> anywhere with it. However, I think the solution is quite
> simple "when
> you know" ...
>
> Essentially, the jar you are invited to download from the
> Apache site as
> the "source" of Xindice is not, in fact, the full thing. You
> _can't_ do
> a build with it. (BTW the download is useful code: you can
> run it on
> its own. Just put the jar in the "right place" and start it
> up, and you
> have a stand-alone Xindice service on port 4080.)
>
> I am pretty disappointed to know that apache website gives a download
> that is not builadable. I wonder what is the underlying catch here.
>
> Thanks to all the people helped, especially to Mr Light.
>
> -Srik
>
>
>
>
>
>
> -----------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more
--
Mark J Stang
System Architect
Cybershop Systems
Re: Compile Problems
Posted by Srikanth Buddha <co...@yahoo.com>.
Richard Light <ri...@light.demon.co.uk> wrote:
I was faced with the same problem, and spent a long time not getting
anywhere with it. However, I think the solution is quite simple "when
you know" ...
Essentially, the jar you are invited to download from the Apache site as
the "source" of Xindice is not, in fact, the full thing. You _can't_ do
a build with it. (BTW the download is useful code: you can run it on
its own. Just put the jar in the "right place" and start it up, and you
have a stand-alone Xindice service on port 4080.)
I am pretty disappointed to know that apache website gives a download that is not builadable. I wonder what is the underlying catch here.
Thanks to all the people helped, especially to Mr Light.
-Srik
---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more
Re: Compile Problems
Posted by Richard Light <ri...@light.demon.co.uk>.
In message <20...@web9406.mail.yahoo.com>, Srikanth
Buddha <co...@yahoo.com> writes
>Hey guyz,
>I am new to this whole native XML DB stuff. I have heard a lot about this
>Xindice db.
>
>But unfortunately, I do not seem to be able to compile it on my machine.
>My machine is Win XP. (I dunno if you need it, but it is a P4 2.56GHz
>machine with 512 MB RAM). I have jsdk on my machine.
>The following is one of my effort, I would really appreciate any help on this.
Srik,
I was faced with the same problem, and spent a long time not getting
anywhere with it. However, I think the solution is quite simple "when
you know" ...
Essentially, the jar you are invited to download from the Apache site as
the "source" of Xindice is not, in fact, the full thing. You _can't_ do
a build with it. (BTW the download is useful code: you can run it on
its own. Just put the jar in the "right place" and start it up, and you
have a stand-alone Xindice service on port 4080.)
If you want to create a WAR file, so as to include Xindice within
Cocoon, for example, then you need to do something entirely different,
which is not described anywhere on the site that I could find. This
involves getting the CVS distribution, which in turn involves
downloading and using a package called Tortoise, etc. This URL:
http://torchbox.com/xml/xindice/xindice.html
describes the process. Note that you _can_ use the build command to
carry out steps 4 and 5 of the process. I think the description relates
to a Linux/Unix setup, not Windows.
I would be interested for someone who actually knows about Xindice to
confirm or correct my understanding of this situation.
Best wishes,
Richard Light
>-Srik
>============================================================
>C:\Program Files\xindice>echo %JAVA_HOME%
>C:\j2sdk1.4.1_01
>C:\Program Files\xindice>build
>'build' is not recognized as an internal or external command,
>operable program or batch file.
>
>C:\Program Files\xindice>dir
> Volume in drive C has no label.
> Volume Serial Number is E483-4D10
>
> Directory of C:\Program Files\xindice
>
>02/20/2003 04:42 PM <DIR> .
>02/20/2003 04:42 PM <DIR> ..
>02/20/2003 04:42 PM <DIR> xml-xindice-1.0
> 0 File(s) 0 bytes
> 3 Dir(s) 46,059,716,608 bytes free
>C:\Program Files\xindice>cd xml-xindice-1.0
>C:\Program Files\xindice\xml-xindice-1.0>ls
>'ls' is not recognized as an internal or external command,
>operable program or batch file.
>C:\Program Files\xindice\xml-xindice-1.0>dir
> Volume in drive C has no label.
> Volume Serial Number is E483-4D10
> Directory of C:\Program Files\xindice\xml-xindice-1.0
>02/20/2003 04:42 PM <DIR> .
>02/20/2003 04:42 PM <DIR> ..
>02/20/2003 04:42 PM <DIR> bin
>03/13/2002 11:47 PM 822 build.bat
>03/15/2002 03:46 PM 14,280 build.xml
>02/20/2003 04:42 PM <DIR> config
>02/20/2003 04:42 PM <DIR> docs
>02/20/2003 04:42 PM <DIR> icons
>02/20/2003 04:42 PM <DIR> idl
>02/20/2003 04:42 PM <DIR> java
>03/13/2002 11:47 PM 2,687 LICENSE
>02/20/2003 04:42 PM <DIR> logs
>03/13/2002 11:47 PM 227 README
>03/13/2002 11:47 PM 1,644 start
>03/13/2002 11:47 PM 1,802 startup.bat
>03/13/2002 11:47 PM 1,350 xindice.server
> 7 File(s) 22,812 bytes
> 9 Dir(s) 46,059,716,608 bytes free
>C:\Program Files\xindice\xml-xindice-1.0>build
>Xindice Build System
>--------------------
>Building with classpath C:\j2sdk1.4.1_01\lib\tools.jar;.\java\lib\ant-1.4.1.jar;
>.\java\lib\examples.jar;.\java\lib\infozone-tools.jar;.\java\lib\openorb-1.2.0.j
>ar;.\java\lib\openorb_tools-1.2.0.jar;.\java\lib\xalan-2.0.1.jar;.\java\lib\xerc
>es-1.4.3.jar;.\java\lib\xindice.jar;.\java\lib\xml-apis-1.0.jar;.\java\lib\xmldb
>-sdk.jar;.\java\lib\xmldb-xupdate.jar;.\java\lib\xmldb.jar
>Starting Ant...
>Buildfile: build.xml
>init:
>idl:
>prepare:
> [mkdir] Created dir: C:\Program
>Files\xindice\xml-xindice-1.0\java\classes
>clean-jar:
> [delete] Deleting: C:\Program
>Files\xindice\xml-xindice-1.0\java\lib\xindice.
>jar
> [delete] Unable to delete file C:\Program
>Files\xindice\xml-xindice-1.0\java\
>lib\xindice.jar
>src:
> [echo] Compiling Source
> [javac] Compiling 324 source files to C:\Program
>Files\xindice\xml-xindice-1
>.0\java\classes
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
>bin-jar:
> [jar] Building jar: C:\Program Files\xindice\xml-xindice-1.0\java\lib\xind
>ice.jar
>compile:
>main:
>BUILD SUCCESSFUL
>Total time: 9 seconds
>C:\Program Files\xindice\xml-xindice-1.0>cd dist
>The system cannot find the path specified.
>============================================================
>
>
>Do you Yahoo!?
>Yahoo! Tax Center - forms, calculators, tips, and more
--
Richard Light
SGML/XML and Museum Information Consultancy
richard@light.demon.co.uk
Re: Compile Problems
Posted by "Mark J. Stang" <ma...@earthlink.net>.
FYI, I build and run on a 450Mhz Aptivia with a half-dead drive.
Mark
Srikanth Buddha wrote:
> Hey guyz,
>
> I am new to this whole native XML DB stuff. I have heard a lot about
> this Xindice db.
>
> But unfortunately, I do not seem to be able to compile it on my
> machine.
>
> My machine is Win XP. (I dunno if you need it, but it is a P4 2.56GHz
> machine with 512 MB RAM). I have jsdk on my machine.
>
> The following is one of my effort, I would really appreciate any help
> on this.
>
>
>
> -Srik
>
> ============================================================
>
> C:\Program Files\xindice>echo %JAVA_HOME%
> C:\j2sdk1.4.1_01
>
> C:\Program Files\xindice>build
> 'build' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\Program Files\xindice>dir
> Volume in drive C has no label.
> Volume Serial Number is E483-4D10
>
> Directory of C:\Program Files\xindice
>
> 02/20/2003 04:42 PM <DIR> .
> 02/20/2003 04:42 PM <DIR> ..
> 02/20/2003 04:42 PM <DIR> xml-xindice-1.0
> 0 File(s) 0 bytes
> 3 Dir(s) 46,059,716,608 bytes free
>
> C:\Program Files\xindice>cd xml-xindice-1.0
>
> C:\Program Files\xindice\xml-xindice-1.0>ls
> 'ls' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\Program Files\xindice\xml-xindice-1.0>dir
> Volume in drive C has no label.
> Volume Serial Number is E483-4D10
>
> Directory of C:\Program Files\xindice\xml-xindice-1.0
>
> 02/20/2003 04:42 PM <DIR> .
> 02/20/2003 04:42 PM <DIR> ..
> 02/20/2003 04:42 PM <DIR> bin
> 03/13/2002 11:47 PM 822 build.bat
> 03/15/2002 03:46 PM 14,280 build.xml
> 02/20/2003 04:42 PM <DIR> config
> 02/20/2003 04:42 PM <DIR> docs
> 02/20/2003 04:42 PM <DIR> icons
> 02/20/2003 04:42 PM <DIR> idl
> 02/20/2003 04:42 PM <DIR> java
> 03/13/2002 11:47 PM 2,687 LICENSE
> 02/20/2003 04:42 PM <DIR> logs
> 03/13/2002 11:47 PM 227 README
> 03/13/2002 11:47 PM 1,644 start
> 03/13/2002 11:47 PM 1,802 startup.bat
> 03/13/2002 11:47 PM 1,350 xindice.server
> 7 File(s) 22,812 bytes
> 9 Dir(s) 46,059,716,608 bytes free
>
> C:\Program Files\xindice\xml-xindice-1.0>build
>
> Xindice Build System
> --------------------
>
> Building with classpath
> C:\j2sdk1.4.1_01\lib\tools.jar;.\java\lib\ant-1.4.1.jar;
> .\java\lib\examples.jar;.\java\lib\infozone-tools.jar;.\
> ava\lib\openorb-1.2.0.j
> ar;.\java\lib\openorb_t
> ols-1.2.0.jar;.\java\lib\xalan-2.0.1.jar;.\java\lib\xerc
> es-1.4.3.jar;.\java\lib\xindice.jar;.\java\lib\xml-apis-
> .0.jar;.\java\lib\xmldb
> -sdk.jar;.\java\lib\xmldb-xupdate.jar;.\java\lib\xmldb.jar
>
> Starting Ant...
> Buildfile: build.xml
>
> init:
>
> idl:
>
> prepare:
> [mkdir] Created dir: C:\Program
> Files\xindice\xml-xindice-1.0\java\classes
>
> clean-jar:
> [delete] Deleting: C:\Program
> Files\xindice\xml-xindice-1.0\java\lib\xindice.
> jar
> [delete] Unable to delete file C:\Program
> Files\xindice\xml-xindice-1.0\java\
> lib\xindice.jar
>
> src:
> [echo] Compiling Source
> [javac] Compiling 324 source files to C:\Program
> Files\xindice\xml-xindice-1
> .0\java\classes
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
>
> bin-jar:
> [jar] Building jar: C:\Program
> Files\xindice\xml-xindice-1.0\java\lib\xind
> ice.jar
>
> compile:
>
> main:
>
> BUILD SUCCESSFUL
>
> Total time: 9 seconds
>
> C:\Program Files\xindice\xml-xindice-1.0>cd dist
> The system cannot find the path specified.
> ============================================================
>
>
>
>
>
>
> -----------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more
--
Mark J Stang
System Architect
Cybershop Systems