Re: Barracuda: Compiling Barracuda - first time Barracuda user

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
hmm....

It looks like you, properly, removed xercesImpl.jar and xml-apis.jar from 
ANT_HOME/lib and copied in Barracuda's version of xerces.  I'm curious 
about the CATALNIA_HOME/lib.  In Tomcat-4.1.12, that directory doesn't 
exist.  All the xmlc related jars go in shared/lib.

You don't have anything on your permanent CLASSPATH, do you?  If so, you 
should clean that up to be something like this....

.;%JAVA_HOME%\tools.jar;%JAVA_HOME%\dt.jar;%JAVA_HOME%\htmlconverter.jar;%JAVA_HOME%\jre\lib\rt.jar

That should be the most you have on the system CLASSPATH.  I only have the 
jar files there to satisfy Jikes.  Otherwise, I'd just have "." and that is it.

The CLASSPATH issue is the only thing I can think of because having 
Barracuda's version of xerces in ANT_HOME/lib automatically puts it in the 
Ant build classpath which should make available the org.w3c.dom package.

Let me know if that fixes the problem or not.  BTW, I am not running my 
builds on Linux.  I use Win2k for everything (although I'd like to move to 
Linux in the near future).  Anyone else out there experienced with building 
Barracuda on Linux.  Any specific pitfalls?  Diez, you use Linux, 
right?  Anyone else compile under JDK1.3.x?

Jake

At 08:40 AM 1/12/2003 +1300, you wrote:
>Hi All,
>
>I'm getting a compile error when I try to compile Barracuda from source.
>
>I'm running OS X 10.2.3, Tomcat 4.1.12, Ant 1.5.1.
>
>Based on the email from Jake to Ravi on December 31 (relevant portion 
>included at the bottom of this post) I've run the procedure suggested, 
>however I get a compile error. I pulled down the CVS sources, yesterday 
>11Jan02.
>
>Here is the terminal session
>[root@maclite ~/barcuda] java -version
>java version "1.3.1"
>Java(TM) 2 Runtime Environment, Standard Edition (build 
>1.3.1-root_1.3.1_020714-12:46)
>Java HotSpot(TM) Client VM (build 1.3.1_03-69, mixed mode)
>
>[root@maclite ~/barcuda] set    #output of "set" snipped for this post
>ANT_HOME=/var/root/barcuda/ant
>BASH_VERSION='2.05a.0(1)-release'
>CATALINA_HOME=/Library/Tomcat
>JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
>MACHTYPE=powerpc-apple-darwin6.0
>OSTYPE=darwin6.0
>PATH=/bin:/sbin:/usr/bin:/usr/sbin:/System/Library/Frameworks/JavaVM.framework/Home/bin:/var/root/barcuda/ant/bin
>PWD=/var/root/barcuda
>SHELL=/bin/bash
>[root@maclite ~/barcuda] ls
>Barracuda         BarracudaDiscRack ant               app_env
>[root@maclite ~/barcuda] pushd /var/root/barcuda/ant/lib/
>~/barcuda/ant/lib ~/barcuda /Library/Tomcat/webapps
>[root@maclite ~/barcuda/ant/lib] ls
>README         ant.jar        optional.jar   xercesImpl.jar xml-apis.jar
>[root@maclite ~/barcuda/ant/lib] rm xercesImpl.jar
>[root@maclite ~/barcuda/ant/lib] rm xml-apis.jar
>[root@maclite ~/barcuda/ant/lib] ls
>README       ant.jar      optional.jar
>
>[root@maclite ~/barcuda/ant/lib] cd ../..
>[root@maclite ~/barcuda] cp 
>Barracuda/WEB-INF/jars/xerces-1.4.4-xmlc-2.1.jar $ANT_HOME/lib
>[root@maclite ~/barcuda] cp 
>Barracuda/WEB-INF/jars/xerces-1.4.4-xmlc-2.1.jar $CATALINA_HOME/lib
>[root@maclite ~/barcuda] cp 
>Barracuda/WEB-INF/jars/xmlc-2.1.jar  $CATALINA_HOME/lib
>[root@maclite ~/barcuda] cp 
>Barracuda/WEB-INF/jars/gnu-regexp-1.1.4.jar  $CATALINA_HOME/lib
>[root@maclite ~/barcuda] cp 
>Barracuda/WEB-INF/jars/jtidy-r7-xmlc-2.1.jar  $CATALINA_HOME/lib
>[root@maclite ~/barcuda] /Library/Tomcat/bin/startup.sh
>Using CATALINA_BASE:   /Library/Tomcat
>Using CATALINA_HOME:   /Library/Tomcat
>Using CATALINA_TMPDIR: /Library/Tomcat/temp
>Using JAVA_HOME:       /System/Library/Frameworks/JavaVM.framework/Home
>
>... note  ... tested and Tomcat OK on 
><http://localhost:8080>http://localhost:8080
>
>[root@maclite ~/barcuda] cd Barracuda/src
>[root@maclite ~/barcuda/Barracuda/src] ant contrib
>Buildfile: build.xml
>
>sample.init:
>      [copy] Copying 1 file to /var/root/barcuda/Barracuda/src
>      [copy] Copying 5 files to /var/root/barcuda/Barracuda/WEB-INF
>
>taskdefs.init:
>     [mkdir] Created dir: /var/root/barcuda/Barracuda/WEB-INF/classes
>
>source.init:
>     [mkdir] Created dir: /var/root/barcuda/Barracuda/WEB-INF/classes/xlib
>     [mkdir] Created dir: /var/root/barcuda/Barracuda/WEB-INF/tmp$/src_events
>     [mkdir] Created dir: /var/root/barcuda/Barracuda/WEB-INF/tmp$/src_xmlc
>     [mkdir] Created dir: /var/root/barcuda/Barracuda/unit_tests
>     [mkdir] Created dir: /var/root/barcuda/Barracuda/unit_tests/reports
>
>init:
>
>taskdefs.compile:
>     [javac] Compiling 8 source files to 
> /var/root/barcuda/Barracuda/WEB-INF/classes
>      [copy] Copying 1 file to 
> /var/root/barcuda/Barracuda/WEB-INF/classes/org/enhydra/barracuda/taskdefs
>      [copy] Copying 2 files to 
> /var/root/barcuda/Barracuda/WEB-INF/classes/xlib/dtds
>
>taskdefs:
>       [jar] Building jar: 
> /var/root/barcuda/Barracuda/WEB-INF/jars/barracuda-ant.jar
>
>compile_core:
>     [javac] Compiling 232 source files to 
> /var/root/barcuda/Barracuda/WEB-INF/classes
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/core/comp/renderer/html/HTMLLinkRenderer.java:91: 
> cannot resolve symbol
>     [javac] symbol  : method hasAttributes  ()
>     [javac] location: interface org.w3c.dom.Node
>     [javac]             if (defaultNode.hasAttributes()) {
>     [javac]                            ^
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/core/util/dom/DOMUtil.java:226: 
> cannot resolve symbol
>     [javac] symbol  : method hasAttributes  ()
>     [javac] location: interface org.w3c.dom.Node
>     [javac]         print (out, inset+"   attr:"+(node.hasAttributes() ? 
> "" : " (n/a)"));
>     [javac]                                           ^
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/core/util/dom/DOMUtil.java:227: 
> cannot resolve symbol
>     [javac] symbol  : method hasAttributes  ()
>     [javac] location: interface org.w3c.dom.Node
>     [javac]         if (node.hasAttributes()) {
>     [javac]                 ^
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpRequester.java:496: 
> cannot resolve symbol
>     [javac] symbol  : method getHeaderFields  ()
>     [javac] location: class java.net.URLConnection
>     [javac]         List scookies = (List) 
> conn.getHeaderFields().get("Set-Cookie");
>     [javac]                                    ^
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpServices.java:88: 
> cannot resolve symbol
>     [javac] symbol  : method initCause  (java.lang.NumberFormatException)
>     [javac] location: class java.text.ParseException
>     [javac]                         ee.initCause(e);
>     [javac]                           ^
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpServices.java:97: 
> cannot resolve symbol
>     [javac] symbol  : method initCause  (java.lang.NumberFormatException)
>     [javac] location: class java.text.ParseException
>     [javac]                         ee.initCause(e);
>     [javac]                           ^
>     [javac] 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/plankton/http/HttpServices.java:105: 
> cannot resolve symbol
>     [javac] symbol  : method initCause  (java.text.ParseException)
>     [javac] location: class java.text.ParseException
>     [javac]                         ee.initCause(e);
>     [javac]                           ^
>     [javac] Note: 
> /var/root/barcuda/Barracuda/src/org/enhydra/barracuda/core/helper/servlet/HttpServletRequestWrapper.java 
> uses or overrides a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] 7 errors
>
>BUILD FAILED
><file:/var/root/barcuda/Barracuda/src/build.xml:527:>file:/var/root/barcuda/Barracuda/src/build.xml:527: 
>Compile failed; see the compiler error output for details.
>
>Total time: 18 seconds
>
>If someone could give me a spotter on this, that would be really 
>appreciated. I'm looking forward to having a look at Barracuda.
>
>Regards
>Stephen
>
>
>
>Jacob Kjome wrote:
>
>2.  Install Ant-1.5.1 and set ANT_HOME and put ANT_HOME/bin in your
>system Path.  Remove XercesImpl.jar and xml-apis.jar from
>ANT_HOME/lib.
>
>3.  Install the latest version of Tomcat (currently Tomcat-4.1.18).
>Set CATALINA_HOME.
>
>4.  Get the latest Barracuda CVS (
><http://barracuda.enhydra.org/software/cvs/index.html>http://barracuda.enhydra.org/software/cvs/index.html 
>).  I suggest
>using TortoiseCVS if you are using Windows (
><http://www.tortoisecvs.org/>http://www.tortoisecvs.org/ ).  If you are 
>using JDK1.3, make sure to
>copy xerces-1.4.4-xmlc-2.1.jar from Barracuda/WEB-INF/jars to
>ANT_HOME/lib.  In addition, copy said jar, xmlc-2.1.jar,
>gnu-regexp-1.1.4.jar, and jtidy-r7-xmlc-2.1.jar to
>CATALINA_HOME/shared/lib.
>
>5.  Start Tomcat and then run:
>
>ant contrib
>
>You will, eventually be prompted for the project to build and the
>target.  For the project, either type "all" or "dbroggisch" and for
>target type "install".
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.