You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andrew Golightly <A....@dcs.shef.ac.uk> on 2006/08/15 16:34:06 UTC

build fails with public modules from wyona

Hi guys,

Michael suggested I email you about this. Lenya builds fine. Great! But 
when pointing to the lenya public modules 
(http://svn.wyona.com/repos/public/lenya/modules) I get the following 
error when building:

compile-module-org.apache.lenya.modules.sitetreeextended:
Created dir: 
/home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes
Compiling 1 source file to 
/home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes
/home/andrew/gate/lenya/modules/sitetreeextended/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGeneratorResourcetype.java:50: 
cannot find symbol
symbol  : variable identityMap
location: class 
org.apache.lenya.cms.cocoon.generation.SitetreeFragmentGeneratorResourcetype
          Document document = this.identityMap.get(this.publication, 
this.area, node.getPath(), lang);
                              ^
1 error

BUILD FAILED

Any help on this one?

thank you,

Andrew Golightly
GATE team,
University of Sheffield

-- 
LIFE is the only game
in which
the object
of the game
is to
learn
the
rules.


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


Re: build fails with public modules from wyona

Posted by Andreas Hartmann <an...@apache.org>.
Joern Nettingsmeier wrote:
> Andrew Golightly wrote:
>> Hi guys,
>>
>> Michael suggested I email you about this. Lenya builds fine. Great! But
>> when pointing to the lenya public modules
>> (http://svn.wyona.com/repos/public/lenya/modules) I get the following
>> error when building:
>>
>> compile-module-org.apache.lenya.modules.sitetreeextended:
>> Created dir:
>> /home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes
>>
>> Compiling 1 source file to
>> /home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes
>>
>> /home/andrew/gate/lenya/modules/sitetreeextended/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGeneratorResourcetype.java:50:
>> cannot find symbol
>> symbol  : variable identityMap
>> location: class
>> org.apache.lenya.cms.cocoon.generation.SitetreeFragmentGeneratorResourcetype
>>
>>          Document document = this.identityMap.get(this.publication,
>> this.area, node.getPath(), lang);
>>                              ^
> 
> IdentityMap has recently been refactored to DocumentFactory iirc,

Just a minor correction: IdentityMap still exists, but DocumentIdentityMap
has been renamed to DocumentFactory. It was once a specific identity map,
but this inheritance has been replaced by delegation.

Now an identity map and a factory are a team - the identity map takes care
that no duplicate objects are built, and the factory creates the objects.

-- Andreas


-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


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


Re: build fails with public modules from wyona

Posted by Joern Nettingsmeier <po...@uni-due.de>.
Andrew Golightly wrote:
> Hi guys,
> 
> Michael suggested I email you about this. Lenya builds fine. Great! But
> when pointing to the lenya public modules
> (http://svn.wyona.com/repos/public/lenya/modules) I get the following
> error when building:
> 
> compile-module-org.apache.lenya.modules.sitetreeextended:
> Created dir:
> /home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes
> 
> Compiling 1 source file to
> /home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes
> 
> /home/andrew/gate/lenya/modules/sitetreeextended/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGeneratorResourcetype.java:50:
> cannot find symbol
> symbol  : variable identityMap
> location: class
> org.apache.lenya.cms.cocoon.generation.SitetreeFragmentGeneratorResourcetype
> 
>          Document document = this.identityMap.get(this.publication,
> this.area, node.getPath(), lang);
>                              ^

IdentityMap has recently been refactored to DocumentFactory iirc, but
frankly i did not understand the details. untill andreas chimes in to
explain, you might want to grep for "IdentityMap" in the svn changelog
to get an idea.




-- 
"I don't need backups. I need restore!" - Trad.

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736


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


Re: build fails with public modules from wyona

Posted by Andreas Hartmann <an...@apache.org>.
Andrew Golightly wrote:
> Hi guys,
> 
> Michael suggested I email you about this. Lenya builds fine. Great! But 
> when pointing to the lenya public modules 
> (http://svn.wyona.com/repos/public/lenya/modules) I get the following 
> error when building:
> 
> compile-module-org.apache.lenya.modules.sitetreeextended:
> Created dir: 
> /home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes 
> 
> Compiling 1 source file to 
> /home/andrew/gate/lenya/lenya-1.4.x/build/lenya/modules/org.apache.lenya.modules.sitetreeextended/java/classes 
> 
> /home/andrew/gate/lenya/modules/sitetreeextended/java/src/org/apache/lenya/cms/cocoon/generation/SitetreeFragmentGeneratorResourcetype.java:50: 
> cannot find symbol
> symbol  : variable identityMap
> location: class 
> org.apache.lenya.cms.cocoon.generation.SitetreeFragmentGeneratorResourcetype 
> 
>          Document document = this.identityMap.get(this.publication, 
> this.area, node.getPath(), lang);

Sorry for that. I removed the field from the SitetreeFragmentGenerator
yesterday. I didn't notice that it was not private and therefore I didn't
check if it broke anything.

It should compile now.

-- Andreas

-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


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