[xep-support] Error compiling Cocoon connector

From: Shay Riggs <shay.riggs@nec.ac.uk>
Date: Tue Nov 09 2004 - 09:51:03 PST

Hi,

I'm trying to compile the Cocoon Connector on a PC running Gentoo Linux.

However, I get the following errors:

----------------
Buildfile: /usr/src/XEP/381_cocoon/build.xml

compile:
    [javac] Compiling 1 source file to /usr/src/XEP/381_cocoon/classes
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:16: cannot access org.apache.excalibur.xml.sax.XMLConsumer
    [javac] file org/apache/excalibur/xml/sax/XMLConsumer.class not found
    [javac] public class XEPSerializer extends AbstractSerializer
    [javac] ^
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:42: cannot resolve symbol
    [javac] symbol : variable this
    [javac] location: class com.renderx.cocoon.XEPSerializer
    [javac] this.setContentLength = conf.getChild("set-content-length").getValueAsBoolean(true);
    [javac] ^
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:46: cannot resolve symbol
    [javac] symbol : variable this
    [javac] location: class com.renderx.cocoon.XEPSerializer
    [javac] this.mimetype = conf.getAttribute("mime-type");
    [javac] ^
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:47: cannot resolve symbol
    [javac] symbol : method getLogger ()
    [javac] location: class com.renderx.cocoon.XEPSerializer
    [javac] getLogger().debug("XEPSerializer mime-type:" + mimetype);
    [javac] ^
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:78: cannot resolve symbol
    [javac] symbol : method setContentHandler (org.xml.sax.ContentHandler)
    [javac] location: class com.renderx.cocoon.XEPSerializer
    [javac] setContentHandler(driver);
    [javac] ^
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:110: cannot resolve symbol
    [javac] symbol : variable super
    [javac] location: class com.renderx.cocoon.XEPSerializer
    [javac] super.recycle();
    [javac] ^
    [javac] /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java:118: cannot resolve symbol
    [javac] symbol : variable this
    [javac] location: class com.renderx.cocoon.XEPSerializer
    [javac] return this.setContentLength;
    [javac] ^
    [javac] Note: /usr/src/XEP/381_cocoon/src/com/renderx/cocoon/XEPSerializer.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 7 errors

BUILD FAILED

/usr/src/XEP/381_cocoon/build.xml:25: Compile failed, messages should have been provided.

Total time: 1 second
---------------

My build.sh file looks like this:

---------------
JAVA_HOME=/opt/sun-jdk-1.4.2.06
XEP_HOME=/usr/local/XEP-dev-381
COCOON_HOME=/opt/tomcat/webapps/cocoon

CP=$JAVA_HOME/lib/tools.jar:lib/ant.jar:lib/jaxp.jar:lib/parser.jar:utils/:lib/xalan.jar:lib/oro.jar

$JAVA_HOME/bin/java -classpath $CP -DXEP_HOME=$XEP_HOME -DCOCOON_HOME=$COCOON_HOME org.apache.tools.ant.Main $*
---------------

I'm positive that the paths all point to the right locations.

What am I doing wrong? Can anyone help?

Regards,

-- 
Shay Riggs
Production Co-ordinator
Product Development
Visit our website at www.nec.ac.uk
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Tue Nov 9 10:21:57 2004

This archive was generated by hypermail 2.1.8 : Tue Nov 09 2004 - 10:21:58 PST