You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mauro Chiarugi <ma...@advancedlabs.org> on 2004/06/13 12:23:57 UTC

Error compiling cocoon

Hi,
i'm a newbie.. I'm trying to compile cocoon in a Debian Woody with java
blackdown. When i run ./build.sh, i receive the "cannot resolve symbol"
error.. What should be?

Thanks,
Mauro

PS. Here logs are: 

mauro@mylaptop:~/Download/Cocoon/cocoon-2.1.5$ ./build.sh
Buildfile: build.xml

prepare:
======================================================================
                 Apache Cocoon 2.1.5 [1999-2004]
======================================================================
 Building with Apache Ant version 1.6.1 compiled on February 12 2004
----------------------------------------------------------------------
 Using build file /home/mauro/Download/Cocoon/cocoon-2.1.5/build.xml
----------------------------------------------------------------------
 Compiler options:
   - debug ......... [on]
   - optimize ...... [on]
   - deprecation ... [off]
======================================================================

cocoon-block-cron-compile:
==================== WARNING =======================
 Block 'cron' should be considered unstable.
----------------------------------------------------
         This means that its API, schemas
  and other contracts might change without notice.
====================================================

cocoon-block-scratchpad-compile:
==================== WARNING =======================
 Block 'scratchpad' should be considered unstable.
----------------------------------------------------
         This means that its API, schemas
  and other contracts might change without notice.
====================================================

cocoon-block-poi-compile:
Compiling 102 source files to
/home/mauro/Download/Cocoon/cocoon-2.1.5/build/cocoon-2.1.5/blocks/poi/
dest
/home/mauro/Download/Cocoon/cocoon-2.1.5/src/blocks/poi/java/org/apache
/cocoon/components/elementprocessor/impl/poi/hssf/elements/Cell.java:98:
cannot resolve symbol
symbol  : method setCellFormula (java.lang.String)
location: class org.apache.poi.hssf.usermodel.HSSFCell
            _cell.setCellFormula(content.toUpperCase().substring(1));
                 ^
/home/mauro/Download/Cocoon/cocoon-2.1.5/src/blocks/poi/java/org/apache
/cocoon/components/elementprocessor/impl/poi/hssf/elements/Sheet.java:2
20: createRow(short) in org.apache.poi.hssf.usermodel.HSSFSheet cannot
be applied to (int)
        return new Row(_sheet.createRow(rowNo), this);
                             ^
/home/mauro/Download/Cocoon/cocoon-2.1.5/src/blocks/poi/java/org/apache
/cocoon/components/elementprocessor/impl/poi/hssf/elements/Sheet.java:2
73: createRow(short) in org.apache.poi.hssf.usermodel.HSSFSheet cannot
be applied to (int)
                            row = _sheet.createRow(rownum);
                                        ^
/home/mauro/Download/Cocoon/cocoon-2.1.5/src/blocks/poi/java/org/apache
/cocoon/components/elementprocessor/impl/poi/hssf/elements/Workbook.jav
a:59: cannot resolve symbol
symbol  : method createDataFormat ()
location: class org.apache.poi.hssf.usermodel.HSSFWorkbook
        return _workbook.createDataFormat();
                        ^
/home/mauro/Download/Cocoon/cocoon-2.1.5/src/blocks/poi/java/org/apache
/cocoon/components/elementprocessor/impl/poi/hssf/elements/Workbook.jav
a:106: cannot resolve symbol
symbol  : variable ENCODING_UTF_16
location: class org.apache.poi.hssf.usermodel.HSSFWorkbook
        _workbook.setSheetName(index, name,
HSSFWorkbook.ENCODING_UTF_16);
                                                        ^
5 errors

BUILD FAILED
/home/mauro/Download/Cocoon/cocoon-2.1.5/tools/targets/compile-build.xm
l:172: Following error occured while executing this line
/home/mauro/Download/Cocoon/cocoon-2.1.5/build/cocoon-2.1.5/temp/blocks
-build.xml:2946: Compile failed; see the compiler error output for
details.

Total time: 7 seconds
mauro@mylaptop:~/Download/Cocoon/cocoon-2.1.5$

-- 


		Mauro Chiarugi
		CEO at Advanced Service Provider Srl
		email: mauro@aessepi.it
		tel: +39 328 92 76 954
								

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error compiling cocoon

Posted by Joerg Heinicke <jo...@gmx.de>.
On 13.06.2004 12:23, Mauro Chiarugi wrote:

> Hi,
> i'm a newbie.. I'm trying to compile cocoon in a Debian Woody with java
> blackdown. When i run ./build.sh, i receive the "cannot resolve symbol"
> error.. What should be?

In theory it should run out of the box. Cocoon comes with POI library 
(src/blocks/poi/lib/) that seems to be missing in your case. What can 
cause it? 1. A wrong classpath setup/behaviour for your system. 2. 
Another version of the POI lib is already on the classpath.

Do you need POI? If not try to exclude it (and maybe some other blocks 
as well). Read INSTALL.TXT for more information on it.

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org