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 Matthew Van Horn <ho...@accesstech.com> on 2002/12/06 03:34:28 UTC
build problems
I am trying to build the CVS source on Mac OS X, and I am getting the
following errors:
(I have been playing with the classpath, since on Mac there is no
tools.jar, but I don't really know why this isn't working)
Can someone give me a tip? (The documentations is still quite sparse.)
If I get it working, I would be happy to contribute a howto.
Building with classpath
java/lib/ant-1.5.1.jar:java/lib/commons-logging-1.0.1.jar:java/lib/
infozone-tools.jar:java/lib/junit-3.8.1.jar:java/lib/junit-addons-
1.1.jar:java/lib/junitperf-1.8.jar:java/lib/servlet.jar:java/lib/xalan-
2.4.0.jar:java/lib/xerces-2.2.1.jar:java/lib/xercesImpl-2.1.0.jar:java/
lib/xml-apis-1.0b3.jar:java/lib/xml-apis-2.2.1.jar:java/lib/xmldb-api-
20021118.jar:java/lib/xmldb-api-sdk-20021118.jar:java/lib/xmldb-
common.jar:java/lib/xmldb-xupdate.jar:java/lib/xmlrpc-1.1.jar:/opt/
jwsdp/common/lib/xmldb.jar:/opt/jwsdp/common/lib/xindice.jar:/opt/java/
lib:/opt/java/classes:/opt/jwsdp/common/lib:/opt/jwsdp/lib:/opt/java/
jdk/Home/Classes/classes.jar
Starting Ant...
Buildfile: ./build.xml
init:
src-build:
[javac] Compiling 199 source files to
/Users/mattvan/xml-xindice/build/classes
[javac]
/Users/mattvan/xml-xindice/java/src/org/apache/xindice/client/xmldb/
DatabaseImpl.java:216: cannot resolve symbol
[javac] symbol : constructor XMLDBException
(int,java.lang.String,java.lang.Exception)
[javac] location: class org.xmldb.api.base.XMLDBException
[javac] throw new XMLDBException(ErrorCodes.INVALID_URI,
uri, e);
[javac] ^
[javac]
/Users/mattvan/xml-xindice/java/src/org/apache/xindice/client/xmldb/
embed/CollectionImpl.java:109: cannot resolve symbol
[javac] symbol : constructor XMLDBException
(int,java.lang.String,java.lang.Exception)
[javac] location: class org.xmldb.api.base.XMLDBException
[javac] throw new
XMLDBException(ErrorCodes.NO_SUCH_COLLECTION,
[javac] ^
etc. etc. etc.
Re: build problems
Posted by Matthew Van Horn <ho...@accesstech.com>.
On Saturday, December 7, 2002, at 04:28 AM, Vladimir R. Bossicard wrote:
> Another thing you can do is
> 1) installing Ant (1.5.1) on your system
> 2) in the directory 'Users/mattvan/xml-xindice' type 'ant release'
>
> if everything is fine (as I hope it will be), the bug is in the
> build.sh file...
Yep, that was it. I had an earlier version of ant that gave me problems
with the war file, but 1.5.1 worked fine. Thanks very much. I'll try to
dig out the bug in build.sh later.
This leads me to another question, I am very new to a lot of Java
development tools - so please forgive me if this is a stupid question
(and off topic, I know), but do I really need all of these ant.jar
files?
/opt/dom4j-patched-1.3/lib/ant.jar
/opt/jakarta-ant-1.5.1/lib/ant.jar
/opt/jboss-3.0.3/client/jbossjmx-ant.jar
/opt/jboss-3.0.3/server/all/lib/ant.jar
/opt/jboss-3.0.3/server/default/lib/ant.jar
/opt/jboss-3.0.3/server/default/tmp/deploy/server/default/lib/ant.jar
/opt/jbuilder7/JBuilder.framework/lib/ant.jar
/opt/jwsdp-1_0_01/lib/ant.jar
/opt/jwsdp-1_0_01/server/lib/catalina-ant.jar
jboss, jbuilder, java web services developer pack, and dom4j all seem
to have various versions of the ant.jar file. I installed the 1.5.1
version to /opt/jakarta-ant-1.5.1 Should I just symlink all the others
to that?
Replies should probably be off list, since this is not really a Xindice
question.
Re: build problems
Posted by "Vladimir R. Bossicard" <vl...@apache.org>.
> I am trying to build the CVS source on Mac OS X, and I am getting the
> following errors:
Strange, strange. The XMLDBException is located in the
xmldb-api-20021118.jar file but it looks like you have it in your classpath:
> Building with classpath
> lib/xml-apis-1.0b3.jar:java/lib/xml-apis-2.2.1.jar:java/lib/xmldb-api-
> 20021118.jar:java/lib/xmldb-api-sdk-20021118.jar:java/lib/xmldb-
First thing to do is to verify that your jar doesn't have problems:
unzip -l xmldb-api-20021118.jar | grep XMLDBException
should print (something like):
1457 11-18-02 20:57 org/xmldb/api/base/XMLDBException.class
Another thing you can do is
1) installing Ant (1.5.1) on your system
2) in the directory 'Users/mattvan/xml-xindice' type 'ant release'
if everything is fine (as I hope it will be), the bug is in the build.sh
file...
-Vladimir
--
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice