You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Bob Harner <bo...@gmail.com> on 2006/03/10 12:48:48 UTC

Lenya 1.4 won't build due to ajax block

On a clean svn checkout of Lenya 1.4 trunk (yesterday's rev 384678) to
Windows, the build fails for me, complaining about Cocoon's ajax block
having a Request.class that contains a "wrong class":

c:\workspace\lenya-1.4.x> configure
(I accepted all the defaults)
c:\workspace\lenya-1.4.x> build
Buildfile: build.xml

init:
------------------- Apache Lenya 1.4-dev [1999-2005] ----------------
Building with Apache Ant version 1.6.5 compiled on June 2 2005
Using build file c:\workspace\lenya-1.4.x\build.xml

prepare:
====================================================================
                 Apache Cocoon 2.1.9-dev [1999-2005]
====================================================================
 Building with Apache Ant version 1.6.5 compiled on June 2 2005
--------------------------------------------------------------------
 Using build file C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build.xml
--------------------------------------------------------------------
 Compiler options:
   - debug ......... [on]
   - optimize ...... [on]
   - deprecation ... [off]
====================================================================
Created dir: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-
dev

compile-mocks:
Created dir: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-
dev\mocks
Copying 2 files to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-
2.1.9-dev\mocks

compile-core:
Created dir: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-
dev\classes
Copying 785 files to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoo
n-2.1.9-dev\classes
Compiling jdk 1.4 core classes
Copying 2 files to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-
2.1.9-dev\classes

compile-tests-prepare:
Created dir: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-
dev\test
Copying 145 files to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoo
n-2.1.9-dev\test

prepare-blocks:
Created dir: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-
dev\blocks
Copying 1 file to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2
.1.9-dev\temp
Processing C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-de
v\temp\gump.xml to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-
2.1.9-dev\temp\blocks-build.xml
Loading stylesheet C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\tools\src\blo
cks-build.xsl

unstable:
==================== WARNING =======================
 Block 'ajax' should be considered unstable.
 Block 'apples' should be considered unstable.
 Block 'asciiart' should be considered unstable.
 Block 'axis' should be considered unstable.
 Block 'captcha' should be considered unstable.
 Block 'cron' should be considered unstable.
 Block 'deli' should be considered unstable.
 Block 'eventcache' should be considered unstable.
 Block 'faces' should be considered unstable.
 Block 'imageop' should be considered unstable.
 Block 'javaflow' should be considered unstable.
 Block 'jcr' should be considered unstable.
 Block 'jms' should be considered unstable.
 Block 'linotype' should be considered unstable.
 Block 'mail' should be considered unstable.
 Block 'petstore' should be considered unstable.
 Block 'proxy' should be considered unstable.
 Block 'qdox' should be considered unstable.
 Block 'querybean' should be considered unstable.
 Block 'repository' should be considered unstable.
 Block 'serializers' should be considered unstable.
 Block 'slide' should be considered unstable.
 Block 'slop' should be considered unstable.
 Block 'stx' should be considered unstable.
 Block 'taglib' should be considered unstable.
 Block 'tour' should be considered unstable.
 Block 'validation' should be considered unstable.
 Block 'webdav' should be considered unstable.
 Block 'xsltal' should be considered unstable.
----------------------------------------------------
         This means that its API, schemas
  and other contracts might change without notice.
====================================================

excluded:
==================== NOTICE ========================
 Block 'apples' is excluded from the build.
 Block 'authentication-fw' is excluded from the build.
 Block 'axis' is excluded from the build.
 Block 'bsf' is excluded from the build.
 Block 'eventcache' is excluded from the build.
 Block 'faces' is excluded from the build.
 Block 'itext' is excluded from the build.
 Block 'javaflow' is excluded from the build.
 Block 'jcr' is excluded from the build.
 Block 'jfor' is excluded from the build.
 Block 'jms' is excluded from the build.
 Block 'jsp' is excluded from the build.
 Block 'linotype' is excluded from the build.
 Block 'midi' is excluded from the build.
 Block 'ojb' is excluded from the build.
 Block 'paranoid' is excluded from the build.
 Block 'petstore' is excluded from the build.
 Block 'php' is excluded from the build.
 Block 'poi' is excluded from the build.
 Block 'portal' is excluded from the build.
 Block 'portal-fw' is excluded from the build.
 Block 'python' is excluded from the build.
 Block 'qdox' is excluded from the build.
 Block 'repository' is excluded from the build.
 Block 'slide' is excluded from the build.
 Block 'slop' is excluded from the build.
 Block 'stx' is excluded from the build.
 Block 'swf' is excluded from the build.
 Block 'taglib' is excluded from the build.
 Block 'tour' is excluded from the build.
 Block 'velocity' is excluded from the build.
 Block 'web3' is excluded from the build.
 Block 'webdav' is excluded from the build.
 Block 'woody' is excluded from the build.
 Block 'xmldb' is excluded from the build.
====================================================

cocoon-block-ajax-prepare:
Created dir: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-
dev\blocks\ajax\dest

cocoon-block-ajax-compile:
Compiling 5 source files to C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\buil
d\cocoon-2.1.9-dev\blocks\ajax\dest
C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\src\blocks\ajax\java\org\apache\
cocoon\ajax\AjaxHelper.java:18: cannot access org.apache.cocoon.environment.Requ
est
bad class file: C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1
.9-dev\classes\org\apache\cocoon\environment\Request.class
class file contains wrong class: externals.cocoon_2_1_x.src.java.org.apache.coco
on.environment.Request
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
import org.apache.cocoon.environment.Request;
                                     ^
1 error

BUILD FAILED
C:\workspace\lenya-1.4.x\src\targets\init-build.xml:46: The following error occu
rred while executing this line:
C:\workspace\lenya-1.4.x\src\targets\init-build.xml:55: The following error occu
rred while executing this line:
C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\tools\targets\compile-build.xml:
262: The following error occurred while executing this line:
C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-dev\temp\bloc
ks-build.xml:999: The following error occurred while executing this line:
C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1.9-dev\temp\bloc
ks-build.xml:95: Compile failed; see the compiler error output for details.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Lenya 1.4 won't build due to ajax block

Posted by Oliver Schalch <ol...@wyona.com>.
On Fri, 10 Mar 2006 06:48:48 -0500
"Bob Harner" <bo...@gmail.com> wrote:

> cocoon-block-ajax-compile:
> Compiling 5 source files to
> C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\buil
> d\cocoon-2.1.9-dev\blocks\ajax\dest
> C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\src\blocks\ajax\java\org\apache\
> cocoon\ajax\AjaxHelper.java:18: cannot access
> org.apache.cocoon.environment.Requ est bad class file:
> C:\workspace\lenya-1.4.x\externals\cocoon_2_1_x\build\cocoon-2.1 .9-dev\classes\org\apache\cocoon\environment\Request.class
> class file contains wrong class:
> externals.cocoon_2_1_x.src.java.org.apache.coco on.environment.Request
> Please remove or make sure it appears in the correct subdirectory of
> the classpa th.
> import org.apache.cocoon.environment.Request;
>                                      ^
> 1 error

If you would comment out Ajax block, the next block would fail.
I'm not 100% sure, but ./build.sh|.bat clean Lenya *and* cocoon just
should help, and make sure that the /build folders are gone.

I did notice that error aswell some days ago, but it was just gone
after cleaning and checking that /build folder is gone.

Oliver



-- 
Oliver Schalch                           oliver.schalch@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org