You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Marc D. Murray" <ma...@phronein.com> on 2005/05/08 08:48:33 UTC

unizh samples build error on lenya 1.2.3

Following the instructions in the
http://wiki.apache.org/lenya/DeployPublicationHowTo I created a folder
~/workspace/unicms that contains the unizh samples from wyona.org.

When I execute ./build.sh install-pub (from ~/src/lenya-1.2.3/) I get
the following error: anyone with idea why

<shell-transcript>

marcdm@class02:~/src/lenya-1.2.3$ ./build.sh install-pub
Buildfile: build.xml

init:
------------------- Apache Lenya 1.2.3 [1999-2004] ----------------
Building with Apache Ant version 1.6.3 compiled on April 28 2005
Using build file /home/marcdm/src/lenya-1.2.3/build.xml

prepare-src:
Copying 11 directories to /home/marcdm/src/lenya-1.2.3/build/lenya/src
Copying 62 files to /home/marcdm/src/lenya-1.2.3/build/lenya/src

compile:
Compiling 62 source files
to /home/marcdm/src/lenya-1.2.3/build/lenya/classes
/home/marcdm/src/lenya-1.2.3/build/lenya/src/ch/unizh/lenya/cms/cocoon/transformation/LinkRewritingTransformer.java:290: getURL(org.apache.lenya.cms.publication.Version) in org.apache.lenya.cms.publication.Proxy cannot be applied to (org.apache.lenya.cms.publication.Document)
            rewrittenURL = proxy.getURL(targetDocument);
                                ^
1 error

BUILD FAILED
/home/marcdm/src/lenya-1.2.3/src/targets/compile-build.xml:38: Compile
failed; see the compiler error output for details.

</shell-transcript>


Sun Java JDK 1.5.0_03-b07
Ubuntu 5.04 (Linux 2.6.10-5-386)
Tomcat 5.5 
Cocoon 2.1.7
Lenya 1.2.3

thanks.


Marc DM
(I know no java)


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


Re: unizh samples build error on lenya 1.2.3

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Marc D. Murray wrote:

> /home/marcdm/src/lenya-1.2.3/build/lenya/src/ch/unizh/lenya/cms/cocoon/transformation/LinkRewritingTransformer.java:290: getURL(org.apache.lenya.cms.publication.Version) in org.apache.lenya.cms.publication.Proxy cannot be applied to (org.apache.lenya.cms.publication.Document)
>             rewrittenURL = proxy.getURL(targetDocument);
>                                 ^

the linkrewriting transformer was previously developed in the unizh 
publication, and is now in lenya itself. lenya needs to be updated with 
the latest linkrewriter and the one in unizh removed.

can someone familiar with the unizh codebase take care of this please? 
it looks like the unizh version has a fix for 
http://issues.apache.org/bugzilla/show_bug.cgi?id=29701

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


Re: unizh samples build error on lenya 1.2.3

Posted by Jann Forrer <ja...@id.unizh.ch>.
On Sun, 8 May 2005, Marc D. Murray wrote:

> Following the instructions in the
> http://wiki.apache.org/lenya/DeployPublicationHowTo I created a folder
> ~/workspace/unicms that contains the unizh samples from wyona.org.
>
> When I execute ./build.sh install-pub (from ~/src/lenya-1.2.3/) I get
> the following error: anyone with idea why
>
> <shell-transcript>
>
> marcdm@class02:~/src/lenya-1.2.3$ ./build.sh install-pub
> Buildfile: build.xml
>
> init:
> ------------------- Apache Lenya 1.2.3 [1999-2004] ----------------
> Building with Apache Ant version 1.6.3 compiled on April 28 2005
> Using build file /home/marcdm/src/lenya-1.2.3/build.xml
>
> prepare-src:
> Copying 11 directories to /home/marcdm/src/lenya-1.2.3/build/lenya/src
> Copying 62 files to /home/marcdm/src/lenya-1.2.3/build/lenya/src
>
> compile:
> Compiling 62 source files
> to /home/marcdm/src/lenya-1.2.3/build/lenya/classes
> /home/marcdm/src/lenya-1.2.3/build/lenya/src/ch/unizh/lenya/cms/cocoon/transformation/LinkRewritingTransformer.java:290: getURL(org.apache.lenya.cms.publication.Version) in org.apache.lenya.cms.publication.Proxy cannot be applied to (org.apache.lenya.cms.publication.Document)
>             rewrittenURL = proxy.getURL(targetDocument);
>

Sorry for the late response. It seems that you use an old version of the
unicms versions. The src of the LinkRewritingTransformer is:

org.apache.lenya.cms.cocoon.transformation.LinkRewritingTransformer and
not ch/unizh/lenya/cms/cocoon/transformation/LinkRewritingTransformer

This should be the case if you download the latest svn version

svn co --username anonymous
http://svn.wyona.org/repos/public/lenya/unicms/trunk unicms

HTH

Jann

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